States

Description

With States, the admin can limit the number of valid Intents. Only valid Intents for the current State the conversation is in can be detected.

๐Ÿ“˜

Example of How States Work

The admin has defined three States:

  • start
  • ordering
  • finished

The admin could now configure that the user can only say "I want to order a pizza" when they're in the start State, as it wouldn't make sense in another State. Similarly the sentence "When will my order arrive" could trigger different outputs depending on the State the conversation is in.

If a user would trigger an intent, but that intent is not valid for the current state "intentOutOfState", ci will contain the intent name. If no invalid intent is triggered "intentOutOfState" is null.

You can access "intentOutOfState" with:

ci.intentOutOfState

Did this page help you?