The “Condition” operator within the flow-builder allows you to experiment with a wide range of options by putting conditions to allow or deny an action from basically happening.
The range of actions that can be achieved with such flexibility is limited only by imagination!
On creating a Single Channel Route and selecting Condition, there are a few components that you will see:
To understand this better, let’s have a look at the options we have here.
Key field allows you to select a field or a component within a notification (it may even be a component within the payload, not just the notification content!)
On collapsing the menu, you can see the following options:
Destination refers to the end-point or recipient of the notification.
A destination may be anything from:
The option Country allows you to apply a condition to any notification which is directed towards a specific destination. This is identified by the country code of a phone number. The implications of the same can be many, based on how the redirections are done.
From blocking entire traffic to specific countries to re-directing the traffic through specific operators, the options are limitless.
A Variable (placeholder, dynamic or replaceable parameters) is a component within a message that has user-specific details that are unique.
Based on placeholder data, Fyno has the capacity of implementing rules. This can be anything from identifying OTP data and re-routing through a premium provider or blocking explicit or spamming content which is not allowed.
An Operator helps to apply a condition on the Key and return the desired value or outcome.
Operators that can be used on Fyno’s application are:
These operators, in combination with the Key field, help apply rules that will help eventually affect the output and consequent action.
The Value lets you input the “true” value that you want to base your action on, thus directing the entire rule, to a result.
To help you understand better, let’s take an example of the same with the other fields Key and Operator in play.
Every condition that is defined or written will have 2 outcomes:
On setting the factors governing any Condition, the outcome based on if that condition is “True” or “False” will need to be defined.
This is done very simply by providing you with the below options in both scenarios:
Let’s take an example to understand how Conditions work within Routing.
In this scenario, our problem statement is:
“Block traffic towards a country, Belgium, without any other country’s traffic affected.”
The way to achieve this is by:
This will then show you the actions you can do if the Condition is “True” or “False”