Schedule and subscriptions
Run flows on a recurring schedule, or when a subscription to your application is created, changed or deleted.
Schedule
Runs on a recurring schedule (cron), in the bot's timezone.
Settings
| Name | Type | Required | Details |
|---|---|---|---|
| Cron expression | Text | Yes | Standard cron expression (5 fields, e.g. "0 9 * * 1"). A schedule may not run more often than every 5 minutes. Length: 9 to 100 characters. Default: 0 9 * * 1. |
| Timezone | Text | No | No longer used: schedules always run in the bot's timezone. |
Provided values
| Name | Type | Details |
|---|---|---|
| Fired at | Date and time | When the schedule fired. |
Subscription created
Triggered when a user starts a new subscription to one of the application's SKUs.
Outputs
| Name | Type | Details |
|---|---|---|
| Subscription | Subscription | The newly created subscription. |
Subscription updated
Triggered when a subscription changes (e.g. status, period, renewal SKUs).
Outputs
| Name | Type | Details |
|---|---|---|
| Previous Subscription | Subscription | The subscription as it was before the update. May be empty. |
| Current Subscription | Subscription | The subscription after the update. |
Subscription deleted
Triggered when a subscription is deleted.
Outputs
| Name | Type | Details |
|---|---|---|
| Subscription | Subscription | The deleted subscription. |
Need more help?
Can't find what you're looking for? Our team is happy to help.