/bubble-tutorials

How to build server-side logic in Bubble with backend workflows

Learn how to build powerful server-side logic in Bubble using backend workflows with clear steps that boost performance and automate your app.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Bubble apps with your growth in mind.

Book a Free Consultation

How to build server-side logic in Bubble with backend workflows

Backend workflows in Bubble let you run logic on Bubble’s servers instead of in the browser. You use them for things like delayed actions, processing data in bulk, sending webhooks, or running logic securely. To build server‑side logic, you create a Backend Workflow, define its parameters, add backend actions inside it (like making changes to the database or calling APIs), and then trigger it either from the front end, another workflow, or on a schedule.

 

What Backend Workflows Are

 

A backend workflow is simply a workflow that runs without involving the user’s browser. Bubble executes it on its server. That means:

  • No page reload or user wait time.
  • More secure (because you can hide keys and sensitive logic).
  • Can run later using “Schedule API Workflow”.

 

How to Enable Them

 

Go to the left menu → BackendWorkflows. If you don’t see it, enable “Backend workflows” in Settings → API.

 

How to Build One

 

You create a new API Workflow. Think of it as a function that accepts inputs and runs logic.

  • Create a new API Workflow and give it a name like process\_order.
  • Add parameters (for example: order\_id, text).
  • Add actions such as Make changes to a thing or Run API call.

 

How to Trigger It

 

  • Schedule API Workflow — run it once at a specific time.
  • Schedule API Workflow on a list — run it for every item in a list.
  • Manual API call — call it from external systems (if exposed as public API).

 

// Example: Passing an Order’s unique ID into a backend workflow
// Front-end workflow action: Schedule API Workflow
order_id = Current User's Cart's Order's unique id
scheduled date = Current date/time + minutes: 5

 

Common Use Cases

 

  • Sending emails or texts after a delay.
  • Creating invoices or Stripe actions server-side.
  • Processing thousands of items safely.
  • Webhooks (Bubble receives data in backend workflows).

 

If you understand how to: create a backend workflow, add parameters, add actions, and schedule it, you can build nearly all server‑side logic in Bubble.

Explore More Valuable No-Code Resources

How to integrate Bubble.io with Git?

Learn how to seamlessly integrate Bubble.io with Git through our comprehensive step-by-step guide. Perfect for beginners and professionals.

Explore

How to integrate Bubble.io with Reddit Ads?

Learn how to seamlessly integrate Bubble.io with Reddit Ads using our easy step-by-step guide. Boost your ad management today!

Explore

How to integrate Bubble.io with AWS S3?

Explore our step-by-step guide on integrating Bubble.io with AWS S3, making your app development process more efficient and secure.

Explore

How to integrate Bubble.io with Lucidchart?

Follow our step-by-step guide to seamlessly integrate Bubble.io with Lucidchart, enhancing your workflow & productivity.

Explore

How to integrate Bubble.io with Kentico?

Learn how to seamlessly integrate Bubble.io and Kentico with our comprehensive, easy to follow step-by-step guide.

Explore

How to integrate Bubble.io with Box?

Discover easy-to-follow steps for integrating Bubble.io with Box. Boost your workflow and secure your files seamlessly today.

Explore

Stuck in Bubble.io? We’re here to help!

Fix broken workflows | Optimize logic | Boost performance | Scale with confidence

4.9
Clutch rating 🌟
600+
Happy partners
17+
Countries served
190+
Team members

By clicking “Accept”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.

Cookie preferences