{{name}}
).
To set values, make a phone call request through the API and set assistantOverrides
. You cannot set variable values directly in the dashboard.
For example, set the assistant’s first message to “Hello, {{name}}
!” and assign name
to Akash
by passing assistantOverrides
with variableValues
:
Prepare Your Request
assistantId
: Replace "your-assistant-id"
with your assistant’s actual ID.assistantOverride
: Customize your assistant’s behavior.
variableValues
: Include dynamic variables in the format { "variableName": "variableValue" }
. Example: { "name": "John" }
.customer
: Represent the call recipient.
number
: Replace "+1xxxxxxxxxx"
with the recipient’s phone number (E.164 format).phoneNumberId
: Replace "your-phone-id"
with your registered phone number’s ID. Find it on the Phone number page.Send the Request
/call/phone
endpoint using your preferred method (e.g., HTTP POST request).{{variableName}}
is included in all prompts where needed.variableValues
:
Variable | Description | Example |
---|---|---|
{{now}} | Current date and time (UTC) | Jan 1, 2024 12:00 PM |
{{date}} | Current date (UTC) | Jan 1, 2024 |
{{time}} | Current time (UTC) | 12:00 PM |
{{month}} | Current month (UTC) | January |
{{day}} | Current day of month (UTC) | 1 |
{{year}} | Current year (UTC) | 2024 |
{{customer.number}} | Customer’s phone number | +1xxxxxxxxxx |
{{customer.X}} | Any other customer property |
date
filter:
Monday, January 01, 2024, 03:45 PM
Examples:
17:30
Tuesday
Format String | Output | Description |
---|---|---|
%Y-%m-%d | 2024-01-01 | Year-Month-Day |
%I:%M %p | 03:45 PM | Hour:Minute AM/PM |
%H:%M | 15:45 | 24-hour time |
%A | Monday | Day of week |
%b %d, %Y | Jan 01, 2024 | Abbrev. Month Day |
name
) in the call configuration or via the API/SDK.
{{variableName}}
) to reference dynamic variables in your prompts and messages.