Chatilo
USDPrices shown in US dollars Sign in Start free trial

Connect HubSpot

Keep HubSpot contacts in step with the people you talk to, import HubSpot contacts, and save closed chats as notes.

Last updated

On this page
  1. Before you start
  2. Connect
  3. What goes to HubSpot, and when
  4. Field mapping
  5. Save closed chats as notes
  6. Import contacts from HubSpot
  7. Pause, change the key or disconnect
  8. Common problems

Connecting HubSpot does three things: new and changed contacts in Chatilo are added to HubSpot, you can import HubSpot contacts into Chatilo when you choose, and closed chats can be saved as notes on the person’s HubSpot record.

Before you start

  • You must be a workspace owner or admin.
  • Your plan must include integrations (shown on plans as "API, Zapier and CRM sync").
  • You need permission in HubSpot to create a service key.

Connect

  1. In the sidebar, under Connect, click Integrations.
  2. On the HubSpot card, click Connect HubSpot.
  3. In HubSpot, create a service key (the dialog says Development → Keys → Service keys) and give it these scopes: crm.objects.contacts.read and crm.objects.contacts.write.
  4. Copy the key and paste it into Service key.

    A token from an older HubSpot private app works too. The key is stored encrypted and never shown again.

  5. Click Connect.

    The HubSpot page opens.

  6. Click Test connection.

    You should see "Connected to HubSpot account" followed by your account number, and "Everything is working."

What goes to HubSpot, and when

  • A contact is sent when it is added or changed in Chatilo. New contacts are queued straight away; edits and tag changes are picked up within a minute or two.
  • Each contact is matched to an existing HubSpot contact by phone number, then by email, so you do not get duplicates. If there is no match, a new HubSpot contact is created.
  • Contacts that were already in Chatilo when you connected are sent only when they next change. To send them all, click Send existing contacts to HubSpot. They go at about 60 a minute.
  • Contacts with neither a phone number nor an email are not sent.
  • Empty details are left out, so they never wipe what HubSpot already has.
  • Deleting a contact in Chatilo does not delete anything in HubSpot.

Changes made in HubSpot do not come back on their own. They arrive the next time you import.

When a contact is in HubSpot, its page in Chatilo shows CRM: In HubSpot, linked to the record.

Field mapping

Under What goes to HubSpot:

HereIn HubSpot
NameFirst name and last name
EmailEmail
WhatsApp numberChoose Phone number, Mobile phone number or WhatsApp phone number
Where they came fromA property you name. Sends where the contact came from, such as "WhatsApp", "Website chat", "Lead ad", "Shopify" or "Import".
TagsA property you name. Sends all the contact’s tags as one line of text, separated by semicolons.
Opted out of broadcastsA property you name. Sends true or false.

For the last three, type the property’s internal name in HubSpot, for example whatsapp_tags. Create the property in HubSpot first: single-line text for tags and source, a single checkbox for opted out. Leave a box empty to not send that detail.

Under Custom fields you can send up to 5 of your contact custom fields. On each row, type the custom field’s name on the left and the HubSpot property’s internal name on the right. On an import the same fields are read back.

Click Save settings after any change.

Save closed chats as notes

  1. Tick Save closed chats as notes in HubSpot.
  2. Set Messages to include in each note (5 to 50; the default is 20).
  3. Click Save settings.

When a chat is closed, one note is added to the person’s HubSpot record with the last messages in plain text and a link back to the chat. Chats closed before you turned this on are not added. A closed chat is only logged if the customer or a teammate wrote in it since the last note, so a broadcast landing in a closed chat does not create one.

Import contacts from HubSpot

  1. If numbers in HubSpot are saved without a country code, type yours (for example 91) in Country code for imported numbers and click Save settings.
  2. Under Bring contacts in from HubSpot, click Import contacts.

    The counts of records read, added, updated and skipped update while it runs. Click Stop import to stop it.

What the import does:

  • Adds a contact for every HubSpot record with a usable phone number, or updates the contact that already has that number, and tags it "HubSpot".
  • Skips records without a usable phone number.
  • Reads up to 5,000 records each run. When it stops there, the button changes to Import the next 5,000; click it to carry on from where it reached.
  • Does not send imported contacts back to HubSpot.
  • Stops adding new contacts when your plan’s contact limit is reached. You see "Some contacts were not added because your plan’s contact limit was reached."

Pause, change the key or disconnect

  • Pause syncing stops everything being sent or read. Changes made in the meantime are sent when you click Resume syncing.
  • To use a new key, go back to Connect → Integrations and click Change sign-in on the HubSpot card.
  • Disconnect removes the key and the links between contacts and HubSpot records in Chatilo. Nothing is deleted in HubSpot.

Recent activity on the HubSpot page lists the last 50 things sent or read, each marked Done or Problem.

Common problems

"Needs attention" and "Syncing has stopped."

HubSpot refused the saved key. Create a new key in HubSpot, then click Connect again on the Integrations page. Your settings and links are kept.

"HubSpot says the connection isn’t allowed to do this. Check the permissions (scopes) it was given."

The key is missing a scope. Give it both contact scopes listed above.

"HubSpot turned this down."

HubSpot rejected one contact, and its own explanation follows. The usual cause is a property name in the field mapping that does not exist in HubSpot, or a property of the wrong type. Fix the mapping and save; the contact is tried again the next time it changes.

"trying again in…"

HubSpot was busy or asked Chatilo to slow down. The contact is retried automatically up to four times, with longer waits each time. After that the log shows "not saved" and it is sent the next time the contact changes.

The Access token is not accepted

The key must be 20 to 500 characters with no spaces. Copy it again from HubSpot.

"Resume syncing before importing." or "Fix the connection before importing."

An import cannot start while syncing is paused or the connection needs attention.

"Integrations aren’t part of your plan."

Upgrade under Set up → Plan and billing to a plan that includes integrations.

Cookies on this site

We use the cookies needed to run the site and keep you signed in. With your OK we also remember choices you make here, such as the currency for prices. We don’t use advertising or tracking cookies. Cookie policy