You can automatically trigger a CloudTalk VoiceAgent call using Kustomer Workflows. This guide shows you how to set up the trigger, pass customer data into CloudTalk, and confirm the call was initiated
Before you start
You will need:- A CloudTalk VoiceAgent already created (note the VoiceAgent ID)
- CloudTalk API credentials (API Key and Secret)
- A Kustomer account with access to Workflows
-
Customer records that include at least a phone number in E.164 format (for example,
+14155550100)
Set up the integration
Generate the Authorization Header
CloudTalk uses Basic Authentication for API requests. To generate your encoded value:- Go to https://www.debugbear.com/basic-auth-header-generator
- Enter your CloudTalk API Key and CloudTalk API Secret (found in your CloudTalk Company Settings).
-
Copy the generated header. It will look similar to:
Basic XXXXXXXXX
Create a Kustomer Workflow Trigger
- In Kustomer, open Settings > Workflows.
- Click + New Workflow.
-
Choose a trigger type, for example:
- Conversation created
- Tag added to customer
- Customer attribute updated
- Add Conditions to control when the call fires, for example only when the customer’s phone number is set.

Add the HTTP Request Action
After setting your trigger:- Click + Add Action > REST API: JSON
-
Configure:
- Method: POST
-
URL:
https://api.cloudtalk.io/v1/voice-agent/calls - Headers:
- Body:
- Save and Enable the workflow

- Sends a POST request to the CloudTalk VoiceAgent API
- Passes the customer’s phone number
- Triggers your VoiceAgent to place the call
Test and Verify
- Trigger the event on a test customer record that has a phone number.
- Open Settings > Workflows > [Workflow Name] > Run history.
- Confirm in CloudTalk that the VoiceAgent call was initiated.
Troubleshooting
- 401 Unauthorized: recheck the Authorization header value.
- 400 Bad Request: confirm the phone number is in E.164 format (for example, +14155550100).
- Workflow not firing: check the trigger settings and confirm your conditions pass for the test record.
Need help or have a question? Reach out through our Support portal. We’re here for you.