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
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
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.
Configure authentication through the supported connection settings. Review the generated request and output fields.
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.
Related resources
Was this helpful?

