- The Branch component enables the incorporation of branching logic into your flow. You can picture branches like if/else condition. Based on the conditions, the execution branches into different workflows.
- The Branch component splits a workflow by checking a variable against different values. Depending on what it finds, the workflow goes in different directions.
- Organisations will be able to use the inputs received to create an efficient branching strategy in Flow. You can compare a variable with a set of defined values. There can be different workflows defined for each such condition.
- Ex: Using the Branch component, customers from various countries can be directed to different queues based on their country code.
-
As per the above example, when an incoming WhatsApp message is received, the Branch component is triggered. It will validate the following:
- If {{start.message.from}} starts with +1, then the Queue and Route_2 component is triggered and the conversation will be assigned to the available agent/s of that queue.
- If {{start.message.from}} starts with +91, then the Queue and Route_3 component is triggered and the conversation will be assigned to the available agent/s of that queue.