Zendesk
Connect a LoopAgent to Zendesk Messaging to answer customers in the Zendesk Web Widget and hand conversations over to Zendesk agents.
Before you start
Prepare a published LoopAgent with access to third-party integrations, a Zendesk administrator account, Messaging with Agent Workspace, and access to Conversations integrations. Check your Zendesk subscription for these capabilities. Sign in at your workspace address, such as https://<subdomain>.zendesk.com/agent.
Prepare the integration and webhook
- In GPTBots, open LoopAgent → Integrations → Zendesk → Parameter configuration. Copy the Webhook URL below Configuration. If it is empty, ask your deployment administrator to configure the public HTTPS callback address for this environment.
- In Zendesk Admin Center → Apps and integrations → Integrations → Conversations integrations, create a custom integration for GPTBots. Paste the copied URL into Webhook endpoint URL and enable user information in the webhook body.
- Subscribe to Conversation message, Switchboard pass control, Switchboard release control, and Switchboard pass control failure. Their event names are
conversation:message,switchboard:passControl,switchboard:releaseControl, andswitchboard:passControl:failure. - Save the integration. In its API key tab, create an integration-scoped key and securely retain the App ID, Key ID, Secret Key, and Integration ID. The Key ID starts with
int_. The Integration ID identifies the custom integration. - Have your Zendesk administrator register this integration with Switchboard, set its next responder to Zendesk Agent Workspace, and make GPTBots the first responder for the Web Widget. Set the Switchboard default responder to GPTBots so a released conversation can return to it. Configure
deliverStandbyEvents=falsefor the GPTBots route. Prevent another bot from answering the same channel.
The webhook must point to the current GPTBots Bot and environment. GPTBots obtains the matching webhook secret automatically when you save the credentials. Instructions for the Zendesk administration steps are available in the Conversations integration guide and Switchboard guide.
Prepare Support OAuth and save
In Zendesk Admin Center, open Apps and integrations → APIs → Zendesk API → OAuth clients. Create a Confidential OAuth client that supports client_credentials. Allow groups:read users:read tickets:read, then retain its Identifier and Client Secret securely. GPTBots uses this client to access Support data, including teams and agents. See the Zendesk OAuth guide.
Fill in all seven GPTBots fields.
| Field | Value |
|---|---|
| Subdomain | Only the workspace prefix, such as acme for acme.zendesk.com |
| App ID | Conversations App ID |
| Key ID | Integration-scoped Key ID starting with int_ |
| Secret Key | Secret belonging to that Key ID |
| Integration ID | Custom Conversations integration ID |
| Support OAuth Client ID | OAuth client Identifier |
| Support OAuth Client Secret | Secret belonging to that OAuth client |
Submit the configuration and enable the Zendesk integration card. All credentials must belong to the same Zendesk workspace. One integration can be bound to one Agent. When editing a saved configuration, leaving a secret blank keeps the saved value. Clear configuration removes the GPTBots binding and stored credentials.
Enable human handoff
In Configuration → Human service, enable human service and select Zendesk. Set the trigger conditions and service hours, then choose no assignment, a team, or an agent. Configure the three optional ticket-status messages and their languages, and publish the Agent. The three messages are disabled by default.
Handoff applies to Zendesk-origin conversations. A successful passControl is the success criterion for the ticket-created message. During human service, the agent replies in Zendesk. End session releases control, after which the customer's next message can be answered by GPTBots. Submitting a ticket as Solved alone does not guarantee that the session has ended. Human-service dialogue is retained in Zendesk. To use AI responses only, leave human service disabled.
Tags and output
Under Advanced features → Set TAG, enabling tags selects the transfer-chat scenario when no scenario has been selected. Enter up to 10 candidate tags and press Enter to add each one. Letters, including Chinese characters, digits, underscores, hyphens, colons and slashes are supported. Spaces and other symbols are rejected. Saving converts tags to lowercase and removes duplicates. Resolve red validation errors before saving. At handoff, the model selects suitable candidates from the conversation for the Zendesk ticket.
Under Output settings, configure segmented output for text, images and files, and the segment delay. To receive image or document inputs, enable the corresponding input capabilities in the Agent and publish the change.
Verify the connection
Start a new Web Widget conversation and check a text reply. Trigger handoff during service hours, exchange messages with an agent, select End session, and send another customer message to verify AI reception. New Zendesk conversations have separate GPTBots conversation contexts.
If replies are missing, check that the Agent is published, the integration is enabled, the webhook URL and subscriptions match, and Switchboard assigns control to GPTBots. For empty team/agent lists, check the Support OAuth client, scopes and workspace. If AI does not resume, check the release event and default responder.
