Skip to main content
One-time setup to connect HubSpot to OpenCX. Use OAuth Public App unless your OpenCX admin tells you to use the legacy Private App path.
OAuth setup usually takes less than a minute. You need HubSpot admin access and OpenCX admin access.

Before you start

The integration uses HubSpot’s conversations and ticketing APIs. Service Hub (Starter or above) is required.
You need permission to approve connected apps for the HubSpot portal you want OpenCX to use.
Only organization owners and admins can save integration credentials in the OpenCX dashboard.

What OAuth handles for you

The OAuth Public App replaces the manual Private App setup:

Setup

1

Open HubSpot integration settings

Open Settings → Add-ons in your OpenCX dashboard and select HubSpot.The modal asks which connection method to use. Choose OAuth Public App.
If you already connected with a Private App, pick OAuth Public App to migrate. Existing tickets, sessions, and email signatures stay intact.
2

Connect with HubSpot

Click Connect HubSpot and choose how OpenCX uses this HubSpot account:
  • Also use for tickets: HubSpot becomes your ticketing system. Sessions handed to your team become HubSpot tickets, HubSpot inbox conversations become OpenCX sessions, and your HubSpot users are added as OpenCX teammates.
  • Workflow actions only: your ticketing system stays as it is. HubSpot workflows can use the OpenCX actions below, and linked contacts’ properties sync both ways (you can turn either direction off in the Sync section); HubSpot conversations, tickets and users are not synced. To switch to HubSpot ticketing later, open the HubSpot integration and click Also use for tickets in the Connection section; HubSpot asks you to approve OpenCX again.
OpenCX then redirects you to HubSpot’s consent screen.Choose the HubSpot portal to connect and approve the requested permissions.
The permissions cover conversations, tickets, contacts, companies, deals, owners, files, lists, and HubSpot workflow actions, plus optional read access to leads for the lead card. OpenCX requests them through HubSpot’s standard app consent screen; you do not paste a token into OpenCX.
3

Confirm the connection in OpenCX

After approval, HubSpot redirects you back to Settings → Add-ons. The HubSpot card shows Connected, and the modal shows Connected via OAuth.If the redirect shows an error, re-open the modal and try again. If HubSpot says the app is not available for the selected portal, confirm you are an admin for that portal.
4

Pick who the AI posts as

In the OAuth view, use AI posts as to select the HubSpot teammate OpenCX should attribute outgoing replies to.Customers see this teammate’s name on email replies. Use a dedicated AI teammate if your team wants replies to be clearly labeled.
5

Enable Autopilot for the channel

Before testing, enable Autopilot for the channel you’ll use in Settings → Autopilot.Autopilot is configured per channel. If it is off for Email, Web, SMS, WhatsApp, or Phone, OpenCX stores the conversation but does not auto-reply on that channel.
6

Send a test message

For a HubSpot conversation to appear automatically, the conversation must originate from a channel HubSpot owns — either a HubSpot chat widget or an email address routed through a HubSpot inbox.
  1. Send a test email to a HubSpot-connected inbox, or send a message through the HubSpot chat widget.
  2. Confirm the conversation appears in HubSpot.
  3. Confirm a matching session appears in the OpenCX inbox.
  4. Let the AI reply and confirm the reply posts back to the same HubSpot thread.
  5. Trigger a handoff and confirm the handoff note appears in HubSpot with a link back to the OpenCX session (unless you turned off Handoff comment).
The test above is for HubSpot-owned channels. OpenCX-native channels can still create HubSpot tickets on handoff through the create-hubspot-ticket-from-session workflow action; use the channel pages for verification steps.

Workflow actions

OAuth installs add OpenCX actions to HubSpot workflows.

Contact and deal workflows

These work with either connection choice. On a deal, they act on the deal’s primary contact, or its first contact when none is primary. They use the phone you pass, else the contact’s mobile phone, then its phone, then the phone saved on the linked OpenCX contact. When an action can’t run, the workflow continues and the action’s Reason output says why. For Variable values, enter the template’s or sequence’s variables in order, separated by commas. The sequence option lists its variables in order; the template option shows how many it takes. Templates with a coupon code button aren’t listed in HubSpot; send those from OpenCX.

