Add a branch to a workflow

Add a branch to a workflow to present people with different options based on the actions they take. Branches can help build workflows to automate approval requests based on criteria you specify, triage incoming requests based on the severity level people select, and more.  

Note: Your Slack workspace must be on the new version of Business+ to use workflow branches. If you’re on Business+ and don’t see branches, reach out to our Support team for help.


Before you get started 

Whether you’re new to Workflow Builder or just need a refresher, get caught up with these helpful resources: 


Terms to know

Before you get started, we recommend you familiarize yourself with terms used in creating workflow branches. 

Term

Definition

Branch A branch is a type of workflow step that allows people to take different paths depending on actions they take in the workflow.

Condition

A condition is a variable or action (like clicking a button or selecting an answer to a question) that presents someone using a workflow with a specific branch.
Fallback A fallback is a branch your workflow follows when none of the other conditions you specify are met.



Create a workflow with a branch

You can set up workflow branches using a variety of conditions using information gathered in the workflow. The following options are a good place to get started:

  • Buttons
    Use a set of buttons to present people with different options in your workflow. For example, build a workflow with buttons that are assigned to different branches.
  • Forms
    Forms allow people using your workflow to answer questions by selecting from a set of options you specify. For example, set up a workflow with a set of answers to choose from that are each assigned to different branches.


Step 1: Create or select a workflow 

To get started with branches, you’ll need to create a new workflow or edit one you’ve already built.

  1. From your desktop, hover over   More, then click   Automations.
    An image of a cursor over the More icon in the Slack desktop app.
  2. Click   New Workflow. To add a branch to an existing workflow, click Managed by you, then click the   pencil icon next to a workflow. 
  3. Set up or edit your workflow by adding steps.


Step 2: Add a branch

Once your workflow is ready, you can add a branch. 

  1. Click   Add step where you’d like to add workflow branching.
  2. Click   Utilities in the sidebar, then select   Add a branch.
  3. Under Only continue if, select the conditions for your branch rule. The options you see here will depend on how you configure your workflow.
  4. If you’d like, give your branch a name and custom color.
  5. Click Save to finish this branch.

If you’d like, you can click   Add step to further customize this branch or move on to the next step to add more branches and publish your workflow. 


Step 3: Add more branches and finish your workflow

You can add up to 10 branches to your workflow. Once you’ve configured your branches and set up your workflow, finish your workflow by publishing it.

  1. Click   Add a branch, then repeat the steps above to configure the branch.
  2. When you’re ready, click Finish Up to create a new workflow, or click Publish Changes to update an existing one. 


Edit or delete a workflow branch

You can edit or delete a branch just like any other workflow step.  

  1. From your desktop, hover over   More, then click   Automations.
    An image of a cursor over the More icon in the Slack desktop app.
  2. Click Managed by you, then click the   pencil icon. next to a workflow.
  3. Take the following actions:
    • To edit a branch, click the   pencil icon
    • To reorder a branch, click the  up arrow or  down arrow, or drag it to a new location.
    • To create a copy of a branch step, click the   duplicate icon.
    • To delete branch, click the  trash can icon.
  4. Click Publish Changes to finish.

Who can use this feature?

  • All members
  • Available on Business+ and Enterprise plans