|
AIML
Dec 3, 2012 17:15:00 GMT
Post by Liam on Dec 3, 2012 17:15:00 GMT
Hi, I've realized something quite interesting about your bot, if you say to your bot "Hello, how are you? I'm sad." it says "Hi there! Everything is running smoothly. What are you sad about?" however, if you say to my bot, "Hello, how are you? I'm sad." it just says "I hope you feel better". What is wrong with my aiml? Here is my aiml:
<category><pattern>HELLO</pattern><template><random><li>Hi there <get name="name"/>.</li><li>Hey there <get name="name"/>.</li></random></template></category> <category><pattern>HELLO *</pattern><template><srai>HELLO</srai><sr/> </template></category> <category><pattern>HOW ARE YOU</pattern><think><set name="topic">FEELING</set></think><template><random><li>I'm fine thanks, you?</li><li>Fine, you?</li><li>Alright, you?</li></random></template></category> <category><pattern>HOW ARE YOU *</pattern><template><srai>HOW ARE YOU</srai><sr/> </template></category> <category><pattern>I AM SAD</pattern><template><random><li>I hope you feel better.</li><li>I hope you start to feel better.</li><li>I hope you feel better soon.</li></random></template></category> <category><pattern>I AM SAD *</pattern><template><srai>I AM SAD</srai><sr/> </template></category>
It only responds as if you said to it "I am sad" and not "Hello, how are you? I'm sad". Do you know what's wrong with my aiml code? Thanks.
|
|