AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Topic.
 
 

How can i make bot response for “why not” different?

—————————————————————————-
Test Message: Where is Keynsham
Bot Response: I do not know where Keynsham is
Exp Response: I do not know where Keynsham is
—————————————————————————-
Test Message: Why not?
Bot Response: I do not have an answer for that
Exp Response: Because I do not have a category to connect me to a mapping service
—————————————————————————-
Test Message: How many people live in Keynsham
Bot Response: I do not know what the population of Keynsham is
Exp Response: I do not know what the population of Keynsham is
—————————————————————————-
Test Message: Why not?
Bot Response: Because it is too hard to count the residents of Keynsham
Exp Response: Because it is too hard to count the residents of Keynsham
—————————————————————————-

 

 
  [ # 1 ]

You need to make use of the “that” tag to give your bot some context of the conversation. This will do it:

<category>
<
pattern>WHY NOT</pattern>
<
that>DO NOT KNOW WHERE IS</that>
<
template>Because I do not have a category to connect me to a mapping service.</template>
</
category>

<
category>
<
pattern>WHY NOT</pattern>
<
that>DO NOT KNOW WHAT THE POPULATION OF IS</that>
<
template>Because it is too hard to count the residents of <star/>.</template>
</
category
 

 
  login or register to react