Workflows

Workflows are single-purpose AI operations. Instead of letting the model choose from multiple tools, you ask it to perform one specific task, such as editing a document, replacing a selection, or managing comments.

Each workflow follows the same three-step flow:

  1. Read the relevant document state with a workflow read endpoint.
  2. Ask your model to produce structured workflow output.
  3. Execute the workflow on the Server AI Toolkit API.

Workflows vs. AI agents

AI agents can choose from multiple tools and combine them dynamically. Workflows are simpler: the model produces input for one known server-side action.

Use workflows when the task is fixed and predictable. Use agents when the model needs to choose between multiple document operations.