ambitious-aqua
ambitious-aqua16mo ago

Need Help for Automation via Make.com and dynamic variables

Hello, I would like to create an assistant via a http request and add a function to send an SMS with Twilio, I am having an issue to figure out how to map the dynamic data (customer_name, customer_phonenumber ...). Your help would be appreciated.
7 Replies
Ask Inkeep
Ask Inkeep16mo ago
Hi @Elyes80, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly. ----------------------------- While I generate an answer, here are some sources that might be helpful: * Create Phone Call * Create Assistant * List Calls * Get Call -----------------------------
Ask Inkeep
Ask Inkeep16mo ago
Answer To create an assistant via an HTTP request and incorporate dynamic variables such as customer name and phone number, you can use the Vapi platform's API. Here’s a general structure of how you could structure your JSON payload when making a POST request to create an assistant. This example includes custom data fields like customer name and phone number which you can use to tailor the assistant's behavior or use in subsequent actions like sending an SMS with Twilot (1) .
{
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "cs",
"smartFormat": true
},
"model": {
"messages": [
{
"content": "Hello, {{customer_name}}. Your phone number is {{customer_phonenumber}}.",
"role": "assistant"
}
],
"provider": "openai",
"model": "gpt-4o"
},
"voice": {
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"metadata": {
"customer_name": "John Doe",
"customer_phonenumber": "+1234567890"
}
}
{
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "cs",
"smartFormat": true
},
"model": {
"messages": [
{
"content": "Hello, {{customer_name}}. Your phone number is {{customer_phonenumber}}.",
"role": "assistant"
}
],
"provider": "openai",
"model": "gpt-4o"
},
"voice": {
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"metadata": {
"customer_name": "John Doe",
"customer_phonenumber": "+1234567890"
}
}
This JSON payload uses placeholders (e.g., {{customer_name}}) within the message content that can dynamically insert data provided in the metadata object. When crafting your HTTP request from Make.com, ensure that you replace these placeholders with the actual dynamic data fields you retrieve from your workflow. For sending an SMS with Twilio integrated into this process, you would typically handle this on your backend server after receiving a webhook from Vapi, or directly through Twilio’s API using the information extracted or passed through from the assistant session. Remember to replace placeholder fields and values with actual data and ensure your API keys and tokens are securely handled.
ambitious-aqua
ambitious-aquaOP16mo ago
I would like to call a list of customers using this assistant
deep-jade
deep-jade16mo ago
Sahil Suman
Scheduling Appointments via SMS using Vapi
I have seen that many people on Discord face difficulties setting up appointments using Vapi. Therefore, I'll provide a tutorial to help you schedule meetings effectively and ensure it's ready for production. One disadvantage of this method is that y...
deep-jade
deep-jade16mo ago
This uses pipedream but you can easily replicate it to make.com
ambitious-aqua
ambitious-aquaOP16mo ago
Thanks Sahil If I understood correctly each time I make a phone call request I need to push the content with the phone number for the system prompt ?
deep-jade
deep-jade16mo ago
Yup.

Did you find this page helpful?