- Overview
- Platform setup and administration
- Platform setup and administration
- Platform architecture
- Data Bridge onboarding overview
- Connecting a Peak-managed data lake
- Connecting a customer-managed data lake
- Creating an AWS IAM role for Data Bridge
- Connecting a Snowflake data warehouse
- Connecting a Redshift data warehouse (public connectivity)
- Connecting a Redshift data warehouse (private connectivity)
- Reauthorizing a Snowflake OAuth connection
- Using Snowflake with Peak
- SQL Explorer overview
- Roles and permissions
- User management
- Autopilot for Retail & Supply Chain
- Inventory management solution
- Commercial pricing solution
- Merchandising solution
Managing Autopilot actions
Connect APIs and Model Context Protocol servers to Autopilot as actions, with the required OpenAPI specification and MCP server configuration formats.
Actions connect Autopilot for Retail & Supply Chain to other systems. With an action, Autopilot can call an API, or the tools of a Model Context Protocol (MCP) server, during a conversation. Actions belong to the tenant.
Prerequisites
Before adding an action, ensure you have the following:
- The Autopilot > Actions Write permission.
- For an API: its OpenAPI specification.
- For an MCP server: its URL.
- If the system requires authentication: an external credential. The next section explains how to add one.
Adding a credential
An action that requires authentication uses an external credential, which stores the token or key for the tenant. Follow these steps to add one:
- In the platform, open Settings and select Credentials.
- Select Add External Credentials.
- In Name, enter a name for the credential.
- In Type, select the credential type. For an API token or key, select Custom.
- In Token, enter the token or key.
- Optional: in Expiry Date, select the date when the credential expires.
- Select Submit.
The credential is then available in Credentials Name when you add an action. For details on external credentials, see Roles and permissions.
Adding an action
You add an action on the Actions tab of the Autopilot settings, in two parts.
Opening the Actions tab
Follow these steps to open the tab and start a new action:
- In the chat header, select Settings.
- Open the Actions tab.
- Select Add.
In the image: the Actions tab (1), Add (2), and the action menu (3).
Filling in the action form
Follow these steps to complete the form:
- Enter a Name and a Description.
- In Action type, select HTTP Server for an API, or MCP Server for an MCP server.
- In Credentials Name, select a credential, or select No authentication required.
- In Payload, paste the API specification or the MCP server configuration, in JSON format.
- In Instructions, describe when and how Autopilot uses the action.
- Select Add action.
The image shows the form of an existing action, where the button is Save changes.
The action appears under Available actions. To change or remove it, select Edit or Delete in the action menu. A deleted action can't be restored.
API specification
For an HTTP Server action, the payload is the API's OpenAPI specification. The specification must meet the following requirements:
- It includes a
serversentry with the API's base URL. - It includes a
components.securitySchemesentry, also for an API without authentication. For an API key, the scheme names the header or query parameter that carries the key, and Autopilot sends the selected credential in it. - Its references (
$ref) point inside the specification. External references aren't supported.
{
"openapi": "3.0.0",
"info": { "title": "Orders API", "version": "1.0.0" },
"servers": [{ "url": "https://api.example.com" }],
"components": {
"securitySchemes": {
"apiKey": { "type": "apiKey", "in": "header", "name": "X-Api-Key" }
}
},
"paths": {
"/orders/{orderId}": {
"get": {
"summary": "Get the status of an order",
"parameters": [
{ "name": "orderId", "in": "path", "required": true, "schema": { "type": "string" } }
],
"responses": { "200": { "description": "The order status" } }
}
}
}
}
{
"openapi": "3.0.0",
"info": { "title": "Orders API", "version": "1.0.0" },
"servers": [{ "url": "https://api.example.com" }],
"components": {
"securitySchemes": {
"apiKey": { "type": "apiKey", "in": "header", "name": "X-Api-Key" }
}
},
"paths": {
"/orders/{orderId}": {
"get": {
"summary": "Get the status of an order",
"parameters": [
{ "name": "orderId", "in": "path", "required": true, "schema": { "type": "string" } }
],
"responses": { "200": { "description": "The order status" } }
}
}
}
}
Autopilot can call every operation in the specification, including operations that change data. Include only the operations that Autopilot should use.
MCP server configuration
For an MCP Server action, the payload names the server and gives its URL:
{
"mcpServers": {
"inventory": {
"url": "https://mcp.example.com/mcp"
}
}
}
{
"mcpServers": {
"inventory": {
"url": "https://mcp.example.com/mcp"
}
}
}
- Autopilot connects to the first server in the configuration, over streamable HTTP.
- When a credential is selected, Autopilot sends it to the server as a bearer token. Store secrets as a credential, not in the configuration.
How Autopilot uses actions
- Autopilot selects an action based on the request, the action's description, and its instructions. In the instructions, state what the action is for and any rule for its calls, for example "Use this API for order status questions. Ask for confirmation before changing an order."
- Users need the Autopilot > Actions Write permission for Autopilot to use actions in their conversations.
- When the tenant has a published project, users can limit the actions in their own conversations with API actions in Autopilot settings. A project limits its conversations to the project's actions.
- The steps under Show thinking list the calls that Autopilot made for an answer.