Package ai.tock.bot.engine.nlp
Interface KeywordService
-
- All Implemented Interfaces:
public interface KeywordService
-
-
Method Summary
Modifier and Type Method Description IntentdetectKeywordIntent(String sentence)If returns not null, a keyword is detected, and the returned intent is used to find the story. Function1<BotBus, Unit>keywordHandler(String keyword)If this method returns not null for the specified keyword, then the returned handler is called. -
-
Method Detail
-
detectKeywordIntent
Intent detectKeywordIntent(String sentence)
If returns not null, a keyword is detected, and the returned intent is used to find the story. Use Intent.keyword to redirect to the default keyword handler.
-
keywordHandler
Function1<BotBus, Unit> keywordHandler(String keyword)
If this method returns not null for the specified keyword, then the returned handler is called.
-
-
-
-