[pandorabots-general] How to match in topic
Chris Fellows
chrisc_fellows at yahoo.com
Thu Feb 1 12:01:28 PST 2007
Hello,
Just discovered pandora's bots and mighty sweet.
As a way of organizing material, I've grouped almost everything into topics. But some categories span multiple topics. I'd rather not duplicate the code across files (and thus have to maintain in multiple places).
If a user asks a question in one topic that does not match, but a match does exist in another topic, how can I make sure the bot will pull from the matched category in the other topic (and ideally switch topics to the matched topic)?
Also, is there a way of matching existing topics?
ex
User: I'd like to know about money.
<category>
<pattern>I would like to know about *</pattern>
<template>
<think>
if topic name="<star/>" then
<set name="topic"><star/></set>
</think>
Sure, what would like to know about </star>.
</tempate>
Thank you for all input.
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.pandorabots.com/pipermail/pandorabots-general/attachments/20070201/ba894efb/attachment.html
More information about the pandorabots-general
mailing list