Skip to main content
Triggers control when a workflow starts. Conditions are decision points inside the workflow that check something about the thread and split the flow into two paths.
Triggers in Plain

Manual

You run the workflow yourself. Open a thread, click Run workflow, and select which workflow to run. Useful for on-demand processes like escalation procedures.

Event

Choose Event to run the workflow when a thread event happens. Select the events during setup:
  • Thread created
  • Message added
  • Labels changed
  • Tier updated
  • Thread escalated
  • Priority changed
  • Status changed
  • Thread field created
  • Thread field updated
You can select multiple events for one workflow. For example, trigger on both Thread created and Message added to catch new threads and follow-up messages.

Labels changed

Labels changed starts a workflow when labels are added to or removed from a thread. When a workflow makes that change, Plain does not start other Labels changed workflows. This rule includes an AI triage Apply labels step in Manual mode and in AI selected mode. Plain does this on purpose, so workflows cannot loop. A change from a user, the API, or another actor that is not a workflow still starts Labels changed workflows. To route a thread after a workflow adds a label, put the routing steps in that same workflow, after Apply labels. Or start the second workflow on another trigger, such as Thread created, and branch with conditions.

One run per event

Every event starts a separate run. A workflow set to both Thread created and Message added runs twice on a thread that arrives with a message on it, once for each event. Run order applies to one event at a time. Workflows on different events run independently. To keep two workflows in a fixed order, put them on the same trigger.