Ticket workflows

These need HubSpot as your ticketing system. Use them when HubSpot rules should control the AI:
Workflow actions are available only on the OAuth Public App path. They do not appear for legacy Private App connections.

OpenCX sessions card

OAuth installs also add an OpenCX sessions card to HubSpot contact and deal records, and an OpenCX lead sessions card to the lead preview. It works with either connection choice. On a deal or lead, the card shows the primary contact, or the first contact when none is primary. To place the card, open a contact or deal record in HubSpot, choose Customize, and add OpenCX sessions to the right sidebar. For leads, add OpenCX lead sessions to the lead preview. The lead card needs read access to leads; if your install was approved before the lead card existed, reconnect HubSpot in OpenCX and approve it. Until then, the lead card asks you to reconnect. If HubSpot needs to be reconnected in OpenCX, the card says so instead of loading. The card shows:
  • The contact’s five most recent OpenCX sessions, with status, channel, assignee and last activity, and an Open in OpenCX link for each.
  • View messages: the session’s last 50 customer, AI and teammate messages, read-only. Internal notes are never shown.
  • View contact in OpenCX: the matched OpenCX contact.
  • Send WhatsApp template: pick one of your OpenCX WhatsApp numbers and an approved template, fill its variables, and check the preview of the header, body, footer and buttons before sending. The template goes to the contact’s mobile phone, or their phone when there is no mobile. It uses the contact’s open session on that number, or starts one, and assigns that session to you. An open session the AI or no one owns is taken over; if another teammate owns it, nothing is sent and the card says so. The Send a WhatsApp template workflow action follows the same rule for the teammate it assigns.
OpenCX matches the HubSpot user to a teammate by email: When something isn’t available, the card says why, for example that the HubSpot user isn’t an OpenCX teammate or that their role can’t send templates. A HubSpot account can be connected to only one OpenCX workspace. Connecting it from a second workspace is refused; disconnect it from the first one before connecting again. If an account is already connected to more than one workspace, the card and the OpenCX workflow actions stop working for it until you disconnect the workspace you no longer use.

Email signatures

Append branded email signatures to outgoing replies sent through HubSpot. Signatures are matched to the sender’s email domain, so different domains can have different signatures.
1

Open HubSpot settings

Go to Settings → Add-ons → HubSpot in your OpenCX dashboard.
2

Add a signature

In the OAuth view, scroll to Email Signatures and click Add. Enter the domain pattern and paste your signature HTML.
3

Add more domains (optional)

Repeat for each domain that needs a different signature.

Domain matching

Exact domain matches always take priority over wildcard patterns. If you have both open.cx and *.cx, emails from open.cx use the exact-match signature.

Advanced: Private App (legacy)

Use Private App (legacy) only when OAuth is unavailable for your organization or support asks you to use the fallback path.
In HubSpot, go to Settings → Integrations → Private Apps → Legacy Apps → Create Legacy App and choose Private.Enable these scopes: crm.objects.contacts.read, crm.objects.contacts.write, crm.objects.companies.read, crm.objects.deals.read, crm.objects.owners.read, tickets, conversations.read, and conversations.write.Copy the Private App Access Token after creation. HubSpot shows it only once.
In OpenCX, choose Private App (legacy) and copy the Webhook URL.In HubSpot, paste that URL into the Private App’s Webhooks tab, set event throttling high enough for your volume, and subscribe to:Click Commit changes in HubSpot after editing subscriptions.
In OpenCX, enter:Find the user ID in HubSpot under Settings → Users & Teams. Open the teammate profile and copy the number at the end of the URL.

Disconnecting

To disconnect an OAuth install, click Disconnect in Settings → Add-ons → HubSpot, then type DELETE to confirm. Existing OpenCX sessions remain available. If you use the legacy Private App path, also remove the webhook subscriptions from your HubSpot Legacy App.

Handoff & Sync

Ticket creation, contact sync, CRM context.

Troubleshooting

Connection failures, missing tickets, reply sync issues.

HubSpot Overview

Capabilities, supported channels, observability.

Human Handoff

Global handoff settings and escalation rules.