Skip to content
MyAppBuilder
StableGuide

Workflows overview

A workflow is an automation: when something happens (a record is created, a status changes, a button is pressed), then a series of steps runs on the server, even if nobody is looking at the app. Typical uses: email a customer when their booking is saved, create a job when a quote

Workflows overview

A workflow is an automation: when something happens (a record is created, a status changes, a button is pressed), then a series of steps runs on the server, even if nobody is looking at the app. Typical uses: email a customer when their booking is saved, create a job when a quote is approved, notify your team when a request arrives.

Every workflow has one trigger and an ordered chain of steps (also called nodes). Steps can branch (If / else, Branch) and repeat (Repeat for each), and each step can save a result that later steps use.

When to use

  • Use a workflow when the work should happen automatically after data changes, or when the same chain of steps is reused from several places.
  • Use actions on a component (see Actions overview) when the behaviour belongs to one button or form and needs the visitor's immediate feedback.
  • The two work together: a button's Run workflow action starts a workflow and waits for its result.

Where to find workflows

Open the Logic section of the builder. It has four tabs:

  • Workflows — the list of automations and the workflow editor.
  • Pipelines — status stages for an entity and the automations attached to them (Pipelines).
  • App state — variables your app remembers (App state).
  • Run history — every run with its steps, outputs and errors (Run history).

How to create a workflow

  1. In Logic → Workflows, click New workflow.
  2. Pick a starting point: When a record is created → send email, When status changes to X → create record, Manual workflow or Blank. The first two ask which entity (and status field/value and target entity) to use and pre-fill a sensible first step.
  3. Give it a name and click Create workflow.
  4. In the editor, click the When card at the top to adjust the trigger.
  5. Click the + between steps to insert a step. Steps are grouped as Communication (Send email, Notification, Send webhook), Data (Database, Set values, Call API), Logic (If / else, Branch, Repeat for each, Wait) and More (AI step, Run action). See Nodes.
  6. Click a step to edit its settings in the right-hand panel. Changes save automatically.
  7. Use Test run to try it against your test data, then check History.

Enable and disable

Each workflow has an On / Off switch, both in the list and at the top of the editor. A workflow that is Off never runs: automatic triggers ignore it, and a Run workflow action reports "Workflow not available." Duplicated workflows start Off so a copy does not fire twice by accident.

Which triggers fire automatically

  • A record is created / updated / deleted fire on their own whenever a record changes, whether the change comes from a form, an action, the data editor or another workflow.
  • Run manually / from an action fires when a Run workflow action runs.
  • A form is submitted fires when a form's onSubmit actions include a Create record action.
  • On a schedule (beta) runs the published app's workflow on live data at the scheduled times (every day at 09:00, every monday at 08:00…), once per occurrence, when the server's workflow cron ticks.
  • An incoming webhook (beta) runs when another service calls the workflow's signed URL: the test URL runs the draft on test data, the live URL the published app on live data. Create the URLs and copy the signing secret in the trigger panel; see Integration center.

What a run looks like

A run starts at the trigger, walks the connected steps in order, and stops at the first failing step. Each run records every step's status, output and duration, and the run's overall status (succeeded or failed). Steps that are not connected to the chain are listed under Not connected — these steps never run.

Example
WHEN  a booking is created
THEN  Send email → to {{record.email}}, "Thanks for your booking"
      Notification → "New booking: {{record.name}}"

Common mistakes

  • Forgetting to turn the workflow on. New workflows created from presets are on; duplicates are off.
  • Expecting a schedule to run in the draft. Scheduled workflows run for the published app (live data), or also on test data when Also run on test data is on; use Test run to try one right away.
  • Leaving a step unconnected. Orphaned steps appear in a warning box at the bottom of the canvas and never run.
  • Choosing the wrong entity on the trigger. Steps that use Current record read the record that triggered the run; if the trigger has no entity, those values are empty.

Troubleshooting

  • The workflow never runs: check the switch is On, the trigger type is automatic, and the entity matches. Then look at Run history.
  • A step fails: open the run in Run history; the failing step shows its error (for example an invalid email recipient or an API that returned an error status).
  • Emails are not arriving: email delivery must be configured (a RESEND_API_KEY secret or the platform key). In local development emails go to the dev outbox instead.

Advanced

Workflows run in-process on the server (src/server/workflows/executor.ts), at most 200 steps per run. Sub-workflows started from a Run action step are limited to 3 levels deep. Database steps inside a workflow run with system privileges and can themselves trigger other record workflows. Workflow steps are never sent to the browser: the published configuration contains only the workflow's name, trigger and enabled flag.

Related

Was this helpful?