Guides
GuideAutomations
Automations
“When this happens, run that function.” Automations connect events in your site to your functions — no glue code, no external tools.
An automation = an event + a function. Events: a row is created / updated / deleted in a table, a specific field changes, or a status field changes. The function can be a backend function, a data function, or an account-wide function.
Examples
- Row created in Contacts → validate the entry and notify your team by email
- Row created in Orders → notify the owner and publish a realtime event to the dashboard
- Status field changes to “approved” → grant access and email the member
- Row deleted in Reminders → clean up related rows in a linked table
Your function receives params.event (what happened: type, table, row data, who) and params.config (anything you saved on the automation).
The complete trigger family
| You want to run a function… | Use |
|---|---|
| when data or membership changes | Automation (this page) |
| on a timer | Scheduled Functions |
| when an external service calls a URL | Webhooks (account functions) |
| when a member clicks/submits in the UI | The page calls the function directly |
Loops are guarded: if your automation writes to the same table it watches, a circuit breaker stops runaway chains. Still, prefer watching specific fields over whole-row updates when reacting to your own writes.