Connect your agent to your systems with tools
A tool lets your agent call one of your APIs during a call, for example to look up an order or book an appointment. This page shows how to create a tool, test it, and add it to your agent.
I. Step 1: Tool Creation and API Configuration
This section focuses on defining the external API endpoint and its interface.
A. Initial Tool Setup
- Open Tools: in the left menu, click Integrations → Tools.
- Start creating: click Create at the top right. The Create Custom API Integration page opens on the API Configuration tab.
- Define Tool Metadata:
- Integration Name*: Provide a unique, non-editable identifier (e.g., get_order_status).
- Integration Description*: tells the AI when to use this tool (the hint under the box reads "Helps AI understand when to use this integration"). Be specific, for example "Get the status of an order when the caller gives an order ID".
B. Defining the Endpoint
- HTTP Method: Select the appropriate REST verb (e.g., GET, POST, PUT, DELETE).
- Base Domain*: Enter the root URL of your API (e.g., https://api.example.com).
- URL Path: Enter the specific endpoint path (e.g., /order-status).
- Headers: Click "Add Header" to define key-value pairs for authentication, content-type, or other necessary request headers.
C. Defining Tool Parameters
Parameters define the data inputs your tool expects from the bot's conversation.
- Click "Add Parameter" under the Parameters section.
- Key Name: The internal name for the variable.
- Parameter Type: Specify where the data will be sent in the HTTP request:
- Path: Data is substituted into the URL Path (e.g., /users/{id}).
- Query: Data is appended to the URL as key-value pairs (e.g., ?city=Bangalore).
- Base Type: Specify the expected data format: String, Number, Boolean, or Object.
II. Step 2: Testing and Activating the Tool
A tool must pass a successful test to prove it is functional before it can be marked as Active and integrated into a bot.
A. Testing the Integration
- Click the "Test API Integration" tab.
- Enter Test Data: Input test values for any Path Parameters, Query Parameters, or Body Parameters (for POST/PUT requests).
- Note: The UI will provide a warning: "Test your API configuration before saving the integration. A successful test is required to save."
- Execute Test: Click "Test API".
B. Tool Status Management (Activation/Inactivation)
The Tools listing shows the current status of all your integrations.
- Status Display: The Status column shows whether a tool version is Active (available for bots) or Inactive (unavailable).
- Activation/Inactivation: Click the three-dot menu (...) next to any tool to manage its status:
- If a tool is Inactive, the menu may contain an option to Mark as Active (typically after a successful test).
- If a tool is Active, the menu contains the option to Mark as Inactive.
III. Step 3: Integrating the Tool into Your Bot
Once a tool is marked Active, you can attach it to a bot and define how the conversational input maps to the tool's parameters.
A. Attaching the Tool
- Open the agent in edit mode: go to Agents, open your agent, click Edit agent, then go to Configure → Workflow.
- Open the agent's tools: click the agent node in the workflow. The Agent Configuration panel opens on the right. Scroll to List of Tools.
- Switch the tool on: find your active tool (for example get_order_status) and turn on its toggle. The tool now shows as a node linked to the agent. If a new tool is missing from the list, click the refresh icon next to Add Tool.

Figure 1 — In Workflow, click the agent and switch tools on under List of Tools. The settings icon opens the tool's parameters.
B. Configuring Parameter Mapping
After attachment, you must specify how the tool receives its input during a live conversation.
- Open the tool settings: click the settings icon (Tool Settings) next to the tool's toggle. A settings box opens with the tool's Parameters and Output variables.
- Define inputs: click a parameter to expand it. Check its Identifier, Type and Required box, then choose the Value Type:
- LLM Prompt: The AI will use the description provided to extract the required value (e.g., a city name or order id) directly from the user's utterance. This is the most common choice for conversational input.
- Constant Value: A fixed value that is always passed to the API (e.g., a static API key).
- Dynamic Variable: A value retrieved from a system or user-defined variable.
- Save: click Save in the settings box, then click Save and rollout for the agent.
IV: Step-by-Step Example: Integrating a Public API
This example uses a public, simple GET API that requires no authentication or parameters to demonstrate the full integration workflow.
1. Create the HTTP Tool
- Go to Integrations → Tools and click Create.
- In the API Configuration panel, enter the following details:
- Integration Name: get_a_random_joke
- Integration Description: Get a random joke. Use this when the caller asks for a joke.
- HTTP Method: GET
- Base Domain*: https://official-joke-api.appspot.com/
- URL Path: /random_joke
- Headers/Parameters: Do not add any Headers or Parameters as this API does not require them.
- Click the "Test API Integration" tab.
- Click "Test API". The system will execute the GET call. You should see a successful 200 OK status and a JSON response containing the joke's setup and punchline.
- Click Create Integration. The tool now appears in the Tools list.
2. Integrate the Tool into the Bot
- Go to Agents, open an agent and click Edit agent.
- In Configure → Instructions, add this line to the System prompt: "To tell a joke, call the get_a_random_joke tool."
- In Configure → Workflow, click the agent node and turn on get_a_random_joke under List of Tools.
- Click Save and rollout.
3. Test the Bot
- Click Test agent, choose Text and start a chat. (You can also choose Call to hear it.)
- Ask the bot: "Can you tell me a random joke?"