Skip to main content
Tool actions define what operation the AI agent can perform using the API.
Addtool

Steps:

  1. Click on Add New Tool
  2. Enter the following details:
Toolaction

Tool Name

Definition:
A unique identifier for the tool action. The agent uses this name internally to trigger the correct API call.
Requirements:
  • Must be unique
  • Use snake_case format
  • No spaces allowed
Example:

Description (Optional)

Definition:
Explains when and why the agent should use this action. This helps the AI understand the correct context for calling the API.
Example:

HTTP / Request Method

Definition:
Specifies the type of operation to perform on the API.
Supported methods:
  • GET → Retrieve data
  • POST → Create data
  • PUT → Update data
  • PATCH → Partially update data
  • DELETE → Remove data
Example:

Endpoint URL

Definition:
The API endpoint where the request will be sent. You can use input variables to dynamically insert values.
Static example:
Dynamic example using input variable:
Here, {{booking_id}} will be dynamically provided by the agent.

Headers

Definition:
Headers provide additional information required by the API, such as authentication and content type.
Common headers example: Example configuration:

Query Parameters

Definition:
Query parameters allow you to filter or modify the API response. These are appended to the endpoint URL.
Example configuration: Final request example:

Request Body

Definition:
The request body contains the data sent to the API when creating or updating resources.
You can use input variables to dynamically pass values.
Requestbody
Example:

Input Variables (Dynamic Placeholders)

Input variables are dynamic placeholders written inside double curly braces. Format:
These placeholders are replaced with real values when the agent executes the API request during a conversation. The agent determines these values using:
  • User input
  • Conversation context
  • Extracted variables configured in the agent workflow
  • Agent configuration
Examples:
Input variables can be used in:
  • Endpoint URL
  • Query Parameters
  • Request Body

Complete Example: Reschedule Booking (Cal .com)

Action Name
Method
Endpoint URL
Headers

How Input Variables Work

Conversation Example:

User: I want to reschedule my appointment for tomorrow at 10 AM.

What SigmaMind AI does:

  1. Extracts values from conversation
  2. Maps values to variables
  3. Replaces variables in the API body
  4. Calls the API automatically

Final API Request Sent:

  1. Click Submit Action
The action is now available for your agent.
You can add new actions to an existing integration in the App Marketplace in the same way, allowing your AI agent to perform additional operations using the connected app.

How to Test Tool

You can test a tool action to verify that the API works correctly before using it in your agent.
Testtool

Steps:

  1. Go to Tool Library from the Agent Builder
  2. Select the tool (for example, Cal.com)
  3. In the Tools section, locate the tool you want to test
  4. Click the Test button next to the action
This opens the Mock Test API screen.
  1. Enter test values for the detected input variables (such as {{start_date}}, {{end_date}}, {{event_type_id}})
  2. Click Run Test
  3. Review the response to confirm the API is working correctly
    Mocktest

Step 5: Use the Custom Tool in the Agent

After creating and testing your tool actions, you must add them to your agent. This allows the agent to call the tool during conversations and perform real-world operations.

Method 1: Go to your Tools Section

  1. Find your tool (like get_available_slots)
  2. Click Add to Agent
  3. Fill in the Instructions — describe when the AI should invoke this tool
  4. Bind placeholders (if required) — see the +Add Mapping section below
  5. Click Add to Agent to confirm

Method 2: Via the Agent Builder

  1. Open the Agent Builder
  2. Click Add Tool
  3. Click Add Integration Tool
  4. Select the app you created or configured
  5. Select the tool you want the agent to use
  6. Click Add to Agent
Tool

+Add Mapping: Binding Response Values as Dynamic Variables

The +Add Mapping feature lets you extract specific fields from a tool’s response and save them as named variables. These variables can then be referenced in subsequent prompts or tool inputs using the {{variable_name}} syntax.

Understanding the Sample Response

Click View sample response (from last run) to expand a live preview of the JSON returned by the tool. This helps you identify the exact field names to use when configuring mappings.
Toolss
For example, the get_customer_list tool returns a structure like this:
Use the Copy JSON button inside the sample response panel to copy the full response and inspect nested fields before setting up your mappings.
To map a nested field like company.value, you would enter contacts.0.properties.company.value as the field path in the left input.

How to Configure a Mapping

  1. In the tool configuration panel, scroll to Store response values as dynamic variable
  2. Confirm the Root path — this is auto-populated based on the tool name (e.g., hubspot_get_customer_info)
  3. In the left field, enter the field name from the API response (e.g., user_id)
  4. In the right field, the full variable path is auto-generated (e.g., hubspot_get_customer_info.user_id)
  5. Click +Add Mapping to add more fields as needed
  6. Use the 🗑 delete icon to remove any unwanted mappings

Example Mappings for get_customer_list

Based on the actual sample response, here are useful field mappings you can configure:

Using Variables in Subsequent Steps

Once mapped, reference these variables anywhere in your agent flow:
Reference these variables as {{variable_name}} in any subsequent prompt or tool input field.

Tips & Best Practices

Click View sample response (from last run) before adding mappings to confirm exact field names returned by the API. If no sample is available, run the tool once from the Test panel first.
Only map fields you’ll actually use in downstream steps. Unused variables add clutter without any benefit.
Ensure consistency between the mapped name and how you reference it in prompts. {{Email}} and {{email}} are treated as different variables.
The root path prefix (e.g., hubspot_get_customer_info.) is automatically prepended. You only need to type the leaf field name (e.g., user_id) in the left input field.

2. Using the API

If you prefer programmatic control, use the Integration Tools API to create a tool.

Field descriptions

Add New Tool
Example Agent Workflow
  1. User: I want to reschedule my appointment
  2. Agent collects the required information
  3. Agent calls Reschedule Booking action
  4. API processes the request
  5. Agent confirms the reschedule
Authentication failing: Verify credentials and authentication typeAPI request failing: Test API action and verify endpoint and headers

Best Practices

  • Always follow the API documentation of the external app
  • Use clear variable names
  • Test actions before enabling
  • Configure authentication properly
  • Use descriptive action names