Integrating with Zendesk

You can use an action interaction to automatically create tickets in your Zendesk account. You can attach a transcript of the conversation to the ticket, and email any file attachments uploaded as part of the conversation.

Example of a Zendesk Request bot

Designing the bot

Design a bot that uses questions and messages to gather information from the user. Having gathered the information, use a Zendesk Request action to do one of the following:

  • Automatically create a ticket in Zendesk.
  • Ask the user whether they want a ticket to be created, and then create the ticket for them.

Apart from any closing messages, the Zendesk Request must be the last step in the conversation. This ensures that a full transcript of the conversation is available. You can add the transcript as a comment to the ticket. If the user uploads an attachment then the transcript will show the name of the attachment. Zendesk operators can then download the file from the associated email account.

Once the request is sent:

  • Zendesk will return a ticket ID if the request is successful. You can send this onto the user in a Success interaction.
  • If the request fails then Zendesk returns an error message. You can handle error messages using an action interaction configured as the Fail interaction, or you could send a general failure message to the user.
Note: If you are planning to use Live Takeover with this bot then the operator must exit live takeover in order for the ticket to be created. The bot must take over and create the ticket. It is not possible for operators to create tickets.

Zendesk variables

The following variables are available for use with Zendesk requests.

Variable Description
{history} Transcript of the conversation up to the point that the request is sent to Zendesk.
{zendeskRequestId} Ticket ID returned by Zendesk once the ticket is created successfully.
{zendeskRequestError} Error message returned by Zendesk if a ticket could not be created.

Creating Zendesk requests

  1. Create the messages and questions that will gather information from the user, including optional contact details such as the user's name. You may need to create a variable for the user's name if you want to identify the user as the Zendesk requester.
  2. Create an action, selecting Zendesk Request as the action type.
  3. On the Settings tab, enter the details needed to send an API request to Zendesk. You can obtain the details you need from your Zendesk account.
Setting Description
Create Request API URL Enter the API endpoint. This will be:


where <zendesk_account_URL> is the sub-domain as set in Zendesk under Your Zendesk account name.

Authorization email Enter an email address associated with the Zendesk account. Any attachments uploaded during a conversation are sent to this email address.
API Key Enter the active API token associated with the Zendesk account. As the API token is not displayed anywhere in the Zendesk account once it is created, you may need to create a new one.
Requester Name Optionally enter the variable that holds the user's name. This becomes the requester in Zendesk.
Subject Enter a short description of the support request. This becomes the subject in Zendesk.
Comment Optionally attach a transcript of the conversation by entering {history}. If you leave this blank, EngageOne Converse will add the subject as a comment.
Success Select the interaction that defines what happens next when the request is successful. For example, it could send the ticket ID to the user.
Fail Select the interaction that defines what happens next when the request fails. For example this might be a condition action that sets the next step depending on the error returned from Zendesk.