MatchType type

Supported rules for matching a users utterance.

  • {RegExp} - A regular expression will be used to match the users utterance.
  • {string} - A named intent returned from a recognizer will be used to match the users utterance.
  • {(RegExp|string)[]} - An array of either regular expressions or named intents can be passed to match the users utterance in a number of possible ways. The rule generating the highest score (best match) will be used for scoring purposes.
type MatchType = RegExp | string | undefined[]