- Studio
- What is Mistral Workflows?
Building Workflows
Building Workflows
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
Set up Workflows and verify your installation.
Build in Vibe
Describe a workflow in Vibe Code Web and let the agent write, test, and deploy it.
Visualize your workflow
See your workflow as a graph in Studio, built from your code when the worker starts.
Write workflows and activities
Workflows
Apply the practical patterns for building workflows, including determinism.
Activities
Build the units of work that perform API calls, file I/O, LLM calls, and other side effects.
Dependency Injection
Pass shared resources such as database connections and API clients into activities.
Mistral client
Get a Mistral SDK client that handles authentication, telemetry, and observability metadata.
WorkflowsException
Handle errors consistently across workflows and activities.
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
Publish events from workflows and activities for live UIs, progress indicators, and token-by-token responses.
Consuming Streaming Events
Listen to the event stream from a client and react to each event.
Handle data and identity
Payload offloading
Move data larger than the 2MB payload limit by passing references.
Encryption
Encrypt payloads before they leave your worker, so the platform stores only ciphertext.
Compression
Compress payloads before they leave your worker.
On-behalf-of workflows
Run a workflow as the user who triggered it. This requires a hardened deployment.
Integrate and organize
Connectors in workflows
Call services such as GitHub, Notion, Slack, and Outlook without managing credentials.
Triggers and webhooks
Start workflows from events in business tools and APIs.
Workflow Tags
Attach searchable tags to workflow definitions for filtering and discovery.
Search Keys
Attach key/value pairs to executions so you can find them later.