Articles in this section

Add branching to a tool

In Tool builder, you can add branching to route data down different paths, so one tool can handle several cases across applications or endpoints. This article shows you how to add a branching to a tool. Tool builder supports only the First matching branch type.

Every branch in a tool must end in a tool output.

Prerequisites: Manage permission, Administrator role, or account owner — You must have the Manage permission on the integration, the Administrator role on the account, or own the account. For details, see Manage user roles & permissions to an account.

Prerequisites: Steps to route to — Branches route records to steps, so add the steps first or as you go. For details, see Add lookups and imports to a tool.

Add a branching

  1. Go to Build Build icon or AI studio AI studio icon, and then select Tools. Select + Create tool to create a tool, or select your tool to open it.
  2. Select the plus sign (+) next to a step, and then select Add branching.
  3. In Branching name, enter a name that describes what the branching does in the tool, such as "Get a customer" or "Update a customer." Long names are truncated on the canvas; hover over the branching to see the full name.
  4. Keep First matching branch selected under Branching type. It's the only option. For how it works, see Branching overview.
  5. Under Define branch rules, select the name of each default branch, Branch X.0 and Branch X.1, to rename it.
  6. To add a description, select the Actions elipses-button.png menu for the branch.
  7. To add another branch, select + Branch. You can add up to 25 branches to a branching and up to 25 branchings to a tool.
  8. Configure the conditions for each branch. For steps, see Configure branch conditions. A branch with no conditions accepts every record, so leave one branch without conditions and put it last to catch records that match no other branch. Order the other branches from most specific to least specific.
  9. Select Preview to check the results.
    • Input shows the data that enters the branching.
    • Output shows the index and name of the first matching branch.
  10. Select Save & close.

The branching router icon appears on the canvas. Select it to edit the branching. To add steps to a branch, select the plus sign (+) on the branch.

Move steps

To move a step, drag it to a new position on the canvas, including into another branch. Mappings and filters move with the step, but you built them against the data at the previous position, so open the step and check its mapping after you move it.