jordanstubb.
08/12/2024, 8:18 PMVapi
08/12/2024, 8:19 PMassistantOverrides Feature**: When starting the call, you can pass the dynamic data using the assistantOverrides feature. This allows you to set variables that the bot can use during the conversation.
3. **Set `variableValues`**: Within assistantOverrides, you'll use the variableValues object to define the values for the variables you want to use in the call. For example, if you want to set the customer's name to "John", you would do it like this:
json
{
"variableValues": {
"name": "John"
}
}
4. **Pass the Data When Initiating the Call**: When you initiate the call through the API or SDK, include the assistantOverrides with the variableValues in the request body.
5. **Access Variables in the Call**: In your bot's script, you can now use the dynamic variables you've set. For example, you could have the bot say "Hello, {{name}}!" at the beginning of the call, and it will say "Hello, John!" if you've set the name to John.
6. **Test the Call**: Make a test call to ensure that the dynamic data is being correctly passed and used by the bot.
Remember to follow the specific syntax and guidelines provided by the VAPI documentation to ensure everything works as expected. If you encounter any issues or have further questions, please don't hesitate to ask for more information.Vapi
08/12/2024, 8:19 PMjordanstubb.
08/12/2024, 11:05 PMVapi
08/12/2024, 11:05 PMjordanstubb.
08/13/2024, 1:03 AMSahil
08/15/2024, 1:05 AM