invoke_ai_action
Invoke a Contentful AI Action with custom variables. Provide the action ID, space, and environment, and receive generated content in Markdown, RichText, or PlainText format.
Instructions
Invoke an AI Action with variables
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aiActionId | Yes | The ID of the AI Action to invoke | |
| variables | No | Key-value pairs of variable IDs and their values | |
| rawVariables | No | Array of raw variable objects (for complex variable types like references) | |
| outputFormat | No | The format of the output content | Markdown |
| waitForCompletion | No | Whether to wait for the AI Action to complete before returning | |
| spaceId | Yes | The ID of the Contentful space. This must be the space's ID, not its name, ask for this ID if it's unclear. | |
| environmentId | Yes | The ID of the environment within the space, by default this will be called Master | master |