Dynamic Variables during an Inbound Call?
Hi all,
We're working on a project and use vapi as a solution for this project. I need assistance with a concept: dynamic variables during inbound calls.
Goal: A user calls in, before the call is answered by the vapi assistant, the server finds the user's name in a database using the incoming phone number. This name is passed back to vapi so that vapi can greet the caller in the first message as "Hello {{callerName}}! How can i help you today?
I have read the dynamic variables documentation as well as the inbound call documentation. The current way i'm doing this is during the initiation of call , vapi send a post request to a server callback url i set up , the server then which responds with the following (attached). But this does not work. The assistant word for word says the first message as: Hello callerName how can i help you today? When the caller name needs to be dynamic. Any idea on how this can be done? Any help would be greatly appreciated. The assistant including the system prompt was all set up through the dashboard.
We're working on a project and use vapi as a solution for this project. I need assistance with a concept: dynamic variables during inbound calls.
Goal: A user calls in, before the call is answered by the vapi assistant, the server finds the user's name in a database using the incoming phone number. This name is passed back to vapi so that vapi can greet the caller in the first message as "Hello {{callerName}}! How can i help you today?
I have read the dynamic variables documentation as well as the inbound call documentation. The current way i'm doing this is during the initiation of call , vapi send a post request to a server callback url i set up , the server then which responds with the following (attached). But this does not work. The assistant word for word says the first message as: Hello callerName how can i help you today? When the caller name needs to be dynamic. Any idea on how this can be done? Any help would be greatly appreciated. The assistant including the system prompt was all set up through the dashboard.
