If you want to build a well-optimized app for your users, you need to have API workflows in your repetoire.
What are API workflows?
API workflows are workflows that run on Bubble's server (as opposed to your user's browser). They run independently of any page, which means they can be executed without anyone visiting your app.
You can schedule/trigger API workflows or allow external applications like Stripe to communicate through an API request.
There are 4 main reasons for using API workflows instead of workflows on your page:
- Performance (Move complex workflows to the server to keep your pages lightweight)
- Bulk operations (Loop workflows to process a list of things)
- Asynchronous (Workflows will run even when page is closed)
- Security (Hide sensitive information from the browser)
How do I use API workflows?
Take note that you need to subscribe for a paying plan before you can actually use the feature!
In this example, I have set up an API workflow to schedule a reminder email to new users who sign up for a free 1-month trial. The email will be sent 3 days before the trial expires.\