Skip to content
Documentation

Open helpdesk tickets in Zendesk, Freshdesk, HubSpot, Gorgias or Help Scout for hand-offs

Connect Zendesk, Freshdesk, HubSpot, Gorgias or Help Scout so each hand-off from your intoCHAT agent also opens a ticket there: setup per helpdesk, ticket fields, what the ticket contains, privacy and limits.

When your agent hands a conversation off by email, it can also open a ticket in your Zendesk, Freshdesk, HubSpot, Gorgias or Help Scout account. Your team then answers from the helpdesk they already use. The visitor's hand-off email address is the ticket's requester, so replies from the helpdesk reach them by email.

The hand-off email to your team still goes out as before. The ticket is extra.

Before you start

Open your agent and go to the Setup tab. The Helpdesk tickets card is right below Hand-off to your team. Under Helpdesk, choose Zendesk, Freshdesk, HubSpot, Gorgias or Help Scout, then follow the steps for it below. Each agent can connect one helpdesk.

Connecting and disconnecting a helpdesk is for the account owner and admins, because it hands over credentials. Editors can switch tickets on and off and change the ticket fields. See Team members and roles.

Connect Zendesk

  1. In Zendesk Admin Center, open Apps and integrations, APIs, Zendesk API.
  2. Turn on Token access if it is off. Click Add API token, name it intoCHAT and copy the token. Zendesk shows it only once.
  3. In the card, enter your Subdomain: the part before .zendesk.com, for example acme for acme.zendesk.com.
  4. Under Agent email, enter the email address of the agent or admin whose name the tickets are created in.
  5. Paste the token under API token and click Test and connect.

intoCHAT signs in with the agent's email and the token, the way Zendesk describes for API tokens. The token works for your whole Zendesk account, so delete it in Zendesk if you stop using intoCHAT.

Connect Freshdesk

  1. In Freshdesk, click your profile picture and open Profile settings.
  2. Click View API key, complete the check Freshdesk asks for, and copy the key.
  3. In the card, enter your Freshdesk address, for example acme.freshdesk.com. Use the .freshdesk.com address even if your help center has its own domain: Freshdesk's API only answers there.
  4. Paste the key under API key and click Test and connect.

The key acts as you in Freshdesk, so use the profile of an agent who can create tickets.

Connect HubSpot

  1. In HubSpot, create a private app: Development, Legacy apps, Create legacy app, Private. In some accounts this is under Settings, Integrations, Private apps.
  2. Under Scopes, add crm.objects.tickets.read and crm.objects.tickets.write (shown as tickets in some accounts), plus crm.objects.contacts.read and crm.objects.contacts.write.
  3. Create the app, open its Auth tab, click Show token and copy the access token.
  4. Paste it under Access token in the card and click Test and connect.

New tickets go to your default ticket pipeline, in its first stage that isn't closed. In a new HubSpot account that is Support Pipeline, New. The card shows which pipeline and stage intoCHAT chose. To use another pipeline or stage, set Pipeline and stage under Ticket fields.

Each ticket is filed under the visitor's contact: intoCHAT looks for a contact with the visitor's email address and creates one if there is none. If the token lacks the contacts scopes, the ticket is still created, without a contact.

Connect Gorgias

  1. In Gorgias, open Settings, REST API (in some accounts under All apps, REST API).
  2. Note your Base API URL (https://acme.gorgias.com/api/ has the subdomain acme), your Username (your login email) and the Password, which is the API key. Create a key if there is none.
  3. In the card, enter the Subdomain, the Username (email) and the API key, and click Test and connect.

intoCHAT signs in with the email and the key (basic authentication), as Gorgias describes. The key has the access of the user it belongs to.

Each ticket has the visitor as its customer. Its first message is from the visitor over the API channel, so Gorgias doesn't email it to them. The ticket is Open and tagged intochat.

Connect Help Scout

  1. In Help Scout, click your avatar, open Your Profile, My Apps and click Create My App.
  2. Name it intoCHAT. Help Scout asks for a redirection URL, which intoCHAT doesn't use: enter your website's address.
  3. Copy the App ID and App Secret into the card and click Test and connect.
  4. If your account has more than one mailbox, the card asks which one new conversations go to. Choose it and click Test and connect again.

intoCHAT exchanges the app ID and secret for a short-lived access token each time it opens a conversation, the way Help Scout describes for your own apps. The app acts as you, so use a user who can see the mailbox. To move tickets to another mailbox, click Replace credentials and choose it. This removes the ticket fields, because custom fields belong to a mailbox.

Each hand-off opens an email conversation in the mailbox, with the visitor as the customer and the content as their message. Help Scout's auto-reply isn't sent, and the conversation is tagged intochat.

What connecting checks

Test and connect checks the credentials with a read that changes nothing in your helpdesk:

HelpdeskWhat intoCHAT reads
ZendeskThe user the token belongs to. It must be an agent or an admin.
FreshdeskYour own agent profile.
HubSpotYour account's ID, and your ticket pipelines. A token that can't read tickets is refused.
GorgiasYour account.
Help ScoutAn access token for the app, then your mailboxes. An app that can't see any mailbox is refused.

If the check fails, the card says why, for example that the credentials weren't accepted or that no account answers at that address. Nothing is saved until the check passes. You can check credentials up to 10 times in 10 minutes.

The credentials are stored encrypted and never shown again. The card shows only their last four characters, and for Zendesk and Gorgias the email. To change them, click Replace credentials. If you connect a different helpdesk or account, the ticket fields are removed, because they name the old helpdesk's fields.

Ticket fields

Under Ticket fields in the card, you can fill fields of each new ticket, for example a custom field with the visitor's plan, a priority, a group, or extra tags. Click Add ticket fields. intoCHAT reads the list of fields from your helpdesk, so you pick real fields, then you enter a value for each.

What you can fill depends on the helpdesk:

HelpdeskFields
ZendeskCustom ticket fields, tags, priority, group, assignee (by user ID)
FreshdeskCustom ticket fields, tags, priority, group, type
HubSpotTicket properties that can be edited, and the pipeline and stage
GorgiasCustom ticket fields, tags
Help ScoutThe mailbox's custom fields, tags

The list offers text, number, dropdown, checkbox and date fields. Fields of other kinds, such as multi-selects, aren't offered.

Values and variables

A value is fixed text, a variable in double curly braces, or both: {{conversation.country}} via {{conversation.channel}}. Click Insert a variable to add one.

VariableWhat it holds
{{visitor.name}}The visitor's name, from identity verification or your lead form
{{visitor.email}}The email address the visitor gave for the hand-off
{{conversation.topic}}The conversation's first topic, once it has one
{{conversation.sentiment}}positive, neutral or negative, once the conversation was classified
{{conversation.country}}The visitor's country, by name
{{conversation.page}}The page the chat started on
{{conversation.channel}}widget, whatsapp, messenger, instagram, slack or email
{{contact.<attribute>}}A field of the visitor's contact: name, email, phone, external_id or an attribute such as {{contact.plan}}
{{lead.<field>}}The lead the visitor left in this conversation: name, email, phone or a lead form field. The variable menu lists your form's fields

Topics and sentiment are assigned overnight while Topic analysis is on, so a ticket opened right at the hand-off usually doesn't have them yet, and fields that use them are left out.

The contact is found the way API actions find it: the verified visitor's contact, or the contact with the email address or phone number the visitor left in the lead form, unless that contact belongs to a signed-in user of your site.

Examples

FieldValueOn the ticket
Zendesk custom field Plan (dropdown){{contact.plan}}The option whose value or name matches the contact's plan attribute, for example Gold
Freshdesk PriorityHighHigh
Zendesk GroupSupportThe Support group
HubSpot Pipeline and stagePicked under Choose an option, for example Support Pipeline → NewThat pipeline and stage, instead of the one shown in the card
Tagschat, {{conversation.channel}}intochat, chat and widget
Gorgias custom field Order total (number){{lead.order_total}}The number the visitor entered in that lead form field

Types and missing values

  • When you save, a fixed value must fit its field: a number field needs a number, a checkbox true or false (yes, no, 1 and 0 work too), a dropdown one of its options (by value or name), a date YYYY-MM-DD. The card says which row doesn't fit. Variables can't be checked until a ticket is opened.
  • When a ticket is opened, a field whose variable has no value is left out. It is never sent empty. A value that doesn't fit the field, such as a word in a number field, is left out too.
  • Tags are separated by commas. The intochat tag is always added. Zendesk tags are made lower case, with spaces turned into underscores, because Zendesk doesn't allow spaces in tags. Up to 10 tags are added.

If the helpdesk refuses a field

Your helpdesk can still refuse a value, for example a group that was deleted. When it refuses the ticket because of its fields, intoCHAT sends the ticket once more without the mapped fields and tags, so the hand-off still gets its ticket. The card then shows a warning with the time, until a later ticket's fields are accepted or you save the ticket fields again. In Gorgias, custom fields are set right after the ticket is created; if Gorgias refuses them, the ticket stays and the card shows the same warning.

What goes into the ticket

  • Subject: [Agent name] Chat hand-off: and the visitor's first message, shortened.
  • Requester: the email address the visitor gave for the hand-off, and their name when it is known (from your lead form or identity verification).
  • What they need: the agent's short summary from the hand-off.
  • Summary: three to five bullet points written by AI about what the visitor wants and what the agent already answered. If the summary can't be written in time, the ticket goes in without it.
  • Visitor: email, name when known, the page the chat started on and the visitor's country, when known.
  • Conversation: the last 30 messages as plain text, each cut at 1,000 characters. Longer conversations note how many earlier messages were left out. Product cards, buttons and other widget elements are left out.
  • In intoCHAT: a link to the conversation on your Conversations tab.

How each helpdesk shows it:

  • Zendesk: the content is the ticket's first comment, added as an internal note, and the ticket is tagged intochat. Zendesk's own triggers still run, for example the email telling the requester their request was received.
  • Freshdesk: the content is the ticket description. The ticket is Open, with Low priority unless your ticket fields set another, and tagged intochat. Freshdesk's own notifications to the requester still apply.
  • HubSpot: the content is the ticket description, in the pipeline and stage shown in the card, or the one your ticket fields set.
  • Gorgias: the content is the ticket's first message, from the visitor, and the ticket is tagged intochat.
  • Help Scout: the content is the conversation's first message, from the visitor, in the mailbox you chose. The conversation is tagged intochat.

Your ticket fields are added to all of them.

When a ticket is created

The ticket is opened a few seconds after the agent's reply to the visitor, so the visitor never waits for your helpdesk. It is created only when the hand-off email to your team went out.

  • Playground: a hand-off from the Playground opens a real ticket, marked [Test] at the start of the subject and with a line at the top saying it is a test, like the email.
  • Temporary chats: never, because they can't be handed off.
  • Switched off: while the switch in the card is off, hand-offs send only the email.

Where tickets show up

  • In the Conversations tab, the transcript of a handed-off conversation shows Ticket # and the ticket's number next to the Handed off badge. It opens the ticket in your helpdesk, in a new tab.
  • If the helpdesk refused the ticket, the transcript shows Ticket couldn't be created instead. The hand-off email went out anyway. Check the card in the Setup tab: it says if the saved credentials no longer work.
  • The handoff.requested webhook includes the ticket's helpdesk, number and link when a ticket was created.

Two-way sync with Zendesk

With Zendesk you can go one step further: the ticket takes over the conversation. Your team answers in Zendesk, and the visitor gets the reply in the chat, not only by email.

Turn it on

  1. Connect Zendesk with an admin's email and API token (see Connect Zendesk). Only admins can add webhooks and triggers in Zendesk.
  2. In the Helpdesk tickets card, switch on Sync replies with Zendesk.

intoCHAT adds a webhook and a trigger named intoCHAT · <agent name> to your Zendesk. The trigger fires when a ticket tagged intochat gets a public reply or a new status, and tells intoCHAT which ticket changed. Don't remove the intochat tag from tickets or edit the trigger. Switching sync off removes both again.

Like connecting, switching sync on or off is for the account owner and admins.

How it works

  1. The agent hands off as before: the visitor gives an email address, and your team gets the email and the ticket.
  2. From then on, the agent doesn't answer in that conversation. The widget shows "Your request is with our support team. Their replies will appear here and by email."
  3. What the visitor writes in the chat is added to the ticket as their own public reply. A pending or on-hold ticket is set back to open, as an email reply would.
  4. Public replies in the ticket appear in the chat with the Zendesk agent's first name, within about 10 seconds while the visitor has the chat open. Internal notes never do. Zendesk also emails the replies as usual, so a visitor who has left still gets them.
  5. When the ticket is Solved or Closed, the agent answers again, and the widget says the request was marked as solved.

If the visitor asks for a person again in the same conversation after the ticket was solved, the ticket is reopened with an internal note saying what they need now. A closed ticket can't be reopened in Zendesk, so then the hand-off sends the email only.

On other channels

  • WhatsApp, Messenger and Instagram: replies from Zendesk are sent there too, within Meta's 24-hour window after the visitor's last message. Outside it, the visitor gets them by email from Zendesk.
  • Email agent and Slack: replies are saved in the conversation, and Zendesk emails the visitor.
  • Playground: hand-offs open a [Test] ticket that isn't synced.

In Conversations

Replies from Zendesk show in the transcript with the Zendesk agent's first name and "· team, Zendesk". In the CSV export their Role is "Team member".

If something doesn't arrive

  • intoCHAT also reads open tickets from Zendesk itself: while the visitor has the chat open (at most once a minute) and every few minutes in the background. A missed webhook only delays a reply.
  • A visitor message Zendesk refuses is tried again after 1, 5, 15, 60 and 180 minutes. After that it's dropped, and the card shows a warning with the time. The message stays in the conversation in intoCHAT.
  • Files the visitor sends aren't copied to Zendesk. The ticket gets their names and a note to open the conversation in intoCHAT.
  • Replacing the credentials or disconnecting switches sync off and removes the webhook and trigger from Zendesk. Turn sync on again after you reconnect.

Privacy

When you connect a helpdesk, each hand-off sends the conversation transcript, the AI summary, the visitor's email address and name when known, the page and the country to the helpdesk you chose, under your account there, plus whatever your ticket fields add, such as contact attributes. That helpdesk then processes the data under its own terms. intoCHAT doesn't read anything back from it, except the list of fields when you edit the ticket fields, unless you import solved tickets as knowledge, which uses the same connection to read them. Ticket import works with Zendesk and Freshdesk only. With two-way sync on, intoCHAT also reads the synced tickets' status and comments from Zendesk, and adds the visitor's chat messages to the ticket.

Tell visitors about this in your own privacy policy if your helpdesk isn't already named there.

Limits

  • One ticket per conversation. A later hand-off in the same conversation sends another email, but no second ticket.
  • Two-way sync works with Zendesk only. With the other helpdesks, replies, status changes and notes in the helpdesk don't come back to intoCHAT: answer the visitor from the helpdesk.
  • One helpdesk per agent.
  • If the helpdesk doesn't answer within 10 seconds, or is limiting requests, that ticket isn't created and isn't retried. A ticket refused because of its fields is retried once without them (see above).
  • Up to 25 ticket fields per agent, each value up to 500 characters.

Switch off or disconnect

  • Switch Open a ticket for each hand-off off to pause tickets. The credentials stay saved.
  • Click Disconnect to delete the saved credentials. Tickets already opened stay in your helpdesk and stay linked in Conversations. Hand-off emails go on as before.

Next steps

View as Markdown