Hello everyone,
(A) Enable backend workflows
- In Bubble editor, go to Settings → API tab
- Check “This app exposes a Workflow API” (enable it).
(B) Create the backend workflow
- On the left side menu, click “Backend Workflows” (earlier called “API Workflows”).
- If you don’t see it, click the “+” and enable it.
- Click “+ New API workflow”.
- Give it a name, for example: create_user
- Check “Expose as a public API workflow”
(this allows it to be called via API or from your workflows).
(C) Add parameters
We need data to create the user. So add:
- email → type: text
- password → type: text
- name → type: text (or whatever fields you need)
(D) Add the actions
Now let’s actually create the user.
- Click “+ Add an action”
- Choose → Account → Sign the user up
- Email = email (parameter you created)
- Password = password (parameter you created)
- Then add another action to save the name:
- Data → Make changes to thing
- Thing to change → Result of step 1 (User)
- Change field → Name = name
Use this backend workflow from your page
(A) On your signup page
Let’s say you have inputs:
- Input Email
- Input Password
- Input Name
And a button Sign Up.
(B) Create the workflow
- Click the Sign Up button → Start/Edit Workflow.
- Add an action →
- “Schedule API Workflow”
- Workflow = create_user
- Scheduled date = Current date/time (immediately)
- Fill the parameters:
- email = Input Email’s value
- password = Input Password’s value
- name = Input Name’s value
Thank You.