Conditional branching allows users to create different paths in their tool steps based on specific conditions. When you set up a branch, you can define criteria using rules, code, AI prompts, or fallback options. Each branch is assessed independently, meaning multiple branches can run if their conditions are met. This feature enhances the flexibility of your tools, allowing for more complex workflows.

How to set up Branching in a Tool

  1. Add a Branch by clicking the button to create a new Tool step, then navigate to the Flow Controls tab to select a Branch
  2. Add new branches by clicking ’+ Add branch’
  3. For each branch, choose the Assessment mode for your branch
  • Rules: allows you to make a logical assessment between inputs, such as contains, greater than, etc.
  • Code expression: will run based on whether the code returns true or false
  • Let AI decide: lets you write a plain text prompt, which returns true or false to run the branch based on your instructions. You can include variables using the variable selector menu.
  1. Include a branch with the Assessment mode set to ‘Fallback’, this means the step will run if no other steps return true.
  2. Add Tool steps to each of your branches, then run the Tool to test

Frequently asked questions (FAQs)