Teneo Developers

Safetynet

Sometimes your bot will not understand what the user says. It is thus important that your solution contains a fallback flow that deals with user inputs that are not understood. In Teneo, we call this flow a Safetynet flow.

Matches anything and is tested last

The Safetynet flow consists of a trigger with a star (*) and _%$QUESTION as a language condition. The reason for this is that the Safetynet flow needs to be true for any input. To work as intended, Teneo must test all other triggers before falling back to the Safetynet trigger. The Safetynet trigger must thus be placed at the bottom of the trigger ordering.

safetynet-script

A flow like any other flow

Apart from having a very generous language condition, a Safetynet flow is like any other flow. It may be triggered when there is no other active flow in process, or in the middle of some other flow as in the following example:

User: I'd like to order a coffee.
Bot: Ok, what coffee would you like?

User: ajkfhh (the coffee order flow is interrupted and the Safetynet is triggered)
Bot: I'm sorry but I didn't get that. (Safetynet response is given)

Bot: Let's continue with your order. Which coffee would you like? (the coffee order flow is resumed)

The same Safetynet flow may thus cater to non-understood inputs in all sorts of different contexts!

Activate in Tryout

You can trigger the Safetynet flow in Tryout by following these steps:

  1. Click on the Tryout to start a conversation.
  2. Write something nonsensical, like: ajkfhh.