What are HTTP Integrations?
HTTP integrations allow you to connect your agents with any REST API you use or control. It’s the most flexible way to integrate external systems, from CRMs to payment platforms, databases, or internal services. Unlike MCP integrations that sync tools automatically, with HTTP you manually define each tool: what endpoint to call, what parameters to send, and how to authenticate.Create an HTTP Integration
1
Access Integrations
From the dashboard, go to the Integrations section and click New Integration.Select the HTTP type.
2
Configure the Connection
Define the basic details of your integration:Name: Identifies your integration (e.g., “Zendesk”, “YourCompanyAPI”)Base URL: The domain and base path of the API (e.g.,
https://api.yourcompany.com/v1)Description: (Optional) Explain what this integration is for
Credentials: Depending on the server, it may require:- Bearer Token
- Custom Headers
- No authentication
3
Save the Integration
Once the connection is confirmed, save the integration.Now you can create tools that use this integration.
Create Tools
Once the integration is created, you need to define the tools (specific actions) your agents can use.1
Access the Integration
In the integrations list, select the one you just created.Click New Tool.
2
Define the Tool
Configure the action details:Name: Unique identifier in snake_case format (e.g.,
search_customer, create_ticket)Description: Explain when the agent should use this tool. Be specific.HTTP Method: GET, POST, PUT, PATCH, DELETEEndpoint: Path relative to the base URL (e.g., /customers, /tickets/create)Custom Headers: (Optional) Add specific headers for this tool, if needed.3
Define Parameters
Specify what information the tool needs. Parameters are optional (depending on the API) and we can find two types:Query Parameters: Sent in the URL (e.g.,
?status=open&limit=5)Body Parameters: Sent in the request body (JSON)For each parameter, define the following fields:- Name: Unique identifier (e.g.,
customer_id,status). Must be the name of the value the API expects. - Description: What information it represents and how to obtain it
- Data Type: string, number, boolean, array, object
- Required: Whether it’s required or not
- Retrieval Mode: How the agent gets this value:
- Prompt: The agent asks the user or infers it from context
- Fixed value: A constant value you define when creating the tool
Complete Example: CRM Integration
Let’s create an integration with a fictional CRM to search for customers.1. Create the Integration
2. Create Tool: Search Customer
3. Usage Example in Call
Best Practices
Clear Nomenclature
Clear Nomenclature
Tool names:
- Use verbs that describe the action:
search_,create_,update_,delete_ - snake_case format:
check_inventory, notcheckInventory - Be specific:
create_support_ticket, not justcreate
- Consistent with the API: use the same names as the documentation
- Descriptive:
customer_idbetter thanid
Precise Descriptions
Precise Descriptions
Descriptions help the agent decide when to use each tool.Good descriptions include:
- When to use the tool (trigger)
- What information it needs from the user
- What it exactly does
Error Handling
Error Handling
Define what the agent should do if the tool fails:In the agent prompt, add instructions like:
Credential Security
Credential Security
- Rotate credentials regularly: Update API keys every 3-6 months
- Use read-only credentials when possible
- Separate environments: Different credentials for staging and production
- Never expose credentials in prompts, logs, or agent responses
Latency Optimization
Latency Optimization
Slow calls pause the conversation.Reduce latency:
- Use optimized endpoints (only request necessary data)
- Limit response size (use parameters like
limit,fields) - Consider caching data that doesn’t change frequently
- Monitor response times (target: < 2 seconds)
Troubleshooting
Error 401: Unauthorized
Error 401: Unauthorized
Error 404: Not Found
Error 404: Not Found
Cause: The endpoint doesn’t exist.Solution:
- Verify the base URL (should end with the API version, e.g.,
/v1) - Confirm the endpoint is spelled correctly
- Check the documentation for API changes
Error 400: Bad Request
Error 400: Bad Request
Cause: Missing or incorrectly formatted parameters.Solution:
- Verify required parameters are configured
- Confirm data types are correct (string, number, etc.)
- Check that parameters are in the correct location (path, query, body)
Error 429: Too Many Requests
Error 429: Too Many Requests
Cause: Rate limit exceeded.Solution:
- Check the API’s rate limits in its documentation
- Reduce call frequency
- Consider upgrading your plan with the API provider
- Implement caching for data that doesn’t change frequently
The tool is never used
The tool is never used
Cause: The agent doesn’t know when to use the tool.Solution:
- Improve the tool description (be more specific)
- In Single Prompt agents: add explicit instructions about when to use the tool
- In Conversational Paths: make sure the correct node is configured to use the tool
The agent uses the tool incorrectly
The agent uses the tool incorrectly
Cause: Poorly configured parameters or ambiguous description.Solution:
- Check that parameters have clear descriptions
- Make sure data types are correct
- Improve instructions in the agent prompt
- Use user confirmation for critical tools