Connectors

/

Mailchimp

/

Copy a Mailchimp segment into a HubSpot list
Write
Cross-Connector

Turn a Mailchimp segment into a HubSpot list

For marketing teams who segment in Mailchimp and want the same people in a HubSpot list, just by asking their AI assistant.

Try PopdockAI free
Get a live demo
Copy a Mailchimp segment into a HubSpot list
Copy the Mailchimp segment VIP Customers into a HubSpot list called VIP Customers.
The Mailchimp segment VIP Customers has 210 members. - List: VIP Customers, will be created as a manual contact list - To add: 188 HubSpot contacts - Not in HubSpot: 21, reported only - Ambiguous: 1 email matches two contacts, left out Shall I create the list and add the 188?
Mailchimp
Sample figures. Your results come from your own account.
mailchimp-get-segment
mailchimp-get-segment-member
hubspot-get-lists
hubspot-get-contact-list-membership
hubspot-get-contacts
hubspot-add-list
hubspot-add-list-members

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

Mailchimp

Mailchimp
Run it on your own Mailchimp data.

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

Try PopdockAI free

The problem

Your best Mailchimp segments are invisible to HubSpot

Mailchimp segments and tags hold your best audience definitions, but HubSpot cannot see them. Copying one means exporting members, picking the right audience when names repeat, and looking each person up in HubSpot.

Without PopdockAI

  • Export segment members from the right audience
  • Find or create a matching HubSpot list
  • Look up each member in HubSpot by email
  • Add people one by one and risk duplicates

With PopdockAI

  • The one matching segment or tag is found, or it asks
  • Only a manual HubSpot list is used or created
  • Members are matched by email and missing people reported
  • Nothing is written until you confirm, and nobody is removed

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** Put every member of the Mailchimp segment or tag named like `{segment-name}` who is already a HubSpot contact into the manual HubSpot contact list `{list-name}`, creating the list if it does not exist, after the user confirms.

**Step 1: Resolve the Mailchimp segment or tag**

Call `mailchimp-get-segment` with `name.contains` set to `{segment-name}`. Exactly one segment or tag must match. If none or several match (including the same name in different audiences), list them with name, type, member-count and list-id, and stop. Keep its `segment-id` and `list-id`.

**Step 2: Members in Mailchimp**

Call `mailchimp-get-segment-member` with `segment-id` and `list-id` set to those values and `max-records` 500. Keep `email`, `full-name` and `status`.

**Step 3: Resolve the HubSpot list**

Call `hubspot-get-lists` with `name` set to `{list-name}` and `object-type` set to 0-1. If several lists come back, list them and stop. If one comes back, its `processing-type` must be MANUAL; if it is not, say HubSpot manages that list's members and stop. Keep its `list-id`, then call `hubspot-get-contact-list-membership` with `list-id` set to it and `max-records` 1000, and note the contact-id of every current member. If no list comes back, it will be created in the write step.

**Step 4: Match each person in HubSpot**

For each distinct email address, call `hubspot-get-contacts` with `email` set to it and keep `record-id`, first and last name and `lifecycle-stage`. Sort people into: to add (a HubSpot contact not yet on the list), already on the list, not in HubSpot. If one email matches more than one contact, list them under "ambiguous" and do not add any of them. This prompt does not create contacts.

**Step 5: Confirm**

Show the HubSpot list (its name, id and size, or "will be created as a manual contact list"), then the groups: to add (email, name, Mailchimp status), already on the list (count), not in HubSpot (list), ambiguous (list). Ask the user to confirm the "to add" group, or to name people to leave out. Do nothing more until they confirm.

**Step 6: Write**

Only after confirmation:

1. If the list does not exist, call `hubspot-add-list` once with `name` set to `{list-name}`, `object-type` set to 0-1 and `processing-type` set to MANUAL. Keep the returned `id` as the list-id.
2. Call `hubspot-add-list-members` with `list-id` and `record-ids` set to the confirmed contacts' record-ids, comma-separated, in batches of at most 100.

**Step 7: Verify and report**

Call `hubspot-get-lists` with `list-id` and report its size (HubSpot can take a minute to update it). Then the totals: added, already on the list, not in HubSpot, ambiguous, failed (with the error).

**Rules & Guidelines:**

* `mailchimp-get-segment` and `mailchimp-get-segment-member` are on the Mailchimp server; `hubspot-get-lists`, `hubspot-get-contact-list-membership`, `hubspot-get-contacts`, `hubspot-add-list` and `hubspot-add-list-members` are on the hubspot server.
* `hubspot-add-list` (at most once) and `hubspot-add-list-members` (once per batch) are the only write tools this prompt may call, and only after confirmation. Do NOT call `hubspot-remove-list-members` or `hubspot-add-contact`, and call no other hubspot-add, hubspot-update, hubspot-rename, hubspot-remove, hubspot-subscribe, hubspot-unsubscribe or hubspot-import tool. This prompt only adds members; it never removes anyone already on the list.
* 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`.
* Membership of a HubSpot list does not change anyone's email consent. Do not treat it as a subscription, and do not subscribe anyone.
* Match on email address only, compared case-insensitively with surrounding spaces trimmed.

**Validation:**

* If Mailchimp returns nobody, say so and stop before creating the list.
* If nobody is left to add, report the counts and stop without asking for confirmation or creating the list.
* If one batch fails, report it with the error and continue with the next.

Who it's for

One answer, three teams that use it

Marketing operations

Reuse segments across tools

Bring a Mailchimp segment into HubSpot as a list without exporting, so both tools target the same people.

Copy the Mailchimp tag Webinar Attendees 2026 into a HubSpot list with the same name.

Sales managers

Give reps a list of engaged contacts

Turn a Mailchimp segment of engaged buyers into a HubSpot list your team can work from.

Put everyone in the Mailchimp segment Repeat Buyers into the HubSpot list Q4 Outreach.

Email marketers

Move audiences without breaking consent

List membership never subscribes anyone and people not in HubSpot are reported, not created.

Add the members of our Mailchimp segment Fabrikam Event to HubSpot list Fabrikam Event Guests and tell me who is missing.

How it works

What PopdockAI does when you ask

You name the segment and the HubSpot list, and your AI assistant matches the members by email. It adds people only after you approve, and Mailchimp is only read.

01

Resolve

It finds the one Mailchimp segment or tag that matches and reads its members.

Your AI tool

02

Check

It finds or plans the manual HubSpot list and notes its current members.

hubspot-get-lists
hubspot-get-contact-list-membership

03

Match

It matches each member to a HubSpot contact by email.

hubspot-get-contacts

04

Confirm

You approve the people to add, then it creates the list if needed, adds them and reports the size.

Your AI tool

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.

get-data

mailchimp-get-segment

Returns the segments and tags defined on Mailchimp audiences, with their type, conditions and member counts.
get-data

mailchimp-get-segment-member

Returns the members of each Mailchimp segment or tag, with their subscription status and engagement.
get-data

hubspot-get-lists

Returns HubSpot lists (segments) of any object type, with size and processing type from the HubSpot connector. Filter by size, processing type, name, list id, object type.
get-data

hubspot-get-contact-list-membership

Returns which contacts belong to which contact lists from the HubSpot connector. Filter by list name, contact id, contact email, list id.
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.
run-action

hubspot-add-list

Creates a HubSpot list and returns its ID. Required: Name, Object type, Processing type. Writes to HubSpot.
run-action

hubspot-add-list-members

Adds records to a manual HubSpot list. Required: List ID, Record IDs. Writes to HubSpot.
Read only.Nothing in Mailchimp 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

A Mailchimp segment as a HubSpot list in one request

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