Triggers and actions
The full catalog of workflow triggers, actions, and conditions with their inputs and outputs.
Every node in a workflow graph is one of three kinds, identified by a dotted ID whose prefix names the kind:
| Kind | Prefix | Count |
|---|---|---|
| Trigger | triggers. | 100+ |
| Action | actions. | 19 |
| Condition | conditions. | 3 |
A workflow needs at least one trigger. Actions and conditions are optional, but a graph with no action does nothing observable.
You pick these from the console's node palette rather than writing them, but the IDs are what a workflow's exported JSON contains - so this is the table you read when inspecting an export or a stored flow:
{
"nodes": [
{ "id": "n1", "kind": "trigger", "type": "triggers.form.submitted" },
{ "id": "n2", "kind": "condition", "type": "conditions.if_else" },
{ "id": "n3", "kind": "action", "type": "actions.send_email" }
],
"edges": [
{ "source": "n1", "target": "n2" },
{ "source": "n2", "target": "n3", "sourceHandle": "true" }
]
}sourceHandle is how a branch is chosen: condition nodes emit true and
false, and actions.wait_for_event emits event_received and timeout. An
edge with no handle is the default path.
Fetch a workflow's flow with GET /api/workflows/:id/export.
Triggers
Audience
Eleven triggers in the builder, covering membership, tags, lists, and compliance state.
| ID | Fires when |
|---|---|
triggers.audience.member_created | A new audience member is created |
triggers.audience.member_updated | Any member field changes |
triggers.audience.added_to_list | Added to an audience list |
triggers.audience.removed_from_list | Removed from an audience list |
triggers.audience.tag_added | A tag is applied |
triggers.audience.tag_removed | A tag is removed |
triggers.audience.unsubscribed | Opted out |
triggers.audience.resubscribed | Opted back in |
triggers.audience.blocked | Blocked |
triggers.audience.unblocked | Unblocked |
triggers.audience.email_invalidated | Address marked invalid, usually after a hard bounce |
Two more, triggers.audience.attribute_changed (a specific custom attribute
changes) and triggers.audience.import_completed (a bulk import finished), are
kept for the workflows that already use them and are not offered in the builder.
Email engagement
| ID | Fires when |
|---|---|
triggers.email.sent | A message is dispatched |
triggers.email.opened | The tracking pixel loads |
triggers.email.clicked | A tracked link is followed |
triggers.email.bounced | Delivery hard-fails |
triggers.email.complained | Recipient reports it as spam |
triggers.email.unsubscribed | Recipient opts out from this message |
triggers.email.campaign_sent | A whole campaign finishes sending |
opened and clicked depend on tracking being enabled for the template.
Neither is reliable enough to gate access on - image blocking suppresses opens.
Subscription
| ID | Fires when |
|---|---|
triggers.subscription.created | First subscription on a workspace |
triggers.subscription.updated | Any subscription field changes |
triggers.subscription.upgraded | Moved to a higher plan |
triggers.subscription.canceled | Canceled immediately |
triggers.subscription.cancel_scheduled | Cancellation set for period end |
triggers.subscription.resumed | Reactivated after cancellation |
triggers.subscription.suspended | Suspended, typically for non-payment |
triggers.subscription.trial_started | Trial begins |
triggers.subscription.trial_will_end | Trial is approaching its end |
triggers.subscription.trial_expired | Trial ended without conversion |
cancel_scheduled and canceled are distinct. A win-back sequence should listen
for cancel_scheduled, which still has time to act.
Payment, credits, quota
| ID | Fires when |
|---|---|
triggers.payment.succeeded | Payment captured |
triggers.payment.failed | Payment declined |
triggers.payment.action_required | Payment needs 3DS or similar |
triggers.payment.card_expiring | A saved card expires within 30 days |
triggers.payment.refunded | Money returned to the customer |
triggers.credit.purchased | Credits bought |
triggers.credit.granted | Credits issued without payment |
triggers.credit.consumed | Credits spent |
triggers.credit.expired | Credits lapsed |
triggers.credit.low_balance | Balance crossed the low threshold |
triggers.credit.reserved | Credits put on hold |
triggers.credit.settled | A hold closed at the real cost |
triggers.credit.released | A hold given back, or expired |
triggers.credit.threshold_crossed | Auto top-up started under the threshold |
triggers.credit.top_up_failed | An auto top-up did not charge |
triggers.quota.limit_exceeded | A metered quota was exceeded |
User and organization
| ID | Fires when |
|---|---|
triggers.user.registered | Account created |
triggers.user.email_verified | Address confirmed |
triggers.user.logged_in | Successful sign-in |
triggers.user.password_changed | Password updated |
triggers.user.password_reset_requested | Reset requested |
triggers.user.profile_updated | Profile fields changed |
triggers.organization.member_invited | Org invite sent |
triggers.organization.member_accepted | Org invite accepted |
triggers.organization.member_removed | Org member removed |
Workspace
| ID | Fires when |
|---|---|
triggers.workspace.created | Workspace created |
triggers.workspace.updated | Workspace fields changed |
triggers.workspace.deleted | Workspace deleted |
triggers.workspace.member_added | Member joins |
triggers.workspace.member_removed | Member leaves |
triggers.workspace.member_role_changed | A member's role changes |
triggers.workspace.settings_updated | Settings changed |
triggers.workspace.features_updated | Feature flags toggled |
triggers.workspace.member_invited | Someone is invited by email, before they accept |
triggers.workspace.invitation_accepted | An invited person accepts and joins |
triggers.workspace.invitation_declined | An invited person declines |
triggers.workspace.invitation_revoked | A pending invitation is withdrawn |
triggers.workspace.invitation_expired | An invitation lapses unanswered and its seat is released |
Forms, push, workflows
| ID | Fires when |
|---|---|
triggers.form.submitted | A form is submitted |
triggers.push.campaign_sent | A push campaign finishes sending |
triggers.workflow.published | A workflow version is published |
triggers.workflow.paused | A workflow is paused |
triggers.workflow.resumed | A workflow is resumed |
triggers.workflow.instance_completed | An instance finishes successfully |
triggers.workflow.instance_failed | An instance fails |
The triggers.workflow.* family lets one workflow react to another - useful for
alerting on repeated failures without polling.
Enterprise SSO
One trigger for each enterprise SSO event, with
the event's payload as its outputs (each carries enterpriseId).
| ID | Fires when |
|---|---|
triggers.enterprise.created | An enterprise is added |
triggers.enterprise.deleted | An enterprise is removed |
triggers.enterprise.domain_verified | WorkOS verified one of its domains (via says how: workos) |
triggers.enterprise.user_provisioned | Its directory creates or links a person |
triggers.enterprise.user_deprovisioned | Its directory removes, deactivates or suspends a person |
triggers.enterprise.directory_synced | A pull from its directory finishes |
triggers.enterprise.certificate_expiring | WorkOS warns its SAML certificate expires soon, or has expired |
triggers.enterprise.certificate_renewed | Its IT admin replaced the certificate |
triggers.enterprise.policy_updated | Its access policy changed (via: your console or the company's admin) |
triggers.enterprise.break_glass_used | A break-glass person signed in another way while SSO is required |
triggers.enterprise.sessions_revoked | One person, or everyone, was signed out, the company ended one session of one person, the sessions that began a way its sign-in methods do not allow, or the agents its identity provider approved lost their sessions (scope: person, everyone, session, outside_methods or agents) |
triggers.enterprise.connection_activated | Its IT admin activated the SSO connection |
triggers.enterprise.connection_deactivated | The connection was turned off (ssoRequired says whether sign-in stopped) |
triggers.enterprise.connection_deleted | Its IT admin deleted the connection |
triggers.enterprise.log_stream_failing | A log stream to its SIEM failed three times in a row, or WorkOS reported its stream in error (source: buildbase or workos) |
triggers.enterprise.log_stream_recovered | That stream delivered again, or WorkOS's is active again (source) |
triggers.enterprise.admin_added | Someone was given a company role, or a different one (source says who) |
triggers.enterprise.admin_removed | Someone's company role was taken away |
triggers.enterprise.key_created | A company API key was made, for a person or a service account |
triggers.enterprise.key_revoked | A company API key stopped working, and why |
triggers.enterprise.group_created | The company made a group |
triggers.enterprise.group_updated | A group changed, with what changed and how many people it gained and lost; workos when it was published to WorkOS or taken out; the groups included and excluded, how many people that reached, and managersAdded and managersRemoved |
triggers.enterprise.group_deleted | A group was deleted, and everything it gave taken away |
triggers.enterprise.group_members_changed | The people named in a group by hand changed, by a group's manager, a company role holder, your team or a key: added and removed, their counts, and actingAs |
triggers.enterprise.role_created | The company made a company role of its own |
triggers.enterprise.role_updated | One of its roles changed, with the areas that changed; workos when it was published to WorkOS or taken out |
triggers.enterprise.role_deleted | One of its roles was deleted, with how many people and groups held it |
triggers.enterprise.person_joined | Someone became one of its people by their email domain (joinedBy: domain, request or claim) |
triggers.enterprise.join_requested | Someone on its domains asked to join |
triggers.enterprise.join_request_declined | A request to join was declined |
triggers.enterprise.domain_removed | One of its verified domains stopped counting (removedBy: console or workos) |
triggers.enterprise.app_team_session | App Team Session: your team opened a session as one of its people with an API key, or its policy refused it. Outputs enterpriseId, name, userId, appKeyName, workspaceId, expiresIn and outcome (issued or refused) |
triggers.enterprise.workos_roles_attention | Roles In WorkOS Need Attention: its roles in WorkOS started to need attention, or WorkOS could not be read for more than 24 hours. Outputs enterpriseId, name, state (needs_attention or unreachable), issues, readAt and lastGoodReadAt |
triggers.enterprise.workos_roles_recovered | Roles In WorkOS Recovered: they are back in sync. Outputs enterpriseId, name, state, attentionSince and readAt |
triggers.enterprise.agent_issuer_updated | Agent Identity Provider Changed: the company trusted its identity provider to approve the agents that act for its people, it was proven the company's own by a first sign-in or approved by the app's team, turned on or off, its token lifetime or keys URL changed, or it was removed. Outputs enterpriseId, name, issuer, tenant, change, status and sessionsEnded |
triggers.enterprise.agent_access | Agent Approved or Refused: its identity provider approved an agent for one of its people, or the app refused one it approved. Outputs enterpriseId, name, userId, clientId, app, outcome (granted or refused), reason and scopes |
triggers.enterprise.sso_routing_updated | Enterprise SSO Routing Updated: which identity provider signs in each of its email domains changed, from your console, the company's admins in your app, or the first read that found a second identity provider (via). Outputs enterpriseId, name, version, change, defaultConnection, routes, unservedDomains and via |
triggers.enterprise.workload_credential_updated | Workload Credential Changed: a company added, changed, turned on or off, or removed a workload credential that lets a CI job or cloud workload act as one of its service accounts. Outputs enterpriseId, name, serviceAccountId, serviceAccount, credentialId, credential, preset, issuer, change, status and tokensRevoked |
triggers.enterprise.workload_access | Workload Signed In or Refused: a company's CI job or cloud workload exchanged its token for a company API token, or the exchange was refused. Outputs enterpriseId, name, serviceAccountId, credentialId, credential, outcome (issued or refused), reason, subject and scopes |
triggers.enterprise.workspace_policy_updated | Workspace Policy Updated: the company set, changed or removed the stricter rules of one of its workspaces, or they went with its binding. Outputs enterpriseId, name, workspaceId, workspace, change, reason, changed and via |
Both roles triggers run once per change, never for the first state after role assignment is turned on, and not again while the roles still need attention (when the roles need attention).
Each enterprise event starts its own run, even when several arrive within the same minute: two companies whose roles need attention, or one company's attention and the next one after its recovery, are separate runs. The same event delivered twice, with everything it carries the same, starts one.
Actions
Email and push
| ID | Notes |
|---|---|
actions.send_email | Two modes: Use Template or Custom Content. Outputs delivery status plus engagement fields (Email Opened, Link Clicked, Email Bounced, Open Count) that populate as they happen |
actions.send_push | Targets an audience member, a workspace, or a user. Outputs Delivered, Status, Skipped, Skip Reason |
Both report Skipped with a Skip Reason rather than failing when a recipient
is unsubscribed or has no push subscription. A skipped send is not an error and
does not consume a retry.
Timing
| ID | Notes |
|---|---|
actions.delay | Three modes: fixed duration (minutes, hours, days), until a time of day, or until the next weekday - including a "next business day" option |
actions.wait_for_event | Pauses the instance until a matching event arrives or a timeout fires |
wait_for_event is the branching primitive for engagement flows. It exposes two
outgoing handles, event_received and timeout, so "opened the email" and
"did not open within three days" are separate paths.
Match conditions use three operators: eq, exists, and contains. Timeout
can be a fixed duration, a time of day, or no timeout at all. With no
timeout the instance stays running and counts against re-entry rules, but not
forever: a wait is cleaned up after 30 days, and an event that arrives after
that no longer resumes it. Set a timeout if the event can take longer.
Audience and CRM
| ID | Purpose |
|---|---|
actions.add_tag / actions.remove_tag | Tag management. Outputs include Was Already Tagged-style flags |
actions.audience_list_add / actions.audience_list_remove | List membership |
actions.audience_subscribe / actions.audience_unsubscribe | Opt-in state, with a reason on unsubscribe |
actions.audience_block / actions.audience_unblock | Blocking, with a reason |
actions.audience_mark_invalid | Flag an address as undeliverable |
actions.update_audience | Update name, email, language, country, timezone, currency, or custom attributes |
actions.grant_credits | Grant credits to a workspace. Outputs Amount Granted and Balance After |
Every compliance action outputs a "was already in that state" boolean, so a workflow can branch on whether it actually changed anything rather than re-notifying someone who was already unsubscribed.
Lookup and data
| ID | Purpose |
|---|---|
actions.get_audience | Look up a member by ID or email. Outputs the full profile - tags, lists, country, timezone, custom attributes - plus Found |
actions.get_workspace | Look up a workspace. Outputs member count, owner email, subscription status, plan name, billing currency |
actions.data_transform | Extract a field, parse JSON, format a date, evaluate a math expression, replace or split a string, change case, render a template, or set a static value |
Found is a boolean output, not a failure. A lookup that matches nothing
continues the flow - branch on Found with a condition rather than assuming the
instance stops.
Integrations
| ID | Purpose |
|---|---|
actions.http_webhook | Call your own API. See webhook actions |
Conditions
| ID | Behavior |
|---|---|
conditions.if_else | Branches on a field check. Handles: true, false |
conditions.filter | Continues only when the check passes, otherwise ends this path |
conditions.split_random | Percentage split, for A/B testing a sequence |
conditions.split_random is the only non-deterministic node in a workflow. The
same subject re-entering a workflow can take a different branch, so do not use
it where a stable assignment matters.
Merge tags
Any input marked allowMergeTags accepts {{path}} referring to the trigger
payload or an earlier node's outputs. The console offers only tags that are
actually reachable from that node.
Publishing validates every reference, and an invalid one is a blocking error - not a warning. Two cases are rejected:
- the tag points at a node that has been deleted
- the tag names an output the referenced node does not produce
So a broken merge tag stops the publish rather than resolving to an empty string at run time. Note this is stricter than the email template engine, where an unknown tag silently becomes an empty string.
In the HTML body of a Custom Content email, a merge tag's value arrives as
text: <, >, & and quotes in it are escaped, so a name or form field
someone typed as a link or an image shows as those characters, never as a link
or an image. Your own markup around the tag is sent as you wrote it. The
subject and the plain-text part are not HTML and take the value as it is.
Next Steps
- Webhook actions - receive an
actions.http_webhookcall. - Monitoring - instances, retries, and the dead-letter queue.
- Workflows overview - lifecycle and re-entry.