You can automatically trigger a CloudTalk VoiceAgent call from Zendesk Triggers or Automations. Zendesk natively supports Basic Authentication in its Webhooks configuration, so no middleware is required. This guide shows you how to set up the webhook, connect it to a trigger, and verify the call was initiated.
User level: Admin
Before you start
You will need:
A CloudTalk VoiceAgent already created (note the VoiceAgent ID)
CloudTalk API Key and Secret (Company Settings > Integrations > API)
Zendesk Support Professional plan or above
Contact/requester records with a phone number
Set up the integration
Create the Webhook
In Zendesk Admin Center, go to Apps and integrations > Webhooks.
Click Create webhook.
Select Trigger or automation and click Next.
Configure the webhook:
Name: CloudTalk VoiceAgent
Endpoint URL:
https://api.cloudtalk.io/v1/voice-agent/callsRequest method: POST
Request format: JSON
Authentication: Basic authentication
Username: your CloudTalk API Key
Password: your CloudTalk API Secret
Click Create webhook > Finish Setup.
Zendesk handles Base64 encoding of the credentials automatically when Basic authentication is selected.
Create the Trigger
In Admin Center, go to Objects and rules > Business rules > Triggers (or Automations).
Click Create trigger.
Enter a Trigger name (e.g. Ticket Solved).
Choose a Trigger category: create a new category or pick any existing one that fits.
Set your Conditions (e.g. Ticket > Status > Is > Solved).
Under Actions, click Add action and select Notify active webhook.
Select the webhook you created in Step 1. A JSON body text box will appear.
Enter your JSON payload in the text box. Use the Zendesk placeholder
{{ticket.requester.phone}}to map the requester's phone number tocall_number:
{
"call_number": "{{ticket.requester.phone}}",
"voice_agent_id": "YOUR_VOICE_AGENT_ID"
}call_number and voice_agent_id are the only mandatory fields. Additional call_properties, such as system prompt variables and output variables, are optional and depend on your VoiceAgent configuration. Learn what to include.
9. In the bottom right, set the trigger to Active and click Create.
Test and verify
Update a test ticket so it meets the trigger conditions.
Go to Apps and integrations > Webhooks > CloudTalk VoiceAgent > Activity to confirm the delivery.
In CloudTalk, verify the VoiceAgent call was initiated.
You're all set!
Zendesk will now automatically trigger a CloudTalk VoiceAgent call whenever a ticket meets your chosen conditions.
Troubleshooting
If the call was not initiated, go to Apps and integrations > Webhooks > CloudTalk VoiceAgent > Activity to see why the delivery failed.
The most common reasons are:
Authorization: incorrect CloudTalk API credentials in the webhook
Phone format: the number isn't in E.164 format (
+1234567890)Incorrect VoiceAgent ID: the wrong
voice_agent_idwas sentWebhook not triggered: the trigger isn't active, or its conditions weren't met
Need help or have a question? Just reach out through our Support portal — we're here for you.






