Product documentationintermediate15 minutes

Add an AI action

Add a focused AI action to a Jotsu application with clear inputs, an appropriate model, validated output, and reliable error handling.

Define one model task, its input, output schema, failure behavior, and where the result is stored.

Add a Summarize action to customer records.

Use the account notes as input. Return a summary and three risks as structured data.
Store the result with the model name and generation time. Do not overwrite the previous
summary when inference fails. Show a useful error and log the failed request.

Require approval before an AI action sends messages, changes external systems, publishes content, spends money, or deletes data.

Test an ordinary record, an empty input, and a long input. Confirm that failures do not leave partial data.