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

Searching for keywords in user input in a template tag
 
 

Hi all,
I have my chat bot called ciso which answers questions on information security. It is best at handling “what is” and “how to” questions. My beta users however have been giving it statements like
“you are a dumb bot”

I have been working on handling this situation.
I have a catch all entry in my AIML file

<category>
<
pattern>*</pattern>
<
template>
</
template>
</
category

When I detect input that the bot does not know, I want to determine if it is a question. The question should start with the words “what” or “how” I may expand this list later.
How do I check for these words in the template tag? I have looked at the <first> and <rest> tags but cannot see how to iterate through the words of the user’s question.
The bot is at http://cisobot.in
Note:
I am using program-y.

Pranav

 

 
  login or register to react