Mailchimp High-Intent Click to Sales Alert
When a Mailchimp subscriber clicks a high-intent link (pricing, demo, contact sales), the flow matches them to a Dataverse contact/lead, alerts the assigned rep in Teams with the context, creates a follow-up activity, and bumps the lead score. Turns email engagement into immediate sales action on the hottest signals.
Provided as-is, without warranty of any kind. Review and test each pattern in a non-production environment before deploying it to live automations. See our Terms.
Overview
This flow turns Mailchimp email engagement into immediate sales action. On a schedule it inspects the most recent campaign's click activity, and for any subscriber who clicked a high-intent link (pricing, demo, contact-sales, quote, buy, trial) it matches them to a Dataverse marketing lead, bumps the lead score, alerts the assigned rep in Teams with full context, and logs a follow-up signal.
Why it matters: A pricing-page click from an email is one of the hottest buying signals. Acting on it within minutes dramatically improves conversion. This build is the architecturally-complete reference implementation — it ships Off; going live requires only connection authorization and env-var configuration.
> Build note — trigger reality: The Mailchimp connector (shared_mailchimp) exposes no link-click trigger and no click/activity action (its only triggers are OnMemberSubscribed and OnCreateList; its actions are campaign/list/member CRUD). So the flow polls on a Recurrence schedule, uses the connector's GetCampaigns action for campaign data, and pulls click-level data from the Mailchimp Marketing Reports API via a built-in HTTP action — a legitimate connector-gap fallback (verified against the live connector swagger). All credentials are bound to flowlibs_ environment variables; nothing is inlined.
Use Case
Sales wants to be alerted the moment a known lead clicks a high-intent link in a marketing campaign, with the lead automatically scored up and a follow-up activity recorded — no manual CRM data entry.
Flow Architecture
Recurrence
Recurrence (hourly)Mailchimp has no click trigger, so the flow polls on a schedule.
Initialize Correlation Id + config variables
Initialize VariableMints a guid() stamped on every alert + log row for tracing, and binds the server prefix, Mailchimp API key, high-intent keywords, lead-score increment, and Teams group/channel ids from env vars.
List Recent Campaigns
Mailchimp GetCampaignsReal connector call — lists recent campaigns; the most recent campaign id and title are composed for alerts/logs.
Get Email Activity
Built-in HTTPCalls Mailchimp Reports email-activity (no connector op exists) for per-subscriber click activity; HTTP Basic auth via the API-key env var.
For Each Member → Filter High Intent Clicks
Foreach + Filter array (Query)Iterates each subscriber and keeps clicks whose URL path segment matches a configured keyword; only acts on subscribers with at least one high-intent click.
List Matching Lead
Dataverse ListRecordsLooks up a marketing lead by subscriber email, then branches matched vs. unmatched.
Update Lead Score + Post Sales Alert + Log Matched Signal (matched)
Dataverse UpdateRecord + Teams PostMessageToConversation + Dataverse CreateRecordBumps the lead score and stamps last-engagement, alerts the assigned rep in Teams with subscriber/link/campaign/new score, and logs the click + follow-up activity as Matched.
Log Unmatched Signal (unmatched)
Dataverse CreateRecordLogs the click as Unmatched for triage.
Environment Variables
| Schema name | Type | Default | Description |
|---|---|---|---|
| flowlibs_MailchimpServerPrefix | String | us21 | Mailchimp data-center prefix used to build the Reports API base URL. |
| flowlibs_MailchimpApiKey | String | REPLACE_WITH_MAILCHIMP_API_KEY | Mailchimp Marketing API key for HTTP Basic auth — replace before going live. |
| flowlibs_HighIntentKeywords | String | pricing,demo,contact-sales,quote,buy,trial | Comma-separated URL path keywords that mark a click as high intent. |
| flowlibs_LeadScoreIncrement | String | 25 | Points added to a matched lead score per high-intent click. |
| flowlibs_TeamsGroupId | String | <your-team-id> | AAD group id of the Team that receives sales alerts (reused). |
| flowlibs_TeamsChannelId | String | <your-channel-id> | Channel id within that Team (reused). |
Connectors & Connections
| Connector | API name | Actions used |
|---|---|---|
| Mailchimp | shared_mailchimp | GetCampaigns |
| Microsoft Dataverse | shared_commondataserviceforapps | ListRecords UpdateRecord CreateRecord |
| Microsoft Teams | shared_teams | PostMessageToConversation |
Note — All connections are referenced as solution connection references; the flow is portable between environments as long as a connection is mapped at import time.
Customization Guide
Almost every realistic variant of this flow can be implemented by changing environment variable values. A few cases require small edits inside the flow definition — those are called out explicitly below.
- Intent keywords
- Edit flowlibs_HighIntentKeywords (matched against URL path segments, so pricing, demo, contact-sales etc.). No flow edit needed.
- Score weighting
- Change flowlibs_LeadScoreIncrement; or branch on keyword to weight pricing higher than demo.
- Routing
- The alert currently posts to one Teams channel; extend to route by flowlibs_assignedrep (e.g. an @mention or a per-rep channel map).
- Cadence
- Tighten the Recurrence interval for faster reaction, or switch the source to a real Mailchimp webhook if you stand up an HTTP-trigger receiver.
- Lead source
- flowlibs_marketinglead is the demo lead store; in a real tenant, point List Matching Lead at your contact/lead table and map the score column.
Key Expressions
The flow is intentionally light on Power Fx / WDL gymnastics — the heaviest expressions are the branch-name concatenation and the approval outcome check. They are listed below in the order they appear in the flow.
EXPR.01High-intent gate (Filter array where)
Keeps high-intent click events.
EXPR.02Matched keyword (link category)
The matched high-intent keyword.
EXPR.03New lead score
Bumped lead score.
EXPR.04HTTP Basic auth header
Authorization header for the Reports call.
EXPR.05Reports URL
Mailchimp Reports email-activity endpoint.
Customize & download
Generate a ready-to-import copy of this solution with your environment-variable values baked in — available on Base, Pro, or Team.
Upgrade to customize
Comments
Sign in to join the conversation.
Sign inNo comments yet. Be the first to share your experience with this flow.