How to add variables and branches in Slack Workflow Builder
In Slack (verified 2026-10-24), open Agents & tools > Workflow Builder (or edit a workflow you manage), insert variables from prior steps into messages/forms, then add Utilities > Add a branch with Only continue if conditions (form answers, buttons, or earlier data). Configure up to 15 branches (with nested branches where your plan allows), include a fallback, then Publish.
This goes beyond a linear “form → message” workflow — focus is variables + conditional routing. Branching availability follows your Slack plan (Business+/Enterprise Grid style access); if Add a branch is missing, ask a workspace owner.
Applies to Slack desktop/web Workflow Builder. Mobile can start published workflows; authoring advanced branches is desktop-first. Custom connector steps still work inside branches.
Add variables, branches, and publish
Open or create the workflow
- From Slack desktop, open Agents & tools (or your workspace’s Workflow Builder entry).
- Create a new workflow or open one under Managed by you and click Edit.
- Add the trigger (link, shortcut, form, webhook, etc.) and at least one data-gathering step.
Use variables in later steps
- In a message or form step, click insert a variable (or the brackets icon).
- Pick data from the trigger or earlier steps (person who started, form answers, channel).
- Add a button when you want the workflow to pause until someone clicks.
Add branches and publish
- Click Add step > Utilities > Add a branch.
- Under Only continue if, set conditions (for example severity = High) and optionally name/color the branch.
- Add more branches plus a fallback, nest further branches if needed, then Publish / Publish changes and run a test.
Our take: branch for routing, not for essays
Use branches to send “billing” vs “bug” to the right channel; keep each branch’s steps short so owners can maintain them.
If it fails
- Add a branch missing: plan/role does not include branching — upgrade or ask an owner.
- Variable list empty: the prior step does not expose that field yet — gather it in a form first.
- Wrong path always fires: condition typos or missing fallback — re-test with Preview/run.
- Need external start: use a webhook trigger and map custom variables before branching.
Frequently asked questions
What is advanced Slack Workflow Builder?
Using variables from earlier steps plus conditional branches (and fallbacks) so one workflow routes people differently.
How do I add a branch?
In Workflow Builder, Add step > Utilities > Add a branch > set Only continue if conditions > Save, then publish.
Do I need a special Slack plan for branches?
Branching is limited to plans that include it (commonly Business+ / Enterprise Grid). If you do not see it, check with an owner.
Variables vs branches?
Variables pass data into steps; branches choose which steps run based on that data or button clicks.
Can I nest branches?
Yes within Slack’s limits (multiple primary branches and a limited nested layer) — keep nesting shallow for maintainability.