Decisions & Conditions

What is a decision/condition?

A decision is an activity that splits a flow into two or more paths. Each path has a condition attached to it, which is a rule that checks the data in the flow, such as the customer's intent, an order status, or whether a value exists. When the flow reaches a decision, it follows the path whose condition is met.

How to create a decision

  1. Go to Flows.
  2. Open the flow you want to update.
  3. Click Edit.
  4. Click the + button where you want to add the decision.
  5. Select Decision from the list of activities.
  6. Give the decision a clear name so it is easy to understand what the decision is checking.
  7. Add the conditions that should decide which branch the customer follows.
  8. Click Save in the flow editor to save your changes.

How to add a condition to a decision

  1. Click the Edit button.
  2. Click on the + button below the decision you want to update.
  3. Choose the value you want the condition to check.
  4. Choose the operator for the condition, such as whether the value equals, contains, or does not equal another value.
  5. Enter the value the condition should match.
  6. Repeat these steps if the decision needs more than one condition.
  7. Click Save in the flow editor to save your changes.

How to delete a condition from a decision

  1. Click the Edit button.
  2. Click on the condition you want to remove.
  3. Click the delete icon next to that condition.
  4. Check that the remaining conditions still route customers correctly.
  5. Click Save in the flow editor to save your changes.

How to delete a decision

  1. Click the Edit button.
  2. Click on the decision you want to delete.
  3. Click the delete icon for the decision.
  4. Confirm that you want to delete the decision when prompted.
  5. Check the surrounding flow steps to make sure the flow still connects correctly.
  6. Click Save in the flow editor to save your changes.

Did this page help you?