Starts when · Starts a flow
When a flow fails
Another flow on the server stopped with an error. A flow that starts on this never starts itself.
events.flow_failed
In a flow
“When a flow fails, the steps wired after it run.”
When a flow fails → Send to #bot-errors: {trigger.flow_name} failed: {trigger.error}.
What it does
Another flow on the server stopped with an error. A flow that starts on this never starts itself. It starts a flow, and gives the steps after it values about what happened. It gives 7 values later steps can use. Find it under Starts when in the palette.
When to use it
Use it to start a flow when a flow fails.
When not to
If the flow should start from a click or a command instead, pick that trigger: a flow has exactly one.
Typical wiring
Values it gives
- Who it was for Member
-
The member whose run failed, if there was one. e.g. @Sam
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toA member's variablesAdd a labelAdd a staff noteAdd answer to formAdd to a counterAdd to a leaderboardAdd to threadAdd to ticketand 648 more
- Where Channel
-
Where it was running. e.g. #general
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAdd a forum tagAdd to threadAge-restrict a channelAI summary of a channelAnti-nuke guardArchive channelArchive or lock threadAsk a questionand 640 more
- Flow Text
-
The failed flow's id. e.g. welcome
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more
- Flow name Text
-
Its name. e.g. Welcome
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more
- Error Text
-
What went wrong. e.g. I can't give @Mod: it's above my role.
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more
- Step Number
-
The step it failed at. e.g. 4
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more
- Run id Text
-
The failed run, to find it in the run log. e.g. 1042
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more