Using Variables in Click to Call to Personalize Conversations
With our new Click to Call Variables feature, you can now pass extra customer information directly from your Click to Call form into the AI conversation. This allows your AI agent to greet customers by name, mention their product of interest, or adapt responses based on other attributes like country, age, or any custom field you choose.
This is a powerful way to create more personalized, relevant, and effective conversations.
How It Works
When a customer submits your Click to Call form, you can send additional data as part of the request. This information is passed in the "variables" object, and the AI agent can use it dynamically during the call.
Example Request Body
{
"phone": "+34xxxxxxxxx",
"variables": {
"name": "John",
"last_name": "Doe",
"product": "VoiceB AI",
"country": "Spain",
"age": "32"
}
}In your agent’s script, you can then call any of these variables using {{variable_name}} syntax.
Example in Script:
Hello {{name}}, I see you are interested in {{product}}.
Let’s go over the details together.Setup Instructions
Login to your VoiceB account.
Select your campaign from the left-hand menu.
Select the agent you want to configure.
Go to Configuration > Click to Call.
Click the Show Credentials & Instructions button.
Copy your API Token, Secret, and Endpoint.
When sending your POST request to the Click to Call API, include the
variablesobject with any customer data you want available during the call.


Example Use Cases
Personalized Greetings: Greet the customer by name.
Product Relevance: Mention the specific product they selected on your site.
Regional Adaptation: Adapt the conversation depending on the customer’s country or language.
Age-Targeted Messaging: Offer different plan recommendations based on the age group.
Custom Data Fields: Any other field you include in
variablescan be used in real time during the call.
Technical Notes
Always send requests from your backend to keep your credentials secure.
You can pass as many variables as you want inside the
"variables"object.Use
{{variable_name}}in your script to insert these values dynamically.
✅ With this new feature, every Click to Call conversation can now feel like a tailored, one-to-one experience.
Last updated
Was this helpful?

