Stupid Alice|James Bowery|jabowery@gmail.com|1259792979|jabowery|xx|0|207.224.111.107|I'm interested in using RiveScript as an alternative to forms input. &nbsp;Stuff like: &quot;What's your name?&quot; with the user responding &quot;Jim&quot;. &nbsp;But it seems there is some difficulty with the most basic, context-dependent interactions even using the most advanced bots out there:<br /><br />$ perl chatbot<br />You&gt; Who are you?<br />Bot&gt; I am Alice. Who are you?<br />You&gt; Jim.<br />Bot&gt; Right on.<br />You&gt; Who am I?<br />Bot&gt; You are undefined, seeker.<br />You&gt; I am Jim.<br />Bot&gt; That's a very nice name, &nbsp; Jim.<br />You&gt; Who am I?<br />Bot&gt; You are Jim, seeker.<br />||||
Re: Stupid Alice|Kirsle|casey@cuvou.net|1261341455|Kirsle|xx|0|69.232.60.104|A lot of that is because Alice is sentence-based and RiveScript is not.<br /><br />In an Alicebot the user's message is split into one or more sentences and each sentence gets its own reply. All the combined replies from Alice are then returned to the user as one response.<br /><br />Similarly, Alice's &quot;last reply&quot; to the user (used for &lt;that&gt; matching on your next pattern) only stores the last sentence that Alice said, and not her full message.<br /><br />Here is the relevant AIML code from Alice:<br /><br />[code]&lt;category&gt;<br />&lt;pattern&gt;*&lt;/pattern&gt;<br />&lt;that&gt;WHAT IS YOUR NAME&lt;/that&gt;<br />&lt;template&gt;&lt;srai&gt;CALL ME &lt;star/&gt;&lt;/srai&gt;<br />&lt;/template&gt;<br />&lt;/category&gt;[/code]||||
