Location
Configuration Panel (right sidebar) → API CallsWhat API Calls Enable
| Use Case | Example |
|---|---|
| Customer lookup | Fetch account details by phone number |
| Order status | Get real-time order information |
| Appointment booking | Check availability and create bookings |
| CRM updates | Log call information to Salesforce |
| Data verification | Verify customer information |
| Ticket creation | Create support tickets |
How It Works
- Define the API endpoint — URL, method, headers, body
- Set trigger conditions — When should the call happen?
- Map responses to variables — Store returned data
- Use variables in conversation — Reference the data
Configuration
→ NEEDS PLATFORM INFO: Detailed API configuration interface Basic configuration includes:| Field | Description |
|---|---|
| Endpoint URL | The API URL to call |
| Method | GET, POST, PUT, DELETE |
| Headers | Authentication tokens, content-type |
| Body | Request payload (for POST/PUT) |
| Response Mapping | Map response fields to variables |
Example: Customer Lookup
API Configuration
Response
Response Mapping
| API Field | Variable |
|---|---|
| name | {{api.customer_name}} |
| status | {{api.account_status}} |
| tier | {{api.tier}} |
Using in Conversation
In Conversational Flow
Conversational Flow agents have dedicated API Call Nodes:- Pre-Call API — Runs before conversation starts
- API Call Node — Runs mid-conversation
- Post-Call API — Runs after conversation ends
Error Handling
What happens when API calls fail?| Scenario | Recommendation |
|---|---|
| Timeout | Have fallback responses ready |
| 404 Not Found | ”I couldn’t find that information” |
| 500 Server Error | ”I’m having trouble accessing that right now” |
| Invalid Data | Validate before using |
Security Considerations
- Never expose API keys in prompts — Use secure configuration
- Validate inputs — Don’t pass unvalidated user input to APIs
- Use HTTPS — Encrypt all API traffic
- Limit permissions — API keys should have minimal required access
Best Practices
Test API Calls Thoroughly
Use the test modes to verify:- Calls execute at the right time
- Responses map correctly to variables
- Errors are handled gracefully
Keep Latency in Mind
API calls add latency to conversations. Optimize for speed:- Use fast endpoints
- Cache when possible
- Only call when necessary
Log for Debugging
Check conversation logs to see:- Request sent
- Response received
- Variables set

