function.jsonc file. If you only have an entry.ts or entry.js file, you’ll need to add this configuration file to use automations. Automations are deployed atomically with the function code when you run deploy or functions deploy.
Automation types
Base44 supports 4 types of automations:- Scheduled automations with cron: Use cron expressions for precise scheduling control.
- Scheduled automations with simple schedules: Configure recurring tasks by interval without cron expressions.
- Entity event automations: Trigger functions when database records are created, updated, or deleted.
- Connector automations: Respond to events from connected services in real time, such as a new email in Gmail or a file change in Google Drive.
Common fields
Common fields for all automations
All automation types share the following fields:Common fields for scheduled automations
Both cron and simple scheduled automations share these additional fields:Automation configuration
Configure automations in yourfunction.jsonc file using one of the following approaches. All automations use the common fields for all automations listed above, plus the fields specific to each type.
Cron
Use common fields for all automations and common fields for scheduled automations along with the cron-specific fields listed here. Settype to "scheduled" and schedule_type to "cron" to use cron expressions for precise scheduling control.
Cron automations use standard 5-field syntax: minute hour day-of-month month day-of-week. See crontab.guru for an interactive cron expression editor and syntax reference.
Cron example
This example runs a function every day at midnight UTC:Simple schedule
Use common fields for all automations and common fields for scheduled automations along with the simple schedule fields listed here. Settype to "scheduled" and schedule_type to "simple" for straightforward scheduling needs.
Configure recurring tasks by interval such as minutes, hours, days, weeks, or months without writing cron expressions.
Simple schedule examples
The following examples show different ways to schedule automations with simple schedules:Entity events
Use common fields for all automations along with the entity event fields listed here. Settype to "entity" to trigger functions automatically when database records are created, updated, or deleted.
Entity automations can listen to 1 or more event types on a specific entity.
Entity event examples
The following examples show how to trigger functions based on entity events:Connector automations
Use common fields for all automations along with the connector-specific fields listed here. Settype to "connector" to trigger functions when a connected integration sends a webhook event. Use these to react to external service activity in real time. For example, you can parse a new email, sync a calendar change, or respond to a file update in Google Drive.
You can optionally add trigger conditions to filter events so your function only runs when the payload matches rules you define.
When a connector automation fires, your function receives a structured webhook payload containing the event type, integration details, and the raw data from the external service.
The connector must be configured in your project and authorized before deployment. See Shared connectors for setup instructions.
Supported integrations and events
Slack (
slack) and Slack Bot (slackbot) connector automations require trigger conditions. Deployment will fail if no conditions are set for these connector automations.Resource ID formats
The expected value forresource_id varies by connector:
- Google Drive: The file ID. Required for file-scoped events (
file,file.update,file.trash,file.untrash,file.delete). - Gmail: A comma-separated list of label IDs to watch. Defaults to
"INBOX"if omitted. - Microsoft Teams:
{teamId}/{channelId}to watch a specific channel, or{chatId}to watch a specific chat. - SharePoint:
{siteId}/{listId}to watch a specific list.
Trigger conditions
Usetrigger_conditions to filter webhook events so your function only runs when the payload matches rules you define. If no conditions are set, the function runs for every incoming event. See Connector automation examples for complete configurations.
string
How to combine the conditions. Possible values:
"and" (all must match), "or" (any must match). Defaults to "and".array
required
One or more condition objects or nested condition groups. Maximum 20 leaf conditions and 5 levels of nesting.
Webhook payload
When a connector automation triggers your function, the request body contains apayload object with the following structure. See Connector automation examples for a function that reads the payload.
Connector automation examples
Function arguments
Pass data to your function when it’s triggered by including thefunction_args field in your automation configuration. This is useful when one function handles multiple automations with different behaviors, such as a sync function that runs incrementally every 15 minutes but does a full sync daily.
Access these arguments in your function code through the request body.
Function arguments example
This example shows a function that handles both incremental and full sync modes based on the automation config:Deploy automations
Deploy backend functions with their automations using the CLIfunctions deploy command or the unified deploy command. You can deploy specific functions by name with functions deploy <names...>.
The deployment is atomic per function. A function is only considered deployed if both the Deno deployment and all its automations succeed. If any automation fails to deploy, the entire function deployment is rolled back.
After deploying, the CLI shows per-function status: deployed, unchanged, or error.
Manage automations in the dashboard
View and manage your automations in the Base44 dashboard under the Automations tab. From the dashboard, you can:- View execution logs and history
- Run automations manually for testing
- Monitor automation status
See also
- Backend Functions: Learn about backend functions
functions deploy: Deploy functions with automationsdeploy: Deploy all resources at oncelogs: View function logs