Place a conversation workflow call request to initiate interactive voice conversations.
All API requests require an API key to be included in the headers:
Authorization: Bearer [access-key]
https://convobot.intron.health/voicebot/v1/call
Field | Type | Description | Required | Options | Default |
---|---|---|---|---|---|
workflow_id |
String | Unique identifier for the conversation workflow to be executed | yes | ||
workflow_params |
Array | Array of objects containing phone numbers and workflow variables. Phone number is required for each entry. | yes | ||
tts_voice_accent |
String | Accent for the voice used on the call | no | pidgin, english | pidgin |
tts_voice_gender |
String | Gender of the voice used on the call | no | male | female | female |
curl -X POST "https://convobot.intron.health/voicebot/v1/call" \
-H "Authorization: Bearer your_access_key_here" \
-H "Content-Type: application/json" \
-d '{
"workflow_id": "550e8400-e29b-41d4-a716-446655440000",
"workflow_params": [
{
"name": "John Doe",
"phone_number": "+1234567890"
}
],
"tts_voice_accent": "pidgin",
"tts_voice_gender": "female"
}'
import requests
url = "https://convobot.intron.health/voicebot/v1/call"
payload = {
"workflow_id": "550e8400-e29b-41d4-a716-446655440000",
"workflow_params": [
{
"name": "John Doe",
"phone_number": "+1234567890"
}
],
"tts_voice_accent": "pidgin",
"tts_voice_gender": "female"
}
headers = {
"Authorization": "Bearer your_access_key_here"
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.json)
const requestOptions = {
method: "POST",
headers: {
'Authorization': 'Bearer your_access_key_here'
},
body: JSON.stringify(
{
"workflow_id": "550e8400-e29b-41d4-a716-446655440000",
"workflow_params": [
{
"name": "John Doe",
"phone_number": "+1234567890"
}
],
"tts_voice_accent": "pidgin",
"tts_voice_gender": "female"
}
)
};
fetch("https://convobot.intron.health/voicebot/v1/call", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
{
"status": "success",
"message": "batch request created successfully",
"data": {
"batch_id": "660e8400-e29b-41d4-a716-446655440001"
}
}
syntax to insert dynamic values in your message template