
Mistral WorkflowEvents
CertifiedTrigger on Mistral Workflow events
Mistral WorkflowEvents
Trigger on Mistral Workflow events
Polls the Mistral Workflows event list endpoint on a fixed interval and emits one Kestra execution per matched event.
Note: Mistral Workflows is currently in public preview.
On the first poll (no cursor stored), the trigger fetches the current event page, stores the next_cursor, and emits nothing — this avoids flooding Kestra with historical events.
From the second poll onwards, only new events are returned and filtered against eventTypes and workflowName.
type: io.kestra.plugin.mistral.WorkflowEventsExamples
Trigger a Kestra flow on Mistral Workflow completion events
id: react_to_mistral_workflow
namespace: company.team
triggers:
- id: workflow_completed
type: io.kestra.plugin.mistral.WorkflowEvents
apiKey: "{{ secret('MISTRAL_API_KEY') }}"
workflowName: "my-summarization-workflow"
eventTypes:
- WorkflowExecutionCompleted
- WorkflowExecutionFailed
interval: PT30S
tasks:
- id: log_event
type: io.kestra.plugin.core.log.Log
message: "Workflow {{ trigger.workflowExecId }} ended with event {{ trigger.eventType }}"
Properties
allowConcurrent Non-dynamicboolean
falseSpecifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.
apiKey string
API key
Bearer token for the Mistral API; keep in a secret variable.
baseUrl string
https://api.mistral.ai/v1Base URL
API base URL; defaults to https://api.mistral.ai/v1.
eventTypes array
["WorkflowExecutionCompleted","WorkflowExecutionFailed","WorkflowExecutionCanceled"]Event types filter
List of event types to emit executions for. Defaults to terminal execution events:
WorkflowExecutionCompleted, WorkflowExecutionFailed, WorkflowExecutionCanceled.
Other available types include WorkflowExecutionStarted and task-level events.
interval Non-dynamicstring
PT30SdurationPoll interval
How often to poll the Mistral event list endpoint. Defaults to PT30S.
stopAfter Non-dynamicarray
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDList of execution states after which a trigger should be stopped (a.k.a. disabled).
when string
trueA condition that determines whether the trigger should run.
A Pebble expression evaluated at trigger time. The trigger fires only when the expression evaluates to a truthy value (true, a non-empty string, a non-zero number). Use this to gate trigger execution on dynamic runtime values such as execution labels, flow variables, or environment conditions.
workflowName string
Workflow name filter
Optional workflow name to filter events. When omitted, events from all workflows are considered.
Outputs
attributes string
Attributes
Raw JSON of the full event payload.
eventTimestamp integer
Event timestamp
Unix epoch milliseconds when the event was emitted.
eventType string
Event type
The event type (e.g. WorkflowExecutionCompleted, WorkflowExecutionFailed).
workflowExecId string
Workflow execution ID
The ID of the Mistral workflow execution that produced the event.
workflowName string
Workflow name
The name of the workflow that produced the event.