For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Atoms PlatformProduct OverviewDeveloper GuideAPI ReferenceMCPIntegrationsDeveloper ToolsChangelog
Atoms PlatformProduct OverviewDeveloper GuideAPI ReferenceMCPIntegrationsDeveloper ToolsChangelog
  • Get Started
    • Quick start
    • Platform overview
  • Single Prompt Agents
    • Overview
      • End Call
      • Transfer Call
      • Knowledge Base
      • Variables
      • API Calls
  • Conversational Flow Agents
    • Overview
  • Features
    • Concurrency
    • Knowledge Base
    • Webhooks
    • Widget
    • Integrations
    • Post-Call Metrics
    • Versioning
    • Variables
    • API Calls
  • Deployment
    • Phone Numbers
    • Audiences
    • Campaigns
  • Analytics & Logs
    • Overview
    • Testing
    • Conversation Logs
    • Locking
  • Integrate
    • Embed a voice agent
    • WebSocket SDK
  • Cookbooks
    • Using Cookbooks
  • Reference
    • Quick Reference
    • Glossary
  • Troubleshooting
    • Error reference
    • FAQ
    • Getting Help
LogoLogo
Voice AgentsModels
Voice AgentsModels
On this page
  • Setup
  • Configuration
  • Basic Setup & API Configuration
  • Headers, Parameters & Response Extraction
  • LLM Parameters
  • Response Variable Extraction
  • Example: Customer Lookup
  • Using Variables in API Calls
  • Tips
  • Related
Single Prompt AgentsConfiguration Panel

API Calls

||View as Markdown|
Was this page helpful?
Previous

Variables

Next

General Settings

Built with

API Calls let your agent fetch and send data during conversations. Look up customer information, check order status, book appointments, create tickets — all in real-time while the conversation is happening.

Location: Config Panel (right sidebar) → API Calls toggle


Setup

  1. Toggle API Calls ON
  2. Click ⚙️ to open settings
  3. Click + Add API Call

Configuration

The API Call modal has two main sections.

Basic Setup & API Configuration

API call basic setup

Name, description, and endpoint configuration
FieldRequiredDescription
NameYesIdentifier for this API call (e.g., lookup_customer)
DescriptionYesTells the AI when to trigger this call
LLM ParametersNoParameters the LLM can populate dynamically
URLYesThe API endpoint
MethodYesGET, POST, PUT, or DELETE
Timeout (ms)YesHow long to wait before failing (default: 5000)

Headers, Parameters & Response Extraction

API call advanced setup

Request details and response mapping
FieldPurpose
HeadersRequest headers (Authorization, Content-Type, etc.)
Query ParametersURL parameters for GET requests
Response Variable ExtractionMap response fields to variables you can use in prompts

LLM Parameters

These are values the AI determines during conversation and passes to your API. Click + Add Parameter to define what the AI should collect.

For example, if you need an order ID to look up status, add a parameter called order_id — the AI will extract it from the conversation and include it in the request.


Response Variable Extraction

This is where the magic happens. Map fields from the API response to variables you can use in your prompts.

Click + Add Variable and specify:

  • The path in the JSON response (e.g., customer.name)
  • The variable name (e.g., customer_name)

Then use {{api.customer_name}} in your prompt.


Example: Customer Lookup

Configuration
Response Mapping
In Prompt
FieldValue
Namelookup_customer
Description”Look up customer information when the call starts”
URLhttps://crm.example.com/api/customers
MethodGET
Query Parametersphone: {{caller_phone}}

Using Variables in API Calls

You can use variables anywhere in your API configuration:

In URL:

https://api.example.com/orders/{{collected.order_id}}

In Headers:

Authorization: Bearer {{api_key}}

In Query Parameters:

phone: {{caller_phone}}

Tips

Write clear descriptions

The description tells the AI when to make this call. Be specific:

VagueSpecific
”Get customer""Look up customer information using their phone number when the call starts"
"Check order""Fetch order status when the customer provides an order number”
Handle failures gracefully

APIs can fail. In your prompt, tell the agent what to do:

“If customer data isn’t available, greet generically and ask for their name. Don’t mention that a lookup failed.”

Use appropriate timeouts

Default is 5000ms (5 seconds). For slow APIs, increase this — but remember the caller is waiting.


Related

Variables

Use API response data in prompts

Webhooks

Send data after calls complete