Your agent qualifies the visitor; HubSpot gets the contact. Here are the four ways to wire that up today, and exactly what each one asks of you.
Last updated October 14, 2026 · By Samuel Su
Chat Data does not ship a dedicated HubSpot connector. What it does have is a general way for an agent to call other software, and HubSpot exposes a well-documented REST API, so connecting the two is a configuration job rather than a development project.[*]
Pick the route by who should decide when HubSpot gets written to. If the agent should decide in the moment, use an AI Action. If a fixed flow should decide, use a workflow. If every lead should be copied regardless of the conversation, use events through Zapier, Make, n8n or your own webhook endpoint.
| Route | How HubSpot is authorized | Good fit | HIPAA workspace |
|---|---|---|---|
| HubSpot app via MCP (Composio) | OAuth sign-in to HubSpot from the action settings | Letting the agent look up, create or update contacts, deals and tickets mid-conversation | Blocked in HIPAA workspaces |
| AI Action of type API Call | HubSpot private app token in a request header | One precise call you fully control, such as creating a contact with four named properties | Allowed; the request goes straight to HubSpot |
| Workflow API Call block | Same private app token, set in the block headers | Deterministic steps inside a scripted flow, such as checking whether an email is already a contact | Allowed; the request goes straight to HubSpot |
| Webhooks, Zapier, Make or n8n | Chat Data API key or webhook signing secret, plus HubSpot auth in the automation tool | Copying every submitted lead or escalation into HubSpot without touching the agent prompt | Depends on the automation tool you route through |
Under AI Actions, the MCP action includes a catalog of prebuilt apps run by Composio, and HubSpot is one of them. You click Connect, sign in to HubSpot and approve access, then tick the individual tools the agent may use. Composio's HubSpot toolkit covers creating, reading, searching and updating contacts, deals and tickets.[*]
This is the fastest route when you want the agent to reason about the CRM, for instance searching for a contact before deciding whether to create one. Be selective: each ticked tool counts as one AI action, and an agent with three clear tools picks the right one more reliably than an agent with thirty. Prebuilt app actions are refused in HIPAA workspaces because they run through Composio, which is outside Chat Data's Business Associate Agreement coverage.
This is the configuration we use when a team wants one exact behaviour: once a visitor has shared an email and agreed to be contacted, create a HubSpot contact with four properties. The field names below are the ones in the API Call action editor.
A super admin opens Development, then Legacy apps, clicks Create legacy app and chooses Private. On the Scopes tab, grant crm.objects.contacts.write (and crm.objects.contacts.read if you plan the lookup in Route 3).[*]
On the app's Auth tab, click Show token, then Copy. HubSpot expects it as a Bearer token and suggests rotating it every six months.
| Action HTTP Method | POST |
| Request URL | https://api.hubapi.com/crm/v3/objects/contacts |
| Headers | Authorization: Bearer <private app token> |
| Body Parameters | properties, type object, with four string properties: email (required), firstname, lastname, company |
| Parameter descriptions | Plain instructions the model reads, e.g. “The visitor's email exactly as they typed it” |
Press Test. The example values go to HubSpot and the response panel shows what came back, including the new contact's id. Then write the trigger rule in the action description, and repeat it in the base prompt if the agent hesitates: “Run this only after the visitor has given an email address and said yes to being contacted.”
When a visitor named Priya Shah from Lakeside Dental says yes, the agent fills the dynamic fields from the conversation and HubSpot receives this body, matching the shape in HubSpot's contacts guide:
POST https://api.hubapi.com/crm/v3/objects/contacts
Authorization: Bearer <private app token>
Content-Type: application/json
{
"properties": {
"email": "[email protected]",
"firstname": "Priya",
"lastname": "Shah",
"company": "Lakeside Dental"
}
}HubSpot's newest reference also publishes date-versioned paths alongside v3, so check its contacts guide for the path it currently recommends before you go live.[*]
Workflows suit steps that must happen the same way every time. The API Call block takes a method, a URL and headers that can contain {{variables}}, maps JSON response fields into variables with paths like properties.firstname (typed after the fixed body. prefix), and leaves through a success handle on 2xx or an error handle on 4xx and 5xx. Each call that gets a response costs 0.1 message credits, including a 4xx or 5xx such as a 404 lookup; only a call that never gets a response, such as a network failure, is free.
A practical use is a returning-customer check: a Form Block collects the email into a session variable, then a GET to https://api.hubapi.com/crm/v3/objects/contacts/{{SESSION.email}}?idProperty=email either succeeds (greet the visitor by first name) or errors (no contact yet, so continue to the signup path). The block sends body fields as a flat list of keys and values, which matches this lookup but not HubSpot's nested properties body for creating records; use Route 2 for that.
If you would rather not touch the agent at all, listen to what it emits. Chat Data publishes a lead submission event, a live chat escalation event and a new message event:
lead-submission event with the lead's name, email, phone and uuid, sent to an endpoint you run, verified with HMAC-SHA256.Before configuring event delivery, review the current options on the pricing page.
Reviewed for Accuracy
Samuel Su
Founder & CEO
Action fields, body handling and HIPAA rules checked against the Chat Data product and cookbook. Endpoint, scopes, token handling and deduplication checked against HubSpot's developer documentation; toolkit coverage against Composio's catalog.
Last updated on October 14, 2026.
No. Chat Data has no dedicated HubSpot panel the way it has one for Zendesk. You connect HubSpot through an MCP action powered by Composio, an API Call action or workflow block that calls the HubSpot API directly, or an automation tool such as Zapier, Make or n8n listening to Chat Data events.
For the contact example on this page, crm.objects.contacts.write to create records and crm.objects.contacts.read if you also look contacts up. Grant nothing broader than the calls you actually configure.
As of October 2026, HubSpot treats email as the primary unique identifier for deduplicating contacts, so always send the email property. If a visitor might already exist, add a lookup by email first, or let the MCP route use HubSpot update and search tools alongside create.
No. Headers are not part of the tool definition the model receives; Chat Data attaches them only when it sends the request. The model fills the body fields such as email and first name. With the MCP route there is no token to paste at all, because the connection is made through OAuth.
Each tool you tick counts as one AI action toward your limit, and only ticked tools count. Selecting create contact, search contacts and create deal uses three, no matter how many tools the HubSpot toolkit offers.
Not through the Composio-powered MCP app: prebuilt app actions run through Composio, which is outside Chat Data's Business Associate Agreement coverage, so they cannot be saved in a HIPAA workspace. API Call actions, workflow API Call blocks and custom MCP servers you host call HubSpot directly; whether HubSpot may hold health data is governed by your own agreement with HubSpot.
Only through the calls you configure. Knowledge answers come from the documents and web pages you train it on. HubSpot calls are actions the agent runs when its instructions say to, for example reading a contact record so it can greet a returning customer by name.
Train an agent on your content, add the HubSpot route that fits your team, and stop retyping chat leads into the CRM.
HubSpot CRM contacts API guide covering contact creation, required scopes, retrieval by email and email-based deduplication.
HubSpot guide to creating a private app, selecting scopes, copying its access token and sending it as a Bearer token.
Composio catalog page for the HubSpot toolkit, listing contact, deal and ticket tools available to AI agents.