---
title: Connect your agent to your systems with tools
slug: intelligent-voice-agents/connect-your-agent-to-your-systems-with-tools
description: Create a tool for your API, test it, and add it to your voice agent's workflow so the agent can look up or update data during calls.
createdAt: 2025-11-20T11:34:04.729Z
---

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

1. **Open Tools:** in the left menu, click **Integrations** → **Tools**.
2. **Start creating:** click **Create** at the top right. The **Create Custom API Integration** page opens on the **API Configuration** tab.
3. **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

1. **HTTP Method:** Select the appropriate REST verb (e.g., **GET**, POST, PUT, DELETE).
2. **Base Domain\*:** Enter the root URL of your API (e.g., https\://api.example.com).
3. **URL Path:** Enter the specific endpoint path (e.g., /order-status).
4. **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.

1. Click **"Add Parameter"** under the **Parameters** section.
2. **Key Name:** The internal name for the variable.
3. **Parameter Type:** Specify where the data will be sent in the HTTP request:
   - **Path:** Data is substituted into the URL Path (e.g., /users/&#x7B;id}).
   - **Query:** Data is appended to the URL as key-value pairs (e.g., ?city=Bangalore).
4. **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

1. Click the **"Test API Integration"** tab.
2. **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."
3. **Execute Test:** Click **"Test API"**.

B. Tool Status Management (Activation/Inactivation)

The **Tools** listing shows the current status of all your integrations.

1. **Status Display:** The Status column shows whether a tool version is **Active** (available for bots) or **Inactive** (unavailable).
2. **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

1. **Open the agent in edit mode:** go to **Agents**, open your agent, click **Edit agent**, then go to **Configure** → **Workflow**.
2. **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**.
3. **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**.

![](https://api.archbee.com/api/optimize/SK2urIgCC2ml99YyqWOSl/I1HtzeSeZBxDGUzdks95i_upload.jpeg)

*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.

1. **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**.
2. **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.
3. **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

1. Go to **Integrations** → **Tools** and click **Create**.
2. 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
3. **Headers/Parameters:** **Do not add any Headers or Parameters** as this API does not require them.
4. Click the **"Test API Integration"** tab.
5. 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.
6. Click **Create Integration**. The tool now appears in the Tools list.

2\. Integrate the Tool into the Bot

1. Go to **Agents**, open an agent and click **Edit agent**.
2. In **Configure** → **Instructions**, add this line to the **System prompt**: "To tell a joke, call the get\_a\_random\_joke tool."
3. In **Configure** → **Workflow**, click the agent node and turn on **get\_a\_random\_joke** under **List of Tools**.
4. Click **Save and rollout**.

3\. Test the Bot

1. Click **Test agent**, choose **Text** and start a chat. (You can also choose **Call** to hear it.)
2. Ask the bot: **"Can you tell me a random joke?"**
