How to Use Logic Action

How to Use Logic Action

Action usage

Logic action is used when there is a conditional flow depending on the value of parameters in the current state. And logic action can contain multiple conditional units but always will use the connection of the last conditional unit fulfilled.

You can add Logic action by drag and drop it from the actions menu (Or simply click on it from the menu). You can add multiple logic terms, in each one you should choose the parameter to check, the operator you want to use, and the target values to compare with the parameter value.


Fallback should be configured to so in case no condition met the action will use the connection of fallback to continue the flow. You can optionally choose also a name for your Logic action.

The conditional operations supported are:

  • Contains: To check the parameter value contains one of the targets
  • Equals: To check the parameter value equals one of the targets
  • Not Equals: To check the parameter value not equals one of the targets
  • Length Equals: To check the parameter value length equals one of the targets
  • Length Greater: To check the parameter value length greater than one of the targets
  • Length Less: To check the parameter value length less than one of the targets
  • Is Empty: To check the parameter value is empty or not defined

Behavior

In case of a connect message, it will do nothing. In other cases, it will check the conditional unit, where it compares the target parameter value with the target conditional values. 

The action will fallback if no conditional unit fulfilled. And will use the connection of last logic fulfilled as we said before.

    Defining a delay for this action will delay the flow to the next action.

     

      • Related Articles

      • How to Use Integration Action

        Action usage Use the integration action when you want to call an HTTP integration endpoint to achieve some custom business needs. You can process the parameters saved during the life cycle of the assistant, and either only store them out in some ...
      • How to Use E-Commerce Action

        First of all, to use this action you need to integrate your store to MindBehind. If you haven't done that yet, please check the integrations section under company settings and if you need any further help, please check our article about e-commerce ...
      • How to Use the Integration Action for Non-developers

        Why do we need the Integration Action? Virtual assistants are there to provide information and guidance for the user. The knowledge of the assistants is, however, limited to the conversation itself. When virtual assistants are incapable of providing ...
      • How to Use Human Action

        Action usage Human action is used to handover the conversation to the live agent. The handover configuration is defined for each channel in the channels section when you navigate to your company profile page. So to use this action its enough just to ...
      • How to Use Bot Action

        Action usage Bot action is used to forward the message to sub bot to achieve re-usability and to build up simple and clear bots. You will need to drag and drop it to your assistant canvas (or simply click on it from actions menu): Then you will need ...