Workflows
41 pages
Guides
Workflows overviewA 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 quoteApp state variablesState is what your app remembers while people use it : the location they selected, the tab that is open, the items in a cart, a filter. App state is shared by every page; page state lives only while a page is open and resets when the visitor leaves it.Approve a quoteGoal: a customer opens their quote, reads the details and clicks Approve or Reject . The quote's status changes and your team is notified.Business hours and SLA clocksbetaService targets are usually promised in working time : "we answer within 8 business hours" means 8 hours of opening time, not 8 hours on the clock. MyAppBuilder can count working time in workflow calculations, using a business calendar you define once for the app. This is beta .Call an external APIGoal: show live data from another service in your app and send data to it. The example uses a weather service with an API key, but the steps are the same for any REST API.Create a customer from a formGoal: a visitor fills in a form on your site; a Customer record is created and your team is notified. Optionally the customer receives a welcome email.Create a job after a quote is approvedGoal: when a quote's status becomes Approved , create the customer (if your quotes store contact details) and then create a Job linked to that customer, copying the quote's details.Notifications for app usersbetaPeople who use your published app — customers, staff, technicians, approvers — can get notifications in the app itself: a bell in the navigation shows how many are unread, and a panel lists them. A workflow step, Notify app user , creates them. This feature is in beta .Pipelines and stagesA pipeline is the journey a record goes through: New → Quoted → Approved → Done . In MyAppBuilder a pipeline is simply a select field on an entity whose options are the stages , plus a friendly place to manage those stages and the automations that fire when a record moves betweenRole-based navigationGoal: after signing in, staff land on the dashboard while customers land on their portal; a shared button sends each role to the right place.Run historyEvery workflow run is recorded: when it started, what triggered it, which steps ran, what each step produced and where it failed. Run history is where you find out why an automation did or did not do what you expected.Send a confirmation emailGoal: whenever an order, booking or request is saved, the person who submitted it receives a confirmation email with the details.Submit a bookingGoal: customers request an appointment from a public page; the booking is saved, the customer gets a confirmation email and your team sees it on a calendar.Test runsA test run executes a workflow right now , from the builder, against your test data. It is the quickest way to check that each step does what you expect before the workflow fires for real in the published app.Upload photosGoal: technicians photograph a job on site; the photos are stored with the job record and shown in a gallery for the office and the customer.Workflow steps (nodes)Steps are the Then part of a workflow. They run one after another along the chain you build on the canvas, and some of them split the chain into paths. There are 12 step types; click + anywhere in the chain to insert one.Workflow triggersThe trigger is the When of a workflow: the event that starts a run. Every workflow has exactly one. Click the When card at the top of the workflow editor to change it; the panel on the right shows the settings for the chosen type.
Workflow steps
AI stepbetaGenerates text with AI from a prompt that can include record values, and saves the text for later steps.App connectorbetaRuns a ready-made action of Slack, Microsoft Teams, Airtable, Shopify, HubSpot or Twilio with your own credentials: post a message, list / create / update Airtable records, read a Shopify order or products, adjust inventory, create or update a HubSpot contact, create a deal, send an SMS.BranchRoutes the run down one of several paths — the first case whose condition matches — with an **Otherwise** path when none does.Call APICalls one of your configured APIs with parameters and saves the response for later steps.DatabaseCreates, updates, deletes or finds records of one of your entities.If / elseChecks a condition and continues on the **Yes** path when it is true, otherwise on the **No** path.NotificationCreates an in-app notification for your team, visible in Logic → Run history.Notify app userbetaPuts a notification in the bell of people who use your published app — one person by email, several addresses, or everyone with a role — with an optional link to a page and an optional email copy.Publish eventbetaTells the other apps of your workspace that something happened — “order confirmed”, “low stock” — with a typed, versioned message (`sales.order_confirmed@1`). Connected apps that subscribe start their own workflows with it.Repeat for eachRuns the steps on its **Each** path once per item of a list, then continues on the **Done** path.Run actionRuns one app action inside the workflow: another workflow, Send email, or Create / Update / Delete record.Send emailSends an email to a customer or your team from the workflow, with values from the record and earlier steps.Send webhookPOSTs the triggering record and the results so far as JSON to another service (Zapier, Make, your own server…).Set valuesComputes named values from templates and data in scope so later steps can use them under clear names.Stop with messageEnds the run immediately as **failed** with your message. When a button or form started the workflow with **Run workflow**, the user sees the message.WaitPauses the workflow for up to 10 seconds before the next step.
Workflow triggers
A form is submittedStarts the workflow when a specific Form component saves a record through a Create record action, with the form's values as event data.A record is createdStarts the workflow every time a new record is saved in the chosen entity — from a form, an action, the data editor, a CSV import or another workflow.A record is deletedStarts the workflow after a record of the entity has been deleted.A record is updatedStarts the workflow when a record of the entity changes — optionally only when a specific field changes.An event from a connected appbetaStarts the workflow when another app of your workspace publishes an event this app subscribes to — for example `sales.order_confirmed@1` from the sales app.An incoming webhookbetaAnother service starts the workflow by calling a signed URL with a JSON payload (payment received, message delivered…).On a schedulebetaRuns the workflow at fixed times — every morning, every Monday, once an hour — for published apps, on their live data.Run manually / from an actionThe workflow runs only when you ask: from a button with the Run workflow action, or with Test run.