Connect tools
Zendesk
Connect your Zendesk account and the agent opens a ticket whenever a conversation needs a person. Your team keeps working in Zendesk, and every ticket carries the shopper's email, the reason and a link to the full chat. Available on every plan, including Free.

Connect Zendesk
- Open your agent in the dashboard and go to Integrations.
- Under Team Handoff, click Connect on the Zendesk card.
- Enter your Zendesk subdomain (the part before
.zendesk.com). - Click Connect with Zendesk and approve access in Zendesk.
- Choose which events create tickets, optionally set a default group ID, then click Save.
- Use Test lead ticket or Test escalation ticket to verify before going live.
Agentmatica OAuth app (self-hosted)
For local or self-hosted deployments, create a Zendesk OAuth client and configure:
ZENDESK_OAUTH_CLIENT_IDZENDESK_OAUTH_CLIENT_SECRETZENDESK_OAUTH_REDIRECT_URI(optional — defaults to/api/integrations/zendesk/callbackon your app URL)TOKEN_ENCRYPTION_KEY(required to store OAuth tokens)
In Zendesk Admin Center:
- Go to Apps and integrations → APIs → OAuth clients.
- Click Add OAuth client, choose Confidential.
- Set the redirect URL to your Agentmatica callback (e.g.
https://app.example.com/api/integrations/zendesk/callback, orhttp://localhost:3000/api/integrations/zendesk/callbackfor local dev). - Copy the client identifier and secret into your environment variables.
A Zendesk trial account works for development. For production with many customers, request a global OAuth client from Zendesk Marketplace when you are ready to distribute publicly.
When a ticket is created
Conversation escalated creates a ticket when the conversation needs a person. That happens when:
- the shopper asks to talk to someone;
- the agent decides a person should take over, for example a refund it can't settle or a topic your escalation rules send to the team;
- the agent sees the shopper is getting frustrated (you can switch this off in the agent's settings);
- a shopper asks about a wholesale, bulk or custom order.
Lead captured creates a ticket each time a shopper shares their contact details, if you want every lead in Zendesk too.
Tickets wait for the shopper's contact details
A ticket without the shopper's email can't be answered: Zendesk files it under your own account, so a reply comes back to you instead of reaching the shopper. So when a shopper asks for a person before sharing any contact details, the agent asks for their email first and doesn't tell them the team has been told. The ticket is created as soon as they share it, with the shopper as the requester, so your reply reaches their inbox.
Leave Only when visitor email is known on to create tickets only when there's an email. Turn it off to also create a ticket when the shopper leaves only a phone number.
Each conversation gets one escalation ticket. If the shopper becomes a lead in the same chat, the escalation ticket already carries their details, so no second "New lead" ticket is opened.
What's in the ticket
- Subject:
Escalation from your agent: reasonorNew lead from your agent: email. - Body: the reason, a short summary and a link to open the full conversation in Agentmatica. Lead tickets list the shopper's name, email, phone and message.
- Requester: the shopper's email.
- Tags:
agentmaticaplusescalationorlead, for views and triggers.
Test tickets are tagged agentmatica_test and start with [TEST].
Replying to the shopper
Your team replies from Zendesk as usual, and the reply goes to the shopper by email. It doesn't appear in the chat window. To talk to a shopper while they're still on your site, take over the chat from the Agentmatica dashboard, or use Slack live handoff, where your team replies in a thread and the shopper sees it in the chat.
Default group ID
To route tickets to a specific support group, find the group id in Zendesk Admin Center (or via the Groups API) and paste it into the optional Default group ID field on the integration card.
Troubleshooting
- OAuth not configured: set
ZENDESK_OAUTH_CLIENT_IDandZENDESK_OAUTH_CLIENT_SECRETon the server. - Redirect URI mismatch: the redirect URL in Zendesk must exactly match Agentmatica's callback URL.
- Wrong subdomain on reconnect: use Reconnect for the same Zendesk account shown on the card.
- Delivery status and errors appear on the Zendesk card after each attempt.
Custom webhook alternative
Need Zapier or a custom workflow instead of direct Zendesk API access? Use Custom webhook to POST the same events to any URL.