Replying to a human's question

Now that we've initialized the intelligence of the chat bot and prepared it to greet the human user, it's time to guide the chat bot on how to think about a user's question so that the chat bot may offer a sensible reply.

The replies that the chat bot will send to the human user are limited to those found as the values in the knowledgeBase map of the AgentCase struct. If the human user asks a question outside the scope of what the chat bot knows (the knowledge corpus), it will simply reply with the message "I don't know the answer to that one."

To analyze the user's question and provide the best reply for it, we will be using the nlp package, which contains a collection of machine learning algorithms that can ...

Get Isomorphic Go now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.