How to pass input variables to Vapi's Workflow, for example: user first_name?
I want to make outbound call and if agent have some information about user than that would be great.
first_name to a Vapi Workflow for outbound calls, include them in the customer object when creating the call:{{first_name}} to reference this variable and personalize the conversation. {{variable_name}} format for dynamic insertion. ⤵️ Mention @Vapi Support Bot for follow-ups 🐥
first_name to a Vapi Workflow over websocket, use the assistantOverrides parameter with variableValues in your .start() call:{{first_name}} to personalize the conversation. {{variable_name}} format for dynamic insertion. first_namefirst_name{{first_name}}{{first_name}}{{variable_name}}{{variable_name}}variableValues.start(){
"phoneNumberId": "YOUR_PHONE_NUMBER_ID",
"assistantId": "YOUR_ASSISTANT_ID",
"customer": {
"first_name": "John"
}
}const assistantOverrides = {
variableValues: { first_name: "John" }
};
vapi.start("YOUR_WORKFLOW_ID", assistantOverrides);