Rela AIRela AI Docs
Tools

Tools

What tools are and how they give your agents capabilities.

What is a Tool

A tool is a capability you assign to your agent so it can perform actions during a conversation. Without tools, the agent can only chat. With tools, it can search data, generate reports, send messages, connect to external systems, and more.

Tool Types

TypeDescriptionExample
QuerySearches for information in your data collectionsSearch for a device by serial number, look up a customer's history
ActionExecutes functions within your systemGenerate a PDF report, assign a task, locate staff
HTTPConnects to external APIs and web servicesCall a REST API, query an external service

Create a Tool

  1. Go to Tools in the sidebar.
  2. Click Create Tool.
  3. Complete the configuration:
FieldDescription
NameUnique identifier (no spaces, e.g., search_device)
DescriptionExplains what the tool does. The agent uses this description to decide when to use it. Includes an Optimize with AI button
TypeQuery, Action, or HTTP
ParametersData the agent requests from the user to execute the tool
MessagesConfigurable response messages: success, error, and fallback
AsyncToggle to execute the tool asynchronously

Name and Description

The name is the technical identifier the agent uses internally. It must start with a letter and can only contain letters, numbers, hyphens, and underscores.

The description is crucial: the agent reads it to decide when to use the tool. Write a clear, specific description. You can use the Optimize with AI button to improve it automatically.

Parameters

Parameters define what information the agent needs to ask the user for before executing the tool. Each parameter has:

  • Name — Parameter identifier (e.g., serial_number)
  • Type — string, number, boolean
  • Description — What this data represents
  • Required — Whether the agent must obtain it

Response Messages

Each tool has three configurable messages the agent uses to communicate the result to the user:

MessageWhen it is used
SuccessWhen the tool executes successfully
ErrorWhen an error occurs during execution
FallbackWhen no results are obtained or the response is empty

Asynchronous Execution

The Async toggle allows the tool to run in the background without blocking the conversation. Useful for operations that may take longer, such as slow HTTP calls or report generation.

Assign Tools to an Agent

Tools are assigned during agent creation or editing (WhatsApp or email). An agent can have multiple tools assigned.

The agent automatically decides when to use each tool based on the conversation and the tool's description.

Automatic Parameter Suggestion

When creating a Data query tool, you can use the automatic suggestion feature. When you select a collection, the system automatically suggests:

  • A descriptive name for the tool
  • A contextual description
  • Parameters based on the collection's fields

This speeds up creation and ensures the parameters match the available data.

On this page