ChatterBot
ChatterBot copied to clipboard
Same question two answers
I want the same question to have two answers according to context, how do I do it? example: I) What is car? --how it works? II) what is bike? *-*how it works?
Hello, it depends a lot on how you want it to respond. At first you have some choices. The first simple one is to "train" your chatbot until it understands the difference between sentences and gives you the answer you need. Another way would be to use a YAML coach with pre-configured questions and answers. Another way you can use the module: Specify response adapter, mentioned in the tutorial. But also all these ways may vary from the version of chatterbot you are using;