What is Function Calling?
Function calling lets your Voice AI agent execute real-time actions during live conversations. Instead of just responding with text, your agent can transfer calls, book appointments, fetch data from APIs, or trigger any custom workflow.
Function calling follows the OpenAI specification, so you can reuse existing function schemas with Bolna.
Available Function Tools
Bolna provides built-in tools for common use cases. Click + Add next to any tool in the Tools Tab to enable it.Calendar Availability
Check open meeting slots from Cal.com in real-time
Book Appointment
Create calendar bookings via Cal.com during a call
Transfer Call
Route the call to a human agent or another number
Custom Function
Connect any external API endpoint with a custom schema
How It Works
LLM Reads Function Definition
The LLM sees your function’s
name and description to understand what the function doesDecides When to Call
Based on conversation context, the LLM decides if this function should be triggered
Extracts Parameters
The LLM collects required parameter values from the conversation with the caller
Bolna Executes API Call
Bolna makes the HTTP request to your API endpoint with the extracted parameters
Context Variables
The following variables are automatically available in every conversation and can be passed to function parameters:| Variable | Description |
|---|---|
{agent_id} | The id of the agent |
{call_sid} | Unique id of the phone call (from Twilio, Plivo, etc.) |
{from_number} | Phone number that initiated the call |
{to_number} | Phone number that received the call |
| Custom variables | Any variable you define in the agent prompt |
Variables defined in your agent prompt are automatically substituted in function parameters. Learn more in Using Context Variables.
Next Steps
Custom Functions
Complete guide to building custom API integrations
Transfer Calls
Set up call routing to human agents
Calendar Booking
Integrate Cal.com for appointment scheduling
Tools Tab
Configure tools from the agent setup interface

