How Tools Work
When a user asks a question that requires external data, your agent:- Recognizes the need to call a tool
- Extracts relevant parameters from the conversation
- Calls your API endpoint
- Interprets the response
- Replies to the user
Types of Tools
API Tools
API Tools
Connect to any REST API. You define the endpoint, parameters, and how to interpret responses.Examples:
- Order lookup
- Appointment booking
- Inventory check
- CRM updates
Website Tools
Website Tools
Let your agent fetch and read web pages in real-time.Examples:
- Check current pricing
- Read latest blog posts
- Verify stock on your website
Image Generation Tools
Image Generation Tools
Generate images based on user requests using AI.Examples:
- Create custom graphics
- Generate product mockups
Handoff Tools
Handoff Tools
Transfer the conversation to another agent or human.Examples:
- Escalate to support
- Transfer to sales
- Route to specialist
MCP Connectors
MCP Connectors
Connect to Model Context Protocol servers for complex integrations.Examples:
- Database access
- File system operations
- Custom business logic
Creating an API Tool
1
Open Your Agent
Go to your agent and navigate to the Tools section.
2
Add New Tool
Click Add Tool and select API Tool.
3
Define the Tool
Fill in the tool configuration:
| Field | Description | Example |
|---|---|---|
| Name | A clear, descriptive name | check_order_status |
| Description | When should the agent use this tool? | ”Use this tool when a customer asks about their order status” |
| API Schema | OpenAPI-style schema defining the endpoint | See below |
4
Configure the Schema
Define your API endpoint using a JSON schema:
5
Test the Tool
Use the test panel to verify the tool works:
- Enter sample parameter values
- Click Test
- Review the API response
6
Save and Enable
Toggle the tool to Active and save your agent.
Tool Best Practices
Write Clear Descriptions
Write Clear Descriptions
The description tells the AI when to use the tool. Be specific:Good:
“Use this tool when the customer wants to know the status of their order. Requires an order number in format ORD-XXXXX.”Less effective:
“Order lookup”
Handle Errors Gracefully
Handle Errors Gracefully
Your API should return clear error messages. In your system prompt, add instructions for handling failures:
“If an order lookup fails, apologize and ask the customer to verify their order number. If it fails again, offer to connect them with support.”
Secure Your API
Secure Your API
- Use API keys or OAuth tokens
- Implement rate limiting
- Validate input parameters
- Never expose sensitive data in responses
Keep Responses Simple
Keep Responses Simple
Return only what the agent needs. Large, complex responses slow down the conversation and may confuse the AI.Good response:
Creating a Website Tool
Website tools let your agent read web pages in real-time:1
Add Website Tool
In the Tools section, click Add Tool → Website Tool.
2
Configure the Tool
| Field | Description |
|---|---|
| URL | The page to fetch |
| Prompt | Instructions for what to extract |
3
Example Configuration
Creating an Image Generation Tool
1
Add Image Tool
Click Add Tool → Image Generation.
2
Configure the Tool
| Field | Description |
|---|---|
| Name | Tool name (e.g., create_logo) |
| Description | When to use it |
| Prompt Template | Base prompt for image generation |
| Credit Cost | How many credits this uses |
Creating a Handoff Tool
Transfer conversations to other agents or humans:1
Add Handoff Tool
Click Add Tool → Handoff.
2
Configure the Tool
| Field | Description |
|---|---|
| Child Agent | The agent to transfer to |
| Description | When to initiate the handoff |
3
Example Use Cases
- General agent → Billing specialist
- Sales agent → Technical support
- Bot → Human operator
Connecting MCP Servers
For advanced integrations, connect Model Context Protocol servers:1
Add Connector
Go to Settings → Integrations → Add Connector.
2
Enter Server URL
Provide the MCP server URL:
3
Authenticate (if required)
Some MCP servers require authentication. Complete any OAuth flow or enter credentials.
4
Add to Agent
In your agent’s Tools section:
- Click Add Tool → MCP Connector
- Select the connector
- Choose which tools to enable (whitelist)
Tool Credits
Some tools cost credits to use:| Field | Purpose |
|---|---|
| Credit Cost | Credits deducted when tool is used |