mistralM

Docs

sideBar

Building Workflows

Find the guides to install the Workflows SDK, write workflows and activities, and add scheduling, streaming, encryption, and integrations.

These guides cover how to build workflows with the Workflows SDK, from installation to advanced patterns. For the underlying model of workflows, activities, and workers, see Core concepts.

Pages in this section

Get started

Install the SDK
illustrationBook

Install the SDK

Set up Workflows and verify your installation.

Build in Vibe
illustrationWorkflow

Build in Vibe

Describe a workflow in Vibe Code Web and let the agent write, test, and deploy it.

Visualize your workflow
illustrationGear

Visualize your workflow

See your workflow as a graph in Studio, built from your code when the worker starts.

Write workflows and activities

Workflows
illustrationWorkflow

Workflows

Apply the practical patterns for building workflows, including determinism.

Activities
illustrationGear

Activities

Build the units of work that perform API calls, file I/O, LLM calls, and other side effects.

Dependency Injection
illustrationStar

Dependency Injection

Pass shared resources such as database connections and API clients into activities.

Mistral client
illustrationGem

Mistral client

Get a Mistral SDK client that handles authentication, telemetry, and observability metadata.

WorkflowsException
illustrationFeather

WorkflowsException

Handle errors consistently across workflows and activities.

Plugins
illustrationPlant

Plugins

Install packages of reusable workflows, activities, and dependencies, or create your own.

Control execution

  • Workflow scheduling: run workflows on a cron, interval, or calendar schedule.
  • Child workflows: run other workflows from a workflow for hierarchical orchestration.
  • Waiting for Conditions: pause a workflow until a condition is met, for approval and human-in-the-loop flows.
  • Continue-As-New: reset the event history while carrying state forward, for long-running workflows.
  • Durable agents: run an LLM agent inside a workflow. Durable agents are about to be deprecated: build new agents with the Agents SDK.

Stream events

Streaming Events
illustrationMegaphone

Streaming Events

Publish events from workflows and activities for live UIs, progress indicators, and token-by-token responses.

Consuming Streaming Events
illustrationWorkflow

Consuming Streaming Events

Listen to the event stream from a client and react to each event.

Handle data and identity

Payload offloading
illustrationWorkflow

Payload offloading

Move data larger than the 2MB payload limit by passing references.

Encryption
illustrationGear

Encryption

Encrypt payloads before they leave your worker, so the platform stores only ciphertext.

Compression
illustrationStar

Compression

Compress payloads before they leave your worker.

On-behalf-of workflows
illustrationGem

On-behalf-of workflows

Run a workflow as the user who triggered it. This requires a hardened deployment.

Integrate and organize

Connectors in workflows
illustrationPlug

Connectors in workflows

Call services such as GitHub, Notion, Slack, and Outlook without managing credentials.

Triggers and webhooks
illustrationCalendar

Triggers and webhooks

Start workflows from events in business tools and APIs.

Workflow Tags
illustrationWorkflow

Workflow Tags

Attach searchable tags to workflow definitions for filtering and discovery.

Search Keys
illustrationKey

Search Keys

Attach key/value pairs to executions so you can find them later.