tock / ai.tock.bot.engine.nlp / NlpListener / findIntent

findIntent

open fun findIntent(userTimeline: UserTimeline, dialog: Dialog, event: Event, nlpResult: NlpResult): IntentAware? (source)

This method is automatically called by the bot after a NLP request in order to select an intent. Overrides it if you need more control on intent choice.

If it returns null, ai.tock.bot.definition.BotDefinition.findIntent is called.

Default returns null.