https://retellai.com/?utm_source=discord&utm_medium=seo logo
is {{user_number}} for both the from number and to...
# ❓・ai-evy-support
a
@AI Evy is {{user_number}} for both the from number and to number?
a
Thanks for tagging me @Alex. I'll look through relevant sources and get back to you shortly.
### Answer No,
{{user_number}}
is not the same for both from and to numbers. [(1) ]() The
{{user_number}}
dynamic variable represents the user's phone number, which changes based on call direction: - For **inbound calls**:
{{user_number}}
is the from_number - For **outbound calls**:
{{user_number}}
is the to_number There's also a separate
{{agent_number}}
variable that represents: - For **inbound calls**: the to_number - For **outbound calls**: the from_number So
{{user_number}}
always refers to the end user's phone number, while
{{agent_number}}
always refers to the agent's phone number, regardless of call direction.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy what is the format of the CSV for the batch call
a
Thanks for the follow-up, @Alex. I'll get back to you soon.
### Answer For batch calls, the CSV format requires a header row that includes a "phone number" column. [(1) ]() You can download a template by clicking "Download the template" in the Retell AI workspace when creating a batch call. Optional columns you can include: - `override agent id`: Override the agent used for this particular call - `override agent version`: Override the agent version for this particular call - `metadata`: A JSON string to store arbitrary data with the call (e.g.,
{"customer_id":"cust_123"}
) - `custom_sip_headers`: A JSON string of custom SIP headers, keys must start with
X-
(e.g.,
{"X-Custom-Header":"value"}
) - `ignore e164 validation`: Set to
true
to bypass e.164 format validation (only applies when using custom telephony, not Retell Telephony) For dynamic variables: Add additional columns in the CSV with custom data for each recipient. For example, a column header
first_name
can be referenced as
{{first_name}}
in your prompts. Any columns not listed above are treated as dynamic variables that get injected into your Response Engine prompt and tool descriptions.
​ To learn more, see the sources I considered: [[1] Create Batch calls](https://docs.retellai.com/deploy/make-batch-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
can you give me a list of basic variables we would use for outbound for just name an dphone number
@AI Evy can you give me a list of basic variables we would use for outbound for just name an dphone number
a
Thanks for the follow-up, @Alex. I'll get back to you soon.
### Answer For a basic outbound call CSV with just name and phone number, you would use: [(1) ]() Required column: -
phone number
- The phone number to call Custom dynamic variable columns: -
customer_name
or
name
- The recipient's name Example CSV format:
Copy code
phone number,customer_name
+12137774445,John Doe
+14157774444,Jane Smith
You can then reference these variables in your agent prompts using the
{{variable_name}}
syntax, like
{{customer_name}}
When making outbound calls via API, you would pass these in the
retell_llm_dynamic_variables
field: [(2) ]()
Copy code
{
  "customer_name": "John Doe"
}
All values in
retell_llm_dynamic_variables
must be strings
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Outbound Calls (Make Calls)](https://docs.retellai.com/deploy/outbound-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy what do i put in her prompt to get that name from the CSV
a
Thanks for the follow-up, @Alex. I'll get back to you soon.
### Answer To use the name from your CSV in the agent's prompt, reference it using the
{{variable_name}}
syntax. [(1) ]() For example, if your CSV column is named
customer_name
, you would add this to your prompt:
Copy code
Hello {{customer_name}}, thanks for calling!
Or if you named the column `name`:
Copy code
Hi {{name}}, how can I help you today?
The variable name in your prompt must match the column header in your CSV exactly. When the agent makes the call,
{{customer_name}}
will automatically be replaced with the actual name from that row in the CSV. You can use dynamic variables in: - **Prompts**: Agent instructions and personality - **Begin message**: Opening greeting - **Tool configurations**: Custom function URLs, tool descriptions, property descriptions
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.