Teneo Developers

Condition coding

Condition coding is the art of writing a (language) condition that recognizes enough user inputs to be efficient without being so unspecific that it becomes ineffective.

For example, if the user wants to add a Flow with an Intent Trigger that answers questions like What is the time? and the condition is (what+is+the+time), the Flow would not be triggered by a user input like Can you tell me what time it is?.

If the user widened the condition to (time), the Flow could be triggered by user inputs like What is the time? and Can you tell me what time it is?, but also by an input like At what time does the sale starts?.

In short, the trick is to be specific enough in the language condition for it to be useful for the purposes that the user have in mind for the Flow.

To help the user coding the conditions, Teneo Studio comes with a highly intelligent Condition editor that can generate conditions for the user if he provides some sample user inputs. Of course, the user will have to verify that the generated condition suits the specific needs and may have to tune it manually if it does not.

For information about the available operators for condition writing, please see the condition syntax summary and the condition reference manual.