Backend integrations
Zendesk
Integrate Zendesk with your PolyAI agents.
The Zendesk integration allows PolyAI voice agents to interact with Zendesk Talk. This guide outlines the setup process and key components.
Call flow
- A caller dials a number linked to a Zendesk account.
- Zendesk uses the Overflow feature to redirect the call to PolyAI. This requires a phone number from a SIP provider such as Twilio or Gamma.
- Twilio converts the PSTN call to SIP and sends it to PolyAI.
- PolyAI initiates a SIP INVITE to an outbound integration, routing the call to a SIP URI provided by Zendesk.
- Zendesk agents receive the call. If a ticket exists, they see its ID via the
X-Zendesk-Ticket-Id
SIP header.
Test environment
PolyAI has a test setup for Zendesk integrations:
- Zendesk dev account: PolyAI Zendesk
- Test bot: UK-1 Staging
- Test number:
01727 326086
Setup
Configure PSTN forwarding
Zendesk numbers route calls internally by default. To send calls to PolyAI, enable Overflow.
- Create an empty agent group in Zendesk Talk.
- Set the inbound number to route only to this group.
- Configure Overflow to forward calls:
- If no agents are available (the group is empty, so this is always the case).
- Outside business hours.
- Disable voicemail for this number.
Enable SIP in Zendesk
Zendesk requires SIP to send calls to external systems.
- In Zendesk, go to Admin Center.
- Select Channels → Talk → Lines.
- Click Add Line → Add SIP Line.
- Register a SIP address. Name it to match the client or project.
- Add Kamailio’s IP address range to allow traffic from PolyAI.
Create the outbound integration
- Create a
telephony.<environment>.yaml
file in the project’sdomain
folder.
- Deploy it:
A telephony engineer may need to run this command.
Handoff using the outbound integration
Once the SIP address is set up and verified, PolyAI can hand off calls to Zendesk agents.
For additional support, contact PolyAI Support.