O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required