RE: [alicebot-developer] Problem with <if> tag
Hi again
Well, I have the following code. What I want to do with it is in comments:
<topic name="Intro">
<category>
<pattern>My name is *</pattern>
<template><srai><star/> </srai></template>
</category>
<category>
<pattern>* </pattern> ---- what ever the user replies in the above question the bot will reply one of the following. However the problem is when the user replies "I am John" for example, which conflicts with the pattern below.--
<template>
<random>
<li>Nice to meet you <star/><think><set name="name"><star/></set></think>. May I also ask your age?</li>
<li>Hi there <star/><think><set name="name"><star/></set></think>. May I also ask what your age is</li>
<li>Its is good to see you <star/><think><set name="name"><star/></set></think>. Would you mind if I 'll also ask your age</li>
</random>
</template>
</category>
<category>
<pattern>I am *</pattern>
-- I need a <that> tag here to distinguish this pattern with the case where the user types "I am john" in the previous question. However the problem is what kind of previous utterance to use in the <that> tag since the robot previous utterances are generated randomly. Any ideas please help!!!!!!!!---
<template>
<random>
<li>Great <get name="name"/>, would you like me to explain you how the system works</li>
<li>OK <get name="name"/>, would you like me to tell you how the system work</li>
<li>Great <get name="name"/>, would you like to know how the system works</li>
</random>
</template>
</category>