Variables let you inject dynamic data into your agent’s prompts at call time. Personalize greetings, reference customer details, and pass metadata without changing the prompt itself.Documentation Index
Fetch the complete documentation index at: https://www.bolna.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Variable Types
System Variables
Predefined by Bolna. Automatically available in every call without any setup.
User Variables
Defined by you in the prompt with
{variable_name}. Values are passed via the API or from CSV rows during batch calling.System Variables
These are injected automatically into every conversation. No setup required.| Variable | Description |
|---|---|
agent_id | Unique ID of the agent |
execution_id | Unique ID of the conversation or call |
call_sid | Unique ID of the phone call (Twilio, Plivo, etc.) |
from_number | Phone number that initiated the call |
to_number | Phone number that received the call |
current_date | Current date in the caller’s timezone |
current_time | Current time in the caller’s timezone |
timezone | Timezone name per tz database |
Inbound calls:
from_number = caller, to_number = your agent
Outbound calls: from_number = your agent, to_number = recipientCurrent date and time are automatically appended to the system prompt. You can also reference them as variables directly in your prompt for more control over placement.
User Variables
Define your own variables by wrapping a name in{} in your prompt. Type { in the Agent Tab prompt editor to open the variable dropdown, which shows both existing user variables and system variables.

{, you can:
- Select an existing user or system variable
- Define a new variable by typing a name that does not exist yet (e.g.,
{appointment_date})
@ in the prompt editor to insert existing variables, prompt modules, or custom functions. Unlike {, @ cannot create new variables.
Any variable you define automatically appears as a test input field in the prompt variables for testing section.

Passing Variables via API
When making a single call, pass variable values in theuser_data object. Every key in user_data maps to a {variable_name} in your prompt.
Setting the Timezone
Passtimezone in user_data to ensure accurate date and time values:
Passing Variables via CSV (Batch Calling)
When using batch calling, upload a CSV file where each row is a call. Thecontact_number column is required. All other columns are treated as user variables and passed to the agent automatically.
{variable_name} in your prompt. For the first row, {customer_name} becomes “Bruce Wayne”, {product_name} becomes “Batsuit”, and so on.
Next Steps
Agent Tab
Configure prompts and test variables in the editor
Prompting Guide
Variable syntax, prompt modules, and best practices
Batch Calling
Upload CSVs to make calls at scale with variables
API Reference
Full API docs for the Make Call endpoint

