Connect HubSpot

Connect HubSpot to Askocto so leads and contacts the agent collects are created or updated in your HubSpot account, with field mapping and testing.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

The HubSpot integration sends the people your agent talks to into HubSpot. Use it when marketing or sales works from HubSpot and you want every lead from a chat to land there with its context.

What gets synced

From Askocto In HubSpot
A lead collected by the agent A contact is created, or updated if the email exists.
The conversation summary A note on the contact.
Custom contact attributes Properties you map.

Before you start

  • A HubSpot account where you can approve a connection.
  • Workspace Owner or Admin role in Askocto.
  • An agent that collects leads. See Collect leads.

Connect HubSpot

  1. Open Workspace Settings > Integrations.
  2. Find HubSpot and select Connect.
  3. Sign in to HubSpot and approve the connection.

You should see HubSpot marked Connected.

Map the fields

  1. Open the integration and select Field mapping.
  2. Map Name, Email and Phone to the matching HubSpot properties.
  3. Map any custom attributes you use, such as plan or company.
  4. Choose whether to Update existing contacts or skip them.
  5. Select Save.

Only mapped fields are sent. Attributes are created in Contacts > Attributes, see Contacts overview.

Turn on lead sync

  1. Open the agent and select Actions.
  2. Open Collect leads and turn on Send to HubSpot.
  3. Select Save.

Test it

  1. Open Test > Playground and start a chat as a visitor who wants a quote. Give a test name and email.
  2. Check the trace for the lead being captured.
  3. In HubSpot, find the contact and the note, then delete the test record.

Warning: Synced contacts are real records, including from the Playground. Use a test email you can delete.

Disconnect

Open Workspace Settings > Integrations, choose HubSpot and select Disconnect. Contacts already in HubSpot stay there.

Troubleshooting

  • Contacts are not created. Check that Send to HubSpot is on and the email field is mapped.
  • Properties stay empty. The agent must collect the value first. Add it to the collect step.
  • Duplicates appear. Turn on Update existing contacts.

For custom flows, the lead.captured event is also available as a webhook.

Something unclear or missing? Tell us and we will fix the page.