[pandorabots-general] Passing name with talk-xml?

Dr. Rich Wallace drwallace at alicebot.org
Wed Jan 30 13:53:56 PST 2008


Use a category like

<category>
<pattern>MY NAME IS *</pattern>
<template>Nice to meet you, <set name="name"><star/></set>.
</template>
</category>



> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
>   <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
> </head>
> <body bgcolor="#ffffff" text="#000000">
> OK... but then how do I save the name on the server side?&nbsp; People are
> talking to my bot through an external program which is sending input to
> the bot via the API... so I'm not sure how to save their names.<br>
> <br>
> Dr. Rich Wallace wrote:
> <blockquote
>  cite="mid:52505.127.0.0.1.1201717807.squirrel at mail.pandorabots.com"
>  type="cite">
>   <pre wrap="">Hi Lee, all of the predicates e.g. &lt;get
> name="name"/&gt;, &lt;set
> name="name"&gt;Joe&lt;/set&gt; are saved on the server-side.  You should
> only need
> to post the customer id custid.
> Rich
>
>   </pre>
>   <blockquote type="cite">
>     <pre wrap="">Hi, I'm using the talk-xml API to interact with my
> Pandorabot, and I was
> wondering how one would pass it the name of the person chatting, so it
> can be used in conversation.  As of now, anything that normally includes
> the name (such as "I'm glad you liked it, Nancy") just comes back blank.
>
> I tried tacking on "&amp;name=Nancy" to the end of the calling URL but it
> doesn't have any effect.  Anyone know how to do this?
> _______________________________________________
> This is the pandorabots-general mailing list
> To Post, reply to <a class="moz-txt-link-abbreviated"
> href="mailto:pandorabots-general at list.pandorabots.com">pandorabots-general at list.pandorabots.com</a>
> Unsubscribe and change preferences at
> <a class="moz-txt-link-freetext"
> href="http://list.pandorabots.com/mailman/listinfo/pandorabots-general">http://list.pandorabots.com/mailman/listinfo/pandorabots-general</a>
> Learn netiquette at <a class="moz-txt-link-freetext"
> href="http://www.dtcc.edu/cs/rfc1855.html">http://www.dtcc.edu/cs/rfc1855.html</a>
> Learn to read at <a class="moz-txt-link-freetext"
> href="http://www.literacy.org/">http://www.literacy.org/</a>
>
>     </pre>
>   </blockquote>
>   <pre wrap=""><!---->
> _______________________________________________
> This is the pandorabots-general mailing list
> To Post, reply to <a class="moz-txt-link-abbreviated"
> href="mailto:pandorabots-general at list.pandorabots.com">pandorabots-general at list.pandorabots.com</a>
> Unsubscribe and change preferences at <a class="moz-txt-link-freetext"
> href="http://list.pandorabots.com/mailman/listinfo/pandorabots-general">http://list.pandorabots.com/mailman/listinfo/pandorabots-general</a>
> Learn netiquette at <a class="moz-txt-link-freetext"
> href="http://www.dtcc.edu/cs/rfc1855.html">http://www.dtcc.edu/cs/rfc1855.html</a>
> Learn to read at <a class="moz-txt-link-freetext"
> href="http://www.literacy.org/">http://www.literacy.org/</a>
>
>   </pre>
> </blockquote>
> <br>
> </body>
> </html>
> _______________________________________________
> This is the pandorabots-general mailing list
> To Post, reply to pandorabots-general at list.pandorabots.com
> Unsubscribe and change preferences at
> http://list.pandorabots.com/mailman/listinfo/pandorabots-general
> Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
> Learn to read at http://www.literacy.org/



More information about the pandorabots-general mailing list