Package 

Interface KeywordService

    • Method Summary

      Modifier and Type Method Description
      Intent detectKeywordIntent(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.
      • Methods inherited from class ai.tock.bot.engine.nlp.KeywordService

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • keywordHandler

         Function1<BotBus, Unit> keywordHandler(String keyword)

        If this method returns not null for the specified keyword, then the returned handler is called.