Connectors

/

HubSpot

/

Create HubSpot tasks for Mailchimp abandoned carts
Write
Cross-Connector

Follow up big Mailchimp abandoned carts in person

For sales and ecommerce teams who want high-value abandoned carts followed up from HubSpot, by asking their AI assistant to create the tasks.

Try PopdockAI free
Get a live demo
Create HubSpot tasks for Mailchimp abandoned carts
Any abandoned carts over 200 dollars in Mailchimp this week? Create HubSpot tasks so someone follows up.
6 Mailchimp carts over 200 USD this week; 3 shoppers need a HubSpot task. - Dana Whitfield, 540.00 USD, emailable, has a phone, CALL - Lee Chen, 310.00 USD, not subscribed, TODO - Sam Patel, 225.00 USD, emailable, has a phone, CALL - Already chased: 1. Not in HubSpot: 2 The tasks will be unassigned unless you give a HubSpot owner ID. Shall I create them?
HubSpot
Sample figures. Your results come from your own account.
mailchimp-get-cart
mailchimp-get-list-member
hubspot-get-contacts
hubspot-get-tasks
hubspot-add-task

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

HubSpot

HubSpot
Run it on your own HubSpot data.

Connect HubSpot, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

Big abandoned carts never get a personal follow-up

A high-value abandoned cart is a sale that almost happened, but nothing tells a salesperson to follow it up. Finding big carts, checking the shopper in HubSpot and whether someone is already chasing them takes too long.

Without PopdockAI

  • Look through recent abandoned carts in Mailchimp
  • Check whether each shopper can be emailed
  • Search HubSpot for the shopper
  • Create tasks for a few and forget the rest

With PopdockAI

  • Recent carts above your total are read, the largest per shopper
  • Email permission in Mailchimp is noted for each shopper
  • Shoppers not in HubSpot or already being chased are skipped
  • Each task carries the checkout link and is created 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.

Prompt
**Objective:** For every Mailchimp abandoned cart of at least `{min-cart-total}` (default 100) created in the last `{lookback-days}` days (default 7) whose shopper is a HubSpot contact, create a HubSpot follow-up task due in `{due-in-days}` days (default 1), after the user confirms.

**Step 1: Abandoned carts in Mailchimp**

Call `mailchimp-get-cart` with `order-total.min` set to `{min-cart-total}` (100 if blank) and `created-at-date.from` set to today minus `{lookback-days}` days (7 if blank). Keep `cart-id`, `customer-email`, `customer-first-name`, `customer-last-name`, `order-total`, `currency-code`, `created-at-date`, `checkout-url` and `store-id`. If one shopper has several carts, keep the largest and note the count.

**Step 2: Can the shopper be emailed?**

For each shopper, call `mailchimp-get-list-member` with `email` set to their email and note whether they are subscribed in any audience. This goes in the report and the task body; it does not exclude anyone, because the follow-up may be a call.

**Step 3: Find each shopper in HubSpot**

Call `hubspot-get-contacts` with `email` set to the shopper's email. Keep `record-id`, `company-id`, `contact-owner` and `phone-number`. Shoppers with no HubSpot contact go on a "not in HubSpot" list and get no task.

**Step 4: Skip shoppers already being chased**

Call `hubspot-get-tasks` with `contact-email` set to the email and `task-title.contains` set to Abandoned cart. If any of those tasks has a `task-status` other than COMPLETED, put the shopper in "already has an open cart task" and give them no new task.

**Step 5: Confirm**

Show the tasks to be created: email, name, cart total and currency, cart date, emailable in Mailchimp (yes or no), HubSpot owner, phone, due date. Then the "already has an open cart task" and "not in HubSpot" lists. Say the tasks will be unassigned unless the user gives a numeric HubSpot owner ID. Ask the user to confirm, or to name shoppers to leave out. Do nothing more until they confirm.

**Step 6: Create the tasks**

Only after confirmation, call `hubspot-add-task` once per confirmed shopper with:

* `subject`: Abandoned cart: <currency-code> <order-total>
* `body`: Mailchimp abandoned cart <cart-id> created <created-at-date>. Checkout link: <checkout-url>. Emailable in Mailchimp: <yes or no>.
* `due-date`: today plus `{due-in-days}` days (1 if blank), as an ISO date such as 2026-03-01
* `status` NOT_STARTED, `priority` HIGH, `type` CALL when the contact has a phone-number, otherwise TODO
* `contact-ids` set to the contact's `record-id`, and `company-ids` set to its `company-id` when it has one
* `owner-id` only if the user gave a numeric HubSpot owner ID

Report each new task id, then the totals: created, failed (with the error), already chased, not in HubSpot.

**Rules & Guidelines:**

* `mailchimp-get-cart` and `mailchimp-get-list-member` are on the Mailchimp server; `hubspot-get-contacts`, `hubspot-get-tasks` and `hubspot-add-task` are on the hubspot server.
* `hubspot-add-task` is the only write tool this prompt may call, once per confirmed person, after confirmation. Call no other hubspot-add, hubspot-update, hubspot-rename, hubspot-remove, hubspot-subscribe, hubspot-unsubscribe or hubspot-import tool; in particular do not change the contact.
* Do NOT set `owner-id` unless the user gives a numeric HubSpot owner ID; the contact-owner returned by `hubspot-get-contacts` is a name, and no tool here maps it to an ID. Without one the tasks are created unassigned, so say so at the confirmation step.
* Mailchimp is read-only here. Do NOT call `mailchimp-add-list-member`, `mailchimp-update-list-member`, `mailchimp-add-customer`, `mailchimp-update-customer`, `mailchimp-add-segment-member`, `mailchimp-start-automation`, `mailchimp-pause-automation`, `mailchimp-replicate-campaign`, `mailchimp-update-product` or `mailchimp-update-order`.
* Match on email address only, compared case-insensitively with surrounding spaces trimmed.
* A HubSpot task cannot carry the cart's products or link to a HubSpot order; the checkout link in the body is the only way back to the cart.

**Validation:**

* If Mailchimp returns no carts, say so and stop.
* If every shopper is already being chased or not in HubSpot, report the lists and stop without asking for confirmation.
* If one email matches more than one HubSpot contact, list them and create no task for that email.

Who it's for

One answer, three teams that use it

Inside sales reps

Recover high value carts by phone

Get a task for each big abandoned cart with the shopper's phone and the link back to the cart.

Create HubSpot tasks for Mailchimp abandoned carts over 300 from the last 3 days.

Ecommerce managers

See the revenue sitting in carts

Review the biggest abandoned carts with owner and total before deciding who follows up.

Which Mailchimp abandoned carts over 500 this week belong to HubSpot contacts?

Sales managers

Make sure each shopper is chased once

Shoppers with an open cart task are skipped, so nobody gets two calls about the same cart.

Set up HubSpot cart follow-up tasks for abandoned carts over 250, skipping anyone already being chased.

How it works

What PopdockAI does when you ask

You set a minimum cart total and lookback, and your AI assistant matches shoppers to HubSpot contacts. Tasks are created only after you confirm, and Mailchimp is only read.

01

Find

It reads Mailchimp abandoned carts above your minimum total from the last few days.

Your AI tool

02

Check

It notes whether each shopper can be emailed and finds them in HubSpot by email.

mailchimp-get-list-member
hubspot-get-contacts
hubspot-get-tasks

03

Confirm

You review the tasks, with anyone already chased left out, and say yes.

No items found.

04

Create

It creates one task per shopper with the checkout link and reports the totals.

Your AI tool

What PopdockAI provides

The tools behind the answer

Ready made tools for HubSpot and one secure connection to your AI tool. No code, no exports.

get-data

mailchimp-get-cart

Returns open (abandoned) carts from the e-commerce stores connected to Mailchimp, with the customer, cart total and checkout link.
get-data

mailchimp-get-list-member

Returns the members (subscribers) of Mailchimp audiences, with subscription status, tags and engagement rating. Filter by email address or status to look someone up.
get-data

hubspot-get-contacts

Returns contact records from HubSpot CRM, with email, phone, company, lifecycle stage, lead status, owner and location from the HubSpot connector. Filter by company id, state region, contact owner, email, last name, create date, company name, record id, lifecycle stage, lead status.
get-data

hubspot-get-tasks

Returns tasks in HubSpot, with title, status, priority, type, due date, assignee and related contact from the HubSpot connector. Filter by assigned to, is overdue, due date, task title, task status, task type, contact email, priority.
run-action

hubspot-add-task

Creates a task in HubSpot and returns the new task's ID. Required: Due date. Optional: Subject, Notes, Status, Priority, Type, Owner ID, Company IDs, Contact IDs, Deal IDs. Writes to HubSpot.
Read only.Nothing in HubSpot Changes

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.

How Popdock AI secures your data

The outcome

Your largest carts get a personal follow-up

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

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.

Try PopdockAI Free
See Documentation