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