Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom Actions: Authentication and Execution

Custom actions let you expose an operation for use by agents or workflows. Define a narrow purpose, clear inputs, and an output that later steps can use.

Before you begin

Permission to create custom actions, a supported provider connection, and the provider’s public API documentation.

Key concepts

Term
Definition

Custom action

An operation defined for a specific provider API task. Review its request, authentication, output, and error behavior before agent use.

Provider

The service or tool family that offers an integration capability. Choose the provider before selecting its connector or action.

Connection

A saved authorization to a particular provider account. An action uses the selected account’s access, subject to StackAI sharing controls.

Request body

The payload transmitted with an HTTP request. Interpret it using the content type expected by the endpoint.

Schema

A definition of fields, types, required values, and supported constraints. Use it to validate the shape of data; it does not establish factual correctness.

Configure a custom action

  1. Define the operation and its input fields. Use the action editor or generation option to create the action.

Describe the operation and its inputs and outputs before reviewing the generated action.

Describe the operation and its inputs and outputs before reviewing the generated action.

  1. Configure authentication through the supported connection settings. Review the generated request and output fields.

  2. Run the action with valid inputs and inspect the provider response before adding it to an agent.

The action performs the intended provider operation and returns a usable result.

Behavior and limitations

Generated code needs review. Check its endpoint, request method, permissions, pagination, and error handling. Keep credentials in supported connection fields rather than action text. Explain when an agent should use the action, especially when it changes records or sends messages.

Create a custom action

Connection Ownership, Sharing, and Permissions

Was this helpful?