Triggers

Auto-run logic when your data changes — send emails on signup, update inventory on orders, and more.

Triggers

Auto-run logic when your data changes — send a welcome email when a user signs up, update inventory when an order is placed.

The Triggers section showing trigger list in the sidebar
Manage all your triggers in one place

What triggers do

A trigger watches for a specific event, like a row being inserted or updated, and automatically runs a function when it happens. You set it up once, and it fires every time.

Examples:

- A new user signs up → send a welcome email
- An order is placed → reduce inventory count
- A record is updated → log the change for auditing
- A custom event fires → notify connected clients

How to create a trigger

Open the Triggers screen

Go to Triggers from the sidebar and click New Trigger.

Choose the table and events

Pick the table and the insert, update, or delete events that should fire the trigger.

Build the function

Use the function editor to define what happens when the trigger fires. You have access to the operation plus old and new row data, so you can react to specific changes.

Pro tip

Use the sync/async setting to decide whether the trigger should run inline with the data change or as follow-up work.

Trigger types

Database Triggers
Run functions when rows are inserted, updated, or deleted.
/triggers/database-triggers
Event Triggers
Availability note for event-driven workflow alternatives.
/triggers/event-triggers
Scheduled Tasks
/tasks
Run logic on a schedule instead of on data changes
Build a REST API
/guides/build-rest-api
Create endpoints that can fire triggers