Skip to content
BuildBase

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:

KindPrefixCount
Triggertriggers.100+
Actionactions.19
Conditionconditions.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.

IDFires when
triggers.audience.member_createdA new audience member is created
triggers.audience.member_updatedAny member field changes
triggers.audience.added_to_listAdded to an audience list
triggers.audience.removed_from_listRemoved from an audience list
triggers.audience.tag_addedA tag is applied
triggers.audience.tag_removedA tag is removed
triggers.audience.unsubscribedOpted out
triggers.audience.resubscribedOpted back in
triggers.audience.blockedBlocked
triggers.audience.unblockedUnblocked
triggers.audience.email_invalidatedAddress 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

IDFires when
triggers.email.sentA message is dispatched
triggers.email.openedThe tracking pixel loads
triggers.email.clickedA tracked link is followed
triggers.email.bouncedDelivery hard-fails
triggers.email.complainedRecipient reports it as spam
triggers.email.unsubscribedRecipient opts out from this message
triggers.email.campaign_sentA 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

IDFires when
triggers.subscription.createdFirst subscription on a workspace
triggers.subscription.updatedAny subscription field changes
triggers.subscription.upgradedMoved to a higher plan
triggers.subscription.canceledCanceled immediately
triggers.subscription.cancel_scheduledCancellation set for period end
triggers.subscription.resumedReactivated after cancellation
triggers.subscription.suspendedSuspended, typically for non-payment
triggers.subscription.trial_startedTrial begins
triggers.subscription.trial_will_endTrial is approaching its end
triggers.subscription.trial_expiredTrial 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

IDFires when
triggers.payment.succeededPayment captured
triggers.payment.failedPayment declined
triggers.payment.action_requiredPayment needs 3DS or similar
triggers.payment.card_expiringA saved card expires within 30 days
triggers.payment.refundedMoney returned to the customer
triggers.credit.purchasedCredits bought
triggers.credit.grantedCredits issued without payment
triggers.credit.consumedCredits spent
triggers.credit.expiredCredits lapsed
triggers.credit.low_balanceBalance crossed the low threshold
triggers.credit.reservedCredits put on hold
triggers.credit.settledA hold closed at the real cost
triggers.credit.releasedA hold given back, or expired
triggers.credit.threshold_crossedAuto top-up started under the threshold
triggers.credit.top_up_failedAn auto top-up did not charge
triggers.quota.limit_exceededA metered quota was exceeded

User and organization

IDFires when
triggers.user.registeredAccount created
triggers.user.email_verifiedAddress confirmed
triggers.user.logged_inSuccessful sign-in
triggers.user.password_changedPassword updated
triggers.user.password_reset_requestedReset requested
triggers.user.profile_updatedProfile fields changed
triggers.organization.member_invitedOrg invite sent
triggers.organization.member_acceptedOrg invite accepted
triggers.organization.member_removedOrg member removed

Workspace

IDFires when
triggers.workspace.createdWorkspace created
triggers.workspace.updatedWorkspace fields changed
triggers.workspace.deletedWorkspace deleted
triggers.workspace.member_addedMember joins
triggers.workspace.member_removedMember leaves
triggers.workspace.member_role_changedA member's role changes
triggers.workspace.settings_updatedSettings changed
triggers.workspace.features_updatedFeature flags toggled
triggers.workspace.member_invitedSomeone is invited by email, before they accept
triggers.workspace.invitation_acceptedAn invited person accepts and joins
triggers.workspace.invitation_declinedAn invited person declines
triggers.workspace.invitation_revokedA pending invitation is withdrawn
triggers.workspace.invitation_expiredAn invitation lapses unanswered and its seat is released

Forms, push, workflows

IDFires when
triggers.form.submittedA form is submitted
triggers.push.campaign_sentA push campaign finishes sending
triggers.workflow.publishedA workflow version is published
triggers.workflow.pausedA workflow is paused
triggers.workflow.resumedA workflow is resumed
triggers.workflow.instance_completedAn instance finishes successfully
triggers.workflow.instance_failedAn 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).

IDFires when
triggers.enterprise.createdAn enterprise is added
triggers.enterprise.deletedAn enterprise is removed
triggers.enterprise.domain_verifiedWorkOS verified one of its domains (via says how: workos)
triggers.enterprise.user_provisionedIts directory creates or links a person
triggers.enterprise.user_deprovisionedIts directory removes, deactivates or suspends a person
triggers.enterprise.directory_syncedA pull from its directory finishes
triggers.enterprise.certificate_expiringWorkOS warns its SAML certificate expires soon, or has expired
triggers.enterprise.certificate_renewedIts IT admin replaced the certificate
triggers.enterprise.policy_updatedIts access policy changed (via: your console or the company's admin)
triggers.enterprise.break_glass_usedA break-glass person signed in another way while SSO is required
triggers.enterprise.sessions_revokedOne 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_activatedIts IT admin activated the SSO connection
triggers.enterprise.connection_deactivatedThe connection was turned off (ssoRequired says whether sign-in stopped)
triggers.enterprise.connection_deletedIts IT admin deleted the connection
triggers.enterprise.log_stream_failingA 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_recoveredThat stream delivered again, or WorkOS's is active again (source)
triggers.enterprise.admin_addedSomeone was given a company role, or a different one (source says who)
triggers.enterprise.admin_removedSomeone's company role was taken away
triggers.enterprise.key_createdA company API key was made, for a person or a service account
triggers.enterprise.key_revokedA company API key stopped working, and why
triggers.enterprise.group_createdThe company made a group
triggers.enterprise.group_updatedA 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_deletedA group was deleted, and everything it gave taken away
triggers.enterprise.group_members_changedThe 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_createdThe company made a company role of its own
triggers.enterprise.role_updatedOne of its roles changed, with the areas that changed; workos when it was published to WorkOS or taken out
triggers.enterprise.role_deletedOne of its roles was deleted, with how many people and groups held it
triggers.enterprise.person_joinedSomeone became one of its people by their email domain (joinedBy: domain, request or claim)
triggers.enterprise.join_requestedSomeone on its domains asked to join
triggers.enterprise.join_request_declinedA request to join was declined
triggers.enterprise.domain_removedOne of its verified domains stopped counting (removedBy: console or workos)
triggers.enterprise.app_team_sessionApp 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_attentionRoles 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_recoveredRoles In WorkOS Recovered: they are back in sync. Outputs enterpriseId, name, state, attentionSince and readAt
triggers.enterprise.agent_issuer_updatedAgent 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_accessAgent 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_updatedEnterprise 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_updatedWorkload 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_accessWorkload 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_updatedWorkspace 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

IDNotes
actions.send_emailTwo 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_pushTargets 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

IDNotes
actions.delayThree 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_eventPauses 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

IDPurpose
actions.add_tag / actions.remove_tagTag management. Outputs include Was Already Tagged-style flags
actions.audience_list_add / actions.audience_list_removeList membership
actions.audience_subscribe / actions.audience_unsubscribeOpt-in state, with a reason on unsubscribe
actions.audience_block / actions.audience_unblockBlocking, with a reason
actions.audience_mark_invalidFlag an address as undeliverable
actions.update_audienceUpdate name, email, language, country, timezone, currency, or custom attributes
actions.grant_creditsGrant 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

IDPurpose
actions.get_audienceLook up a member by ID or email. Outputs the full profile - tags, lists, country, timezone, custom attributes - plus Found
actions.get_workspaceLook up a workspace. Outputs member count, owner email, subscription status, plan name, billing currency
actions.data_transformExtract 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

IDPurpose
actions.http_webhookCall your own API. See webhook actions

Conditions

IDBehavior
conditions.if_elseBranches on a field check. Handles: true, false
conditions.filterContinues only when the check passes, otherwise ends this path
conditions.split_randomPercentage 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