Skip to main content

Call HTTP Request tool

Configure one external HTTP request for an AI Agent or Copilot, including its connection, inputs, and response.

Use Call HTTP Request when an AI Agent or Copilot needs to call a specific endpoint. For example, a service desk assistant can look up a ticket using its reference number. For several related operations defined in an OpenAPI document, use the REST API tool. Call REST API tool


Step 1: Add the Tool

Open Tools in the AI Agent or Copilot. Select Add a tool → Call HTTP Request.


Select Connection

Choose an available connection in the current application. Check that it points to the system you intend to call and is set up for the API’s authentication requirements.


Connection Type

The tool shows the connection type automatically. It supports HTTP API and OAuth 2.0 API. To use another connection type, add a new tool with the appropriate connection.


Enter Name

Give the tool a name such as Look up ticket status. Select Add to return to the tool list or Add and configure to open the settings.


Step 2: Enter Configuration Page

Check Details, Tool and Connection, Request, Inputs, Completion, and Outputs for the new tool.


Step 3: Fill in Details

Review the name carried over from setup, then describe the tool’s purpose.


Name

Use the operation’s business name so someone can identify it in the agent or Copilot’s tool list.

Description

Explain what the endpoint does, when the assistant should call it, and which input it needs. For a lookup, say whether the user needs to supply a record number before the tool runs.


Step 4: View Tool and Connection Information

Review the tool type, bound connection, connection type, and status. The information panel displays the selected connection.


Step 5: Understand Differences Between Connection Types

Check which account or connection authentication the call uses. The OAuth choices can differ between an AI Agent and Copilot.


Case 1: Connection Type is HTTP API

This connection calls the endpoint without asking the end user to sign in through the tool. Configure any authentication the external API requires, such as a request header. Keep secrets out of the tool description and AI-filled inputs.


Case 2: Connection Type is OAuth 2.0 API

This connection uses OAuth authorization. Check the connection status and which account will call the API.


In Agent

An AI Agent typically uses the authorization already configured for the connection. Check that the connection is authorized before relying on it for a background run.

In Copilot

When On-Demand authorization is available, choose between the configured account and the requesting user’s account.

Copilot OAuth authorization menu with Use configured account and Ask user to sign in when used.

Use Configured Account

Copilot calls the API using the account set up on the connection. Verify what that shared identity can access.

Ask User to Sign In When Used

Copilot uses the end user’s account for the API call. A user who has not authorized the connection is prompted to sign in when the tool is used.


Step 6: Configure Request

Use the external API documentation to set the method, address, headers, and body.

Method

Select the method the operation accepts. A read-only lookup commonly uses GET. A POST can submit values or run an operation as specified by the API.

HTTP Address

Use a full URL or a relative path, depending on the connection. For example, a full address might be https://api.example.com/get-data. Check the host and path against the intended test endpoint.

Default Headers

Set the headers the endpoint requires. When the OAuth connection supplies the authorization header, use that authorization. For an HTTP API, add the headers the endpoint expects.

Content Type

Select the format the API expects for requests with a body, such as JSON.

Body

For a JSON request, keep the API’s property names and reference configured tool inputs where values should vary. For example, a search endpoint that accepts a JSON body could use these two inputs.

{
"keyword": "{{keyword}}",
"userId": "{{userId}}"
}

Step 7: Configure Inputs

Use Add input parameter for each value the request needs. Match input names to any placeholders in the request.

Column

Description

Input name

The name referenced by the request.

Input type

The expected type, such as Text, Number, or Boolean.

Fill using

Choose Dynamically fill with AI or Custom value.

Value

Set the value when you use Custom value.

Customize input values

When using Dynamically fill with AI, select Customize to describe the exact value, where it comes from, and when to ask for missing information. Compare the input options


Step 8: Configure Completion

Choose when the assistant continues and whether the API result is shown automatically.

After Running

Choose Waiting for response when the assistant or a later step needs the API result.

Response Behavior

Use No response to keep the raw result from being displayed automatically. The assistant can still use the configured outputs when it waits for the result.


Step 9: Configure Outputs

Map Data for the response body and Status code for the HTTP result. In the documented settings, Data is Text and Status code is Number. Test the response body format before passing it to another tool.


Step 10: Save and Test

  1. Save the tool and use an authorized test endpoint. Start with a known value and check the selected endpoint, request inputs, status, and response content.

  2. Try a missing input and a record that does not exist. Check the agent’s reply and see whether it reports the actual result.

  3. For Copilot’s user-login option, use a test account to check the first-use prompt. Confirm that a user with restricted access only receives data their account can read.


When to Use Which Mode

Use HTTP API when the connection can make the request without interactive user authorization. Use OAuth 2.0 API when the external service requires OAuth. In Copilot, choose the user-login option when the request needs to run with the user’s own permissions.


Summary

Verify the connection identity, the request that the tool sends, and how the assistant uses the response before publishing.

Did this answer your question?