Add an HTTP tool
An HTTP tool lets an agent call a REST endpoint you describe — a company lookup, an internal API, a partner service. You define the request and how to read the response, and the agent calls it when the conversation needs it.
An HTTP tool belongs to an HTTP API integration. You create the integration once and add its tools on the integration page.
Add an HTTP tool when the endpoint is a one-off. If the external system offers an MCP server, register it as an integration instead and let it advertise its own tools. Learn more: MCP integration. If the service publishes an OpenAPI schema, you can generate its tools from the schema. Read more >>>
Create an HTTP API integration
Skip this procedure if an HTTP API integration for the service already exists. Read more >>>
-
Go to the Agents section in the navigation panel.
-
Open the prompt agent you want to extend.
-
Go to Build → Tools in the Sections panel.
-
Click Add tools. This opens the "Select tool source" dialog.
-
Click New integration. This opens the "Choose a Template" dialog.
-
Select Custom HTTP API. This opens the "Create Integration" dialog.
-
Fill out the integration fields.
Field
Field value
Name
The name of the integration, for example, "Company lookup." The Tools tab of the agent lists the tools of the integration under this name.
Description
What the service does.
Type
"HTTP API." The template sets this value.
Authentication
How the requests authenticate against the service. Set to "None" out of the box.
Base URL
The root address of the service, for example,
https://api.yourcompany.com. Enter the real service address. -
Click Create & Test.
If the service needs authentication, click Next instead, enter the credentials, and click Create & Test.
-
To check the connection first, click Test Connection. Then click Done.
As a result, Creatio AI Studio creates the integration, adds it to the tool sources of the agent, and opens the Configuration tab of the integration.
Add the tool
-
Go to the Integrations section in the navigation panel.
-
Open the HTTP API integration that should hold the tool.
-
Go to the Tools tab and click Create tool. This opens the "Create Tool" dialog.
-
Fill out the tool fields.
Field
Field value
Name
The name the agent calls. Use something the model can map to an intent, for example, "lookup_company_by_domain."
Description
What the tool does and when to call it. The agent reads this to decide whether the tool applies, so treat it as configuration rather than documentation. Required. Must be 2,000 characters or fewer.
HTTP Path
The path appended to the base URL of the integration, for example,
/v1/companies.HTTP Method
The verb the request uses. Set to "GET" out of the box.
Risk Level
What the tool can do: "Read" or "Write." Set to "Read" out of the box. Set it to match what the endpoint does. The Tools tab of the agent lists the tool under Read tools or Write tools by this value.
Body Template
The request body to send, with placeholders the agent fills from the conversation. Applies to methods that carry a body.
Response Path
Which part of a successful response to hand back to the agent. Use it to return the useful field instead of the whole payload. When the request fails, the agent receives the error text from the service instead.
Input Schema
The parameters the agent must supply, as a JSON schema. This is what tells the model which arguments the tool takes. When the arguments of a call do not match the schema, Creatio AI Studio refuses the call before it sends the request.
-
Map the input fields onto the request in the Request Parameters section, if the endpoint needs them there. Click Add parameter binding for each one, and bind it to a path placeholder, a query string value, or a request header.
-
Click Create.
As a result, Creatio AI Studio adds the tool to the Tools tab of the integration.
The integration you create is available only to you and to users with the Manage security permission until you grant access to others on the Access tab of the integration. Runs that start without a signed-in user, such as channel or triggered runs, cannot use a restricted integration through a grant. If the agent serves a channel, turn off Restrict access on the Access tab of the integration so that everyone in the organization can use it. Learn more: Integrations.
Enable the tool
A tool does nothing until it is enabled for the agent.
- Open the prompt agent and go to Build → Tools in the Sections panel.
- Find the source of the integration. If the agent does not list it, click Add tools and select the integration in the "Select tool source" dialog.
- Select the checkbox of the tool under Read tools or Write tools.
- Reference the tool in the system prompt if the agent needs guidance on when to call it. A clear Description is often enough on its own.
- Click Publish to publish the agent.
As a result, the agent can call the endpoint. Test it in the Preview panel — the trace shows the tool call and the arguments the model supplied. If the agent never calls the tool, the usual cause is the Description or the Input Schema field rather than the endpoint: the model chooses a tool from its description, and can only call it when the schema tells it which arguments to supply. If the service returns an error, the tool span shows the error text from the service.
Set the Risk Level field to match what the endpoint actually does. A tool that writes records but is registered as "Read" appears under Read tools, so the people who review the agent can miss that it changes data. To have a person confirm each call of the tool, add it to a tool confirmation policy. Learn more: Set up tool confirmation.
Import tools from an OpenAPI schema
If the service publishes an OpenAPI schema, you can generate its HTTP tools from the schema instead of describing each endpoint by hand. Tools are imported into an existing HTTP API integration, for example, the one you created earlier. Read more >>>
-
Go to the Integrations section in the navigation panel.
-
Open the HTTP API integration that should hold the tools.
-
Go to the Tools tab and click Import OpenAPI. This opens the "Import OpenAPI Schema" dialog.
-
Fill out the import fields.
Field
Field value
Schema Source
Where the schema comes from: "URL" or "Raw Schema." Set to "URL" out of the box.
Schema URL
The address of the schema, for example,
https://example.com/openapi.json. Shown when Schema Source is "URL."Schema Content
The schema document pasted as text. Shown when Schema Source is "Raw Schema."
Base URL Override
The service address the tools call instead of the address the schema declares, for example,
https://api.example.com. Required when the schema declares no server address. -
Click Import.
As a result, Creatio AI Studio generates the HTTP tools of the integration from the schema and reports how many tools it created, updated, and skipped. The imported tools carry the "OpenAPI" badge on the Tools tab of the integration. When an agent calls one of them, it sends the query and path parameters that the schema declares. When the service returns an error without a response body, the agent receives the HTTP status as an error it can report.
Enable the imported tools for the agent the same way as a tool you add by hand. Read more >>>