
Overview
An integration consists of:- Webhook URL: The endpoint to send messages to
- HTTP Headers: Authentication and custom headers
- Timeout: Maximum wait time for responses
- Weight: For A/B testing (optional)
- Payload Format: The request structure sent to your backend

Creating an Integration
Configure Basic Settings
Enter the integration details:

- Name: Friendly name (e.g., “OpenAI GPT-4”)
- Webhook URL: Your AI backend endpoint
- Timeout: Response timeout in seconds (default: 30)
Configure Advanced Settings
Set additional options:

- Weight: For A/B testing (default: 1)
- Fallback: Mark as fallback integration
Request Payload Format
When a user sends a message, your integration receives a POST request with this structure:Messages Array
Themessages array contains conversation history based on your configured context window:
Expected Response
Your backend should return JSON with this structure:content field is required. Everything else is optional and stored for your reference.
Integration Types
OpenAI Compatible
For OpenAI API or compatible services:Anthropic (Claude)
For Anthropic’s API:Custom Backend
For your own API:Fallback Integrations
Mark an integration as “fallback” to use it when the primary integration fails:
- Bot tries primary integration (highest weight)
- If it times out or errors, tries fallback
- If fallback also fails, sends error message to user
Related Topics
Webhook Setup
Detailed webhook configuration guide
A/B Testing
Compare multiple AI backends
Custom Headers
Authentication and custom headers
Testing Your Integration
Use the built-in test feature:Troubleshooting
Timeout Errors
If requests timeout:- Increase timeout value
- Optimize your backend for faster responses
- Check network connectivity
Authentication Errors
If you get 401/403 errors:- Verify API keys are correct
- Check header format
- Ensure headers include required authentication
Invalid Response Format
If the bot can’t parse responses:- Ensure response is valid JSON
- Include required
contentfield - Check for encoding issues
API Access
Manage integrations programmatically using the API.Create an integration via API
Create an integration via API
- cURL
- JavaScript
- PHP
- Python
List bot integrations
List bot integrations
- cURL
- JavaScript
- PHP
- Python
Update an integration
Update an integration
- cURL
- JavaScript
- PHP
- Python
Complete API Reference
View the full API specification with all endpoints, parameters, and response schemas.
Next Steps
Webhook Setup Guide
Detailed setup instructions
A/B Testing
Configure multiple integrations


