Execute a Mistral workflow
workflow_executeRun a Mistral workflow by providing its identifier and input. Optionally wait for completion to obtain the result directly.
Instructions
Start a Mistral Workflow execution.
workflowIdentifier is the workflow name or ID (visible in mistral://workflows).
input is a free-form JSON object matching the workflow's input schema.
Modes:
waitForResult=false (default): returns immediately with execution_id and RUNNING status. Poll workflow_status to track completion.
waitForResult=true: blocks until the workflow finishes and returns the result inline. Use timeoutSeconds (default 30) to cap the wait.
Use deploymentName to target a specific deployment slot when multiple are configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowIdentifier | Yes | Workflow name or ID. | |
| input | No | Input payload matching the workflow input schema. | |
| executionId | No | Optional custom execution ID. Auto-generated if omitted. | |
| waitForResult | No | Block until completion and return result inline. Default: false. | |
| timeoutSeconds | No | Max wait time when waitForResult=true. Default: 30. | |
| deploymentName | No | Target a specific deployment slot. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_name | Yes | ||
| execution_id | Yes | ||
| sync | Yes | true when waitForResult=true (result is inline). | |
| status | No | ||
| result | No | ||
| root_execution_id | No | ||
| start_time | No | ||
| end_time | No | ||
| total_duration_ms | No |