/
/
Log Mailchimp campaign clicks in Salesforce activity history once
For sales teams who want reps to see campaign clicks on the contact or lead, without duplicate tasks, by asking their AI assistant.
On this page
Connector
Connect Mailchimp, pick your AI tool and paste the prompt.
The problem
Reps blind to the campaign their contact just clicked
Reps working a contact in Salesforce rarely see that the person clicked last week's campaign. Logging clicks by hand means matching each clicker and writing a task, and running it twice fills history with duplicates.
Without PopdockAI
- Export clicks and group them by person
- Match each email to a contact or lead
- Check whether a task was already logged
- Write tasks one by one and create duplicates
With PopdockAI
- Clicks are grouped by person with links and last click date
- Each email is matched to one contact or lead
- No match, several matches or already logged are skipped
- One completed task per person after you confirm
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** For the Mailchimp campaign titled `{campaign-title}`, log one completed Salesforce task on each matching contact or lead who clicked it, so the click shows in their Salesforce activity history.
**Step 1: Find the campaign and its clickers**
Call `mailchimp-get-campaign` with `title.contains` set to `{campaign-title}`. If more than one matches, list them and stop. Call `mailchimp-get-campaign-email-activity` with that `campaign-id` and `action` set to click. Group by email address, keeping the number of clicks, the links clicked (url) and the last click date.
**Step 2: Match in Salesforce**
For each email, call `salesforce-get-contact` with `email`; if none, call `salesforce-get-lead` with `email`. Skip anyone with no match and anyone matching more than one record. For each match, call `salesforce-get-task` with `name-id` set to the contact or lead id and `subject.contains` set to the campaign title, and skip the person if such a task already exists.
**Step 3: Confirm**
Show the planned tasks as a table: name, email, Salesforce id, clicks, last click date. Ask the user to confirm. Do not continue without an explicit yes.
**Step 4: Create**
For each confirmed row, call `salesforce-add-task` once with `who-id` set to the contact or lead id, `subject` set to "Clicked Mailchimp campaign: " followed by the campaign title, `status` set to Completed, `due-date` set to the last click date, and `comments` listing the links clicked and the click count.
**Step 5: Report**
The tasks created, then the people skipped and why (not in Salesforce, several matches, already logged).
**Rules & Guidelines:**
* `mailchimp-get-campaign` and `mailchimp-get-campaign-email-activity` are on the mailchimp server. `salesforce-get-contact`, `salesforce-get-lead`, `salesforce-get-task` and `salesforce-add-task` are on the salesforce server.
* The only write this prompt may make is `salesforce-add-task`, once per confirmed person. Do not call `salesforce-update-task`, `salesforce-add-lead` or `salesforce-update-contact`.
**Validation:**
* Compare email addresses case-insensitively.
* If the campaign has no clicks, say so and stop.
* If a create fails, report it and continue with the rest without retrying.Who it's for
One answer, three teams that use it
Account executives
See interest when you open a record
A completed task with the links clicked shows up in activity history, so you know what caught their eye.
Log Salesforce tasks for everyone who clicked the Mailchimp Q4 Pricing email.
Sales operations
Log clicks without duplicate tasks
People already logged for the campaign are skipped, so the job is safe to rerun after every send.
Add Salesforce tasks for the clickers of our Mailchimp Contoso Partner Update, skipping anyone already logged.
Marketing managers
Show sales what campaigns stirred up
Turn campaign engagement into activity history reps actually read, with click counts per person.
Record who clicked our Mailchimp Spring Product Tour email as completed tasks in Salesforce.
How it works
What PopdockAI does when you ask
You name the campaign, and your AI assistant plans one task per person and shows you who it will skip. Nothing is written until you confirm.
01
Ask
You name the Mailchimp campaign.
02
Match
It groups clicks by person and matches each email to one contact or lead.
03
Confirm
You review the planned tasks and the people skipped, then say yes.
04
Create
It adds one completed task per person and reports what was skipped.
What PopdockAI provides
The tools behind the answer
Ready made tools for Mailchimp and one secure connection to your AI tool. No code, no exports.
mailchimp-get-campaign
mailchimp-get-campaign-email-activity
salesforce-get-contact
salesforce-get-lead
salesforce-get-task
salesforce-add-task
This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.
The outcome
Campaign clicks in activity history, once per person
Related use cases
More ways to put this data to work
One prompt template with infinite possibilities.
Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.
Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

.webp)
