HubSpot
Send tickets opened in Tolky conversations to HubSpot and receive HubSpot updates back.
With the HubSpot integration, a ticket opened in a conversation is created in HubSpot with the data the avatar collected. Changes made in HubSpot can also come back to Tolky. A mapping tells Tolky which HubSpot object to use and which fields to fill.
To run a one-off action in HubSpot from a flow, such as creating a contact, use Use an app. This page covers the ticket sync.
Before you start
- Tolky sets up the HubSpot connection for your account. There is no self-service connect screen today: ask Tolky support. After the first mapping exists, Settings › HubSpot appears in the Integrations group.
- Permission to view HubSpot settings. To create or change mappings you also need edit permission. Without it, each mapping shows View instead of Edit.
- The ID of the HubSpot pipeline that should receive the records.
Create a mapping
Open the screen
Add a mapping
Choose account and avatar
Choose the target
property) and the Tolky record (internal_property), and fill in pipeline_id. object_id and association_id are optional.Describe the fields
Turn on the sync
Save
Field options
| Option | What it does |
|---|---|
| Required | The field must have a value before the record is sent to HubSpot. |
| No AI | The avatar does not collect this field in the conversation. The value comes from the system. |
| Fixed values (enum) | Only the listed values are accepted. |
| Format | How the value is written, for example timestamp for dates. |
Test
- Open a conversation with the avatar of the mapping and give the information the fields ask for.
- Open a ticket in that conversation.
- In HubSpot, check that the ticket appears in the chosen pipeline with the fields filled in.
Change or delete
On the mapping card, click Edit, change the fields or the sync switch and click Save. To delete, use the trash icon and confirm in Delete mapping. Tickets already sent stay in HubSpot.
Common problems
| Symptom | What to do |
|---|---|
| HubSpot does not appear in Settings | Your account has no HubSpot configuration yet. Ask Tolky support to set it up. |
| "Fill in settings, avatar and pipeline_id." | Choose the account, the avatar and fill in pipeline_id before clicking Create. |
| Tickets do not reach HubSpot | Check that the sync switch is on and that every Required field gets a value in the conversation. |
Receive data from HubSpotTechnical details
HubSpot can send records to Tolky through a webhook, usually from a HubSpot workflow ("Send a webhook" action). Each route handles one type of record:
| Route | HubSpot record | Becomes in Tolky |
|---|---|---|
POST /api/integrations/hubspot/internal/tickets | Ticket | Ticket (status changes are recorded in the ticket history) |
POST /api/integrations/hubspot/internal/deals | Deal | Lead |
POST /api/integrations/hubspot/internal/objects | Custom object | Lead or ticket, depending on the mapping |
Authenticate with your host token (see Authentication). You do not send hostId: the account comes from the token. The body carries the HubSpot properties agreed in your mapping:
curl -X POST "https://api.tolky.to/api/integrations/hubspot/internal/tickets" \
-H "Authorization: Bearer $TOLKY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"external_id": 1234567890,
"subject": "Access problem",
"hs_pipeline_stage": 1234567,
"email": "customer@example.com"
}'- Fields outside the mapping are kept in Tolky but are never written back to HubSpot.
- Send
"process": falseto queue the record and get an immediate answer instead of waiting for processing. 403means the token is missing or invalid.
Related
- Use an app: HubSpot actions inside flows.
- Receive data by webhook: start a flow from any system.
- API authentication