Skip to main content

Triggering a VoiceAgent Call from Zendesk

Automate VoiceAgent calls from Zendesk Triggers and Automations

V
Written by Valeriia Volobrinskaia

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

  1. In Zendesk Admin Center, go to Apps and integrations > Webhooks.

  2. Click Create webhook.

  3. Select Trigger or automation and click Next.

  4. Configure the webhook:

    • Name: CloudTalk VoiceAgent

    • Endpoint URL: https://api.cloudtalk.io/v1/voice-agent/calls

    • Request method: POST

    • Request format: JSON

    • Authentication: Basic authentication

      • Username: your CloudTalk API Key

      • Password: your CloudTalk API Secret

  5. Click Create webhook > Finish Setup.

Zendesk handles Base64 encoding of the credentials automatically when Basic authentication is selected.

Create the Trigger

  1. In Admin Center, go to Objects and rules > Business rules > Triggers (or Automations).

  2. Click Create trigger.

  3. Enter a Trigger name (e.g. Ticket Solved).

  4. Choose a Trigger category: create a new category or pick any existing one that fits.

  5. Set your Conditions (e.g. Ticket > Status > Is > Solved).

  6. Under Actions, click Add action and select Notify active webhook.

  7. Select the webhook you created in Step 1. A JSON body text box will appear.

  8. Enter your JSON payload in the text box. Use the Zendesk placeholder {{ticket.requester.phone}} to map the requester's phone number to call_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

  1. Update a test ticket so it meets the trigger conditions.

  2. Go to Apps and integrations > Webhooks > CloudTalk VoiceAgent > Activity to confirm the delivery.

  3. 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_id was sent

  • Webhook 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.

Did this answer your question?