Outbound call using a csv file that has name and n...
# support
j
Assistant does not great them by name. Example Prompt: Hi my name is Alex is this {{name}} Can I not use variables this way when using Outbound settings to make a call?
v
Yes, you can use variables like
{{name}}
in your prompt when making outbound calls with a CSV file, as long as your CSV column headers match the variable names exactly.
For example, your CSV should look like:
Copy code
name,phone
John,+11234567890
And your prompt should use
{{name}}
(not
{{ Name }}
or any other variation). Double-check for typos or extra spaces in your CSV headers and prompt. If the issue persists, try re-uploading your CSV and ensure the assistant is mapped to the correct variables as described in the [documentation](https://docs.vapi.ai/calls/outbound-calling#uploading-your-csv-file-to-the-dashboard). Source: - [Outbound Calling Documentation](https://docs.vapi.ai/calls/outbound-calling#uploading-your-csv-file-to-the-dashboard)
j
this is what im currently doing
here is an example call id 77b92853-1481-4efb-8001-e9a3b95392bf
this is the agent a17080f7-06e7-4517-880f-0516d4db37d3
k
To use {{name}} in outbound prompts, you must pass the variable via the assistantOverrides.variableValues field in the API request otherwise, it won’t be replaced during the call..
j
So it won’t work using the outbound settings in the dashboard even though the docs say it’s suppose to work
v
It will work best when you create a call through the API to the /call endpoint