Connectors

/

HubSpot

/

Build a HubSpot contact list from a search
Write

Build a HubSpot contact list by describing who belongs on it

For marketing and sales teams who want a targeted HubSpot list without setting up filters, just by asking their AI assistant.

Try PopdockAI free
Get a live demo
Build a HubSpot contact list from a search
Make a HubSpot list called Texas Open Leads with every contact in Texas whose lead status is Open.
86 HubSpot contacts match, and no list is called Texas Open Leads yet. - Filters: state or region Texas, lead status Open - Preview: Dana Whitfield, Northwind Traders, lead - Preview: Sam Patel, Contoso, subscriber - List type: manual contact list Want the rest of the first 20, or shall I create the list now?
HubSpot
Sample figures. Your results come from your own account.
hubspot-get-lists
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

HubSpot

HubSpot
Run it on your own HubSpot data.

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

Try PopdockAI free

The problem

One-off HubSpot lists take filters, counts and clean up

Building a one-off HubSpot list means setting up filters, checking the count, creating the list and adding the contacts. Reuse a name already taken, or touch a list HubSpot manages itself, and you end up with a mess.

Without PopdockAI

  • Set up contact filters field by field
  • Check the count and scan the results
  • Create the list and add the contacts
  • Untangle name clashes with existing lists

With PopdockAI

  • Your plain words become HubSpot contact filters
  • Existing list names are checked and only manual lists are reused
  • You see the filters, count and first 20 contacts first
  • The list size is reported once it is built

The prompt

Use this prompt

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

Prompt
**Objective:** Create the manual contact list `{list-name}` containing the contacts that match `{criteria}`.

**Step 1: Check the name**

Call `hubspot-get-lists` with `name` = `{list-name}`. If a list with that name exists, show its ID, type and size, and ask whether to add to it instead (then skip Step 4 and use its `list-id`, but only if its `processing-type` is MANUAL).

**Step 2: Find the contacts**

Translate `{criteria}` into `hubspot-get-contacts` filters. Use only these: `lifecycle-stage`, `lead-status`, `company-name` / `company-name.contains`, `company-id`, `state-region`, `contact-owner`, `email.contains`, `create-date.from` / `create-date.to`. Set `max-records` = 500. If a criterion maps to none of these, say it cannot be filtered on and ask whether to continue without it.

**Step 3: Confirm**

Show the filters used, the number of contacts, and the first 20 (name, email, company, lifecycle stage). Wait for an explicit yes.

**Step 4: Create the list**

Call `hubspot-add-list` once with `name` = `{list-name}`, `object-type` = 0-1, `processing-type` = MANUAL. Keep the returned `id`.

**Step 5: Add members**

Call `hubspot-add-list-members` with `list-id` and `record-ids` = the contacts' record-ids, comma-separated, in batches of at most 100.

**Step 6: Verify and report**

Call `hubspot-get-lists` with `list-id` and report its size. Note that HubSpot can take a minute to update the size.

**Rules & Guidelines:**

* Only `hubspot-add-list` (once) and `hubspot-add-list-members` (once per batch) may write, after Step 3.
* Do NOT call any other write tool: no other hubspot-add, hubspot-update, hubspot-rename, hubspot-remove, hubspot-subscribe, hubspot-unsubscribe or hubspot-import tool.
* Never touch an existing list whose `processing-type` is not MANUAL; HubSpot manages its members.

**Validation:**

* If no contacts match, say so and stop before creating the list.
* If more than 500 match, tell the user the list holds only the first 500 and ask them to narrow the criteria.

Who it's for

One answer, three teams that use it

Campaign managers

Build a send list by describing it

Get a list of the right contacts for a campaign without setting up filters, with a preview before it is created.

Make a HubSpot list called Ohio Customers with every contact in Ohio whose lifecycle stage is customer.

Sales reps

Gather the contacts at one account

Pull every open lead at a company into a list you can work through, in one request.

Create a HubSpot list called Contoso Open Leads with all contacts at Contoso whose lead status is Open.

Marketing operations

Avoid clashing or managed lists

Name clashes are caught and lists HubSpot manages are left alone, so one-off lists do not clutter or break anything.

Build a list named New Signups October with contacts created since October 1 and an email at fabrikam.com.

How it works

What PopdockAI does when you ask

You describe who belongs on the list and your AI assistant turns it into filters and a preview. The list is only created after you have checked the count and said yes.

01

Ask

You name the list and describe the contacts, such as lifecycle stage, region or company.

Your AI tool

02

Search

It checks the list name and turns your criteria into HubSpot contact filters.

hubspot-get-lists
hubspot-get-contacts

03

Confirm

You see the filters, the count and the first 20 contacts, and say yes.

No items found.

04

Create

It creates the manual list, adds the contacts and reports the list size.

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

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-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 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

A targeted list built from plain language

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