Developers
ENPT

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

Go to Settings › HubSpot. The HubSpot Integration page lists the mappings of the selected account.

Add a mapping

Click Add. The New HubSpot mapping panel opens.

Choose account and avatar

Under HubSpot account (owner), pick the HubSpot account. Under Avatar, pick the avatar that uses this mapping.

Choose the target

Pick the HubSpot object (property) and the Tolky record (internal_property), and fill in pipeline_id. object_id and association_id are optional.

Describe the fields

Under Object structure, click Add field for each HubSpot property you want to fill. Give it a key, a type and a description.

Turn on the sync

Turn on Sync tickets with HubSpot (creating a ticket in the conversation syncs it).

Save

Click Create. The message Mapping created. appears.

Field options

OptionWhat it does
RequiredThe field must have a value before the record is sent to HubSpot.
No AIThe avatar does not collect this field in the conversation. The value comes from the system.
Fixed values (enum)Only the listed values are accepted.
FormatHow the value is written, for example timestamp for dates.

Test

  1. Open a conversation with the avatar of the mapping and give the information the fields ask for.
  2. Open a ticket in that conversation.
  3. 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

SymptomWhat to do
HubSpot does not appear in SettingsYour 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 HubSpotCheck 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:

RouteHubSpot recordBecomes in Tolky
POST /api/integrations/hubspot/internal/ticketsTicketTicket (status changes are recorded in the ticket history)
POST /api/integrations/hubspot/internal/dealsDealLead
POST /api/integrations/hubspot/internal/objectsCustom objectLead 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": false to queue the record and get an immediate answer instead of waiting for processing.
  • 403 means the token is missing or invalid.

Previous

Build your own channel

Next

Use an app