New to Kestra?
Use blueprints to kickstart your first workflows.
React to Mistral workflow events from Kestra with a polling trigger, and post the event type, workflow name, and execution ID to Discord.
Mistral workflows finish, fail, and get canceled on Mistral's side; this blueprint makes those moments actionable in your orchestrator. The io.kestra.plugin.mistral.WorkflowEvents polling trigger checks the Mistral API every minute and starts one Kestra execution per event, with the event fields exposed as trigger outputs. Here the reaction is a Discord message, but the same execution can load results, kick off downstream pipelines, or open incidents.
on_workflow_event (io.kestra.plugin.mistral.WorkflowEvents) polls at interval: PT1M for the three lifecycle event types: WorkflowExecutionCompleted, WorkflowExecutionFailed, and WorkflowExecutionCanceled. The trigger ships disabled so importing the blueprint never starts polling by accident.{{ trigger.eventType }}, {{ trigger.workflowName }}, {{ trigger.workflowExecId }}, and {{ trigger.eventTimestamp }}. The full event payload is available as raw JSON in {{ trigger.attributes }} for tasks that need more than the scalars.report_event posts the event type, workflow name, and remote execution ID to Discord.errors block posts a distinct Discord alert if the reaction fails, so an event that could not be processed is visible rather than lost.attributes when you need details.Reacting to remote events usually means a custom poller, a queue, and a consumer, each with its own failure modes. Kestra collapses that into one declarative trigger: the platform handles the polling schedule, deduplication into executions, secrets for the API key, and a history of every event that ever fired, next to the reaction it triggered.
MISTRAL_API_KEY: Mistral API bearer token.DISCORD_WEBHOOK_URL: Discord incoming webhook URL.disabled: false on the on_workflow_event trigger.workflowName to the trigger to react to a single workflow instead of all of them.{{ trigger.eventType }} with an If task to page on failures and stay quiet on completions.{{ trigger.attributes }} with a script task when the reaction needs fields beyond the scalars.eventTypes to WorkflowExecutionFailed to turn this flow into a pure failure alarm.