Skip to navigation

HubSpot

Find, create and update HubSpot contacts, and read and move deals, during a call.
View as Markdown

Connect HubSpot so your agent can recognise the caller, add new contacts and move deals forward the moment a conversation qualifies them.

At a glance

AuthenticationOAuth 2.0 (sign in with HubSpot)
Asked at connectNothing. You’re sent straight to HubSpot
ObjectsContact (search, get, create, update) · Company (get) · Deal (get, update)
Works withSingle-prompt agents

Before you connect

  • Permission to install apps. Connecting installs an app in your HubSpot account, which needs a Super Admin or a user with the App Marketplace Access permission.
  • Access is account-wide. HubSpot grants access by scope, not by the connecting user’s own permissions. The agent can read and write every contact and deal in the account, whoever connects it.

Connect HubSpot

1

Open HubSpot on the Integrations page

Open the Integrations page in the dashboard and click Connect next to HubSpot.

2

Choose an account and allow access

Click Connect in the dialog. HubSpot asks you to pick the account to connect and approve these permissions:

ObjectAccess
ContactsRead and write
CompaniesRead
DealsRead and write
3

Add the tools to your agent

When you see HubSpot connected successfully, click Go to Tools. Click Add tool → Integration tool, choose HubSpot, tick the tools this agent needs, and click Add tools. From inside an agent, use Add tool → New tool → Integration tool instead.

Tools

ToolFunction nameWhat it does
Search contactshubspot_search_contactsFinds contacts by phone number, email or name
Get contacthubspot_get_contactReads a contact’s record
Create contacthubspot_create_contactCreates a new contact
Update contacthubspot_update_contactChanges fields on an existing contact
Get companyhubspot_get_companyReads a company by its record ID
Get dealhubspot_get_dealReads a deal by its record ID
Update dealhubspot_update_dealChanges a deal’s stage, amount, close date or owner

Fields

FieldRequiredWhat the agent sends
queryYesA phone number, email or name to search for

Returns up to 10 matching contacts with HubSpot’s default contact properties.

FieldRequiredWhat the agent sends
record_idYesThe HubSpot record ID, for example 12345678

Companies and deals have no search tool, so their IDs have to come from earlier in the call.

Update contact also needs the contact’s record_id. HubSpot recommends at least one of email, firstname or lastname on a new contact. Always collect email if you can, because HubSpot uses it to avoid duplicate contacts.

FieldLabelPinnable
firstnameFirst name
lastnameLast name
emailEmail
phonePhone
companyCompany
jobtitleJob title
lifecyclestageLifecycle stageYes
hs_lead_statusLead statusYes
hubspot_owner_idOwner IDYes

Needs the deal’s record_id, plus any of:

FieldLabelPinnable
dealnameDeal name
amountAmount
closedateClose date (YYYY-MM-DD)
pipelinePipeline
dealstageDeal stageYes
hubspot_owner_idOwner IDYes

Pin the values that never change

FieldTypical pinWhy
lifecyclestageleadNew contacts from calls enter your funnel at the right stage
hs_lead_statusNEWYour team’s “new leads” view picks them up
hubspot_owner_idYour rep’s owner ID (not their user ID)Contacts are assigned automatically
dealstageappointmentscheduledThe agent can only move a deal to the stage you allow

Use HubSpot’s internal values, not the labels:

  • Lifecycle stage and Lead status: open the property under Settings → Properties in HubSpot.
  • Deal stage: open Settings → Data Management → Objects → Deals → Pipelines and view the stage’s internal ID. Stages you added to a custom pipeline have numeric IDs.

HubSpot only moves Lifecycle stage forward through the API. Pinning lead sets it on new contacts, but won’t move an existing customer back to lead.

How it works on a call

1

Identify the caller

Search contacts with the caller’s number or email returns the contact’s ID.

2

Confirm who they are

Get contact returns the contact’s default properties, such as name and email, so the agent can greet them by name.

3

Record the outcome

New callers get Create contact. When a call books a demo or agrees terms, Update deal moves the deal to your pinned stage.

ToolExample condition prompt
Search contactsAt the start of every call, search with the caller’s phone number.
Create contactOnly when the search found nothing and the caller has given their name and email.
Update dealOnce the caller confirms a demo time.

Limits

  • Contacts are the only searchable object. Companies and deals are read by ID.
  • Search returns at most 10 contacts.
  • One HubSpot account per organization. To switch to a different one, click Disconnect, then Connect again.

Troubleshooting

The app was uninstalled from your HubSpot account or its access was revoked. Click Reconnect and approve access again. Your tools and pins are kept.

HubSpot expects the property’s internal value, for example appointmentscheduled, not “Appointment scheduled”.

Search matches names, emails, phone numbers and company. Check the number is stored in the same format the caller’s number arrives in. A contact created or edited moments ago can take a little while to appear in search.