We just launched on Product Hunt. Come say hi →
Agentmatica

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.

Team Handoff section with the Zendesk card
Agent → Integrations → Team Handoff → Zendesk.

Connect Zendesk

  1. Open your agent in the dashboard and go to Integrations.
  2. Under Team Handoff, click Connect on the Zendesk card.
  3. Enter your Zendesk subdomain (the part before .zendesk.com).
  4. Click Connect with Zendesk and approve access in Zendesk.
  5. Choose which events create tickets, optionally set a default group ID, then click Save.
  6. 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_ID
  • ZENDESK_OAUTH_CLIENT_SECRET
  • ZENDESK_OAUTH_REDIRECT_URI (optional — defaults to /api/integrations/zendesk/callback on your app URL)
  • TOKEN_ENCRYPTION_KEY (required to store OAuth tokens)

In Zendesk Admin Center:

  1. Go to Apps and integrations → APIs → OAuth clients.
  2. Click Add OAuth client, choose Confidential.
  3. Set the redirect URL to your Agentmatica callback (e.g. https://app.example.com/api/integrations/zendesk/callback, or http://localhost:3000/api/integrations/zendesk/callback for local dev).
  4. 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: reason or New 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: agentmatica plus escalation or lead, 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_ID and ZENDESK_OAUTH_CLIENT_SECRET on 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.

Start free

Turn the questions shoppers
ask into orders.

Add your store, ask it what your shoppers ask, and watch it answer from your pages, show the right products and build the cart. Put it on your site when you’re ready. Nothing goes live until then.

Start free · Try it before it goes live · No credit card