[alicebot-style] How to cross match on topic?
Chris Fellows
chrisc_fellows at yahoo.com
Fri Feb 2 06:40:17 PST 2007
Hello,
Just discovered pandora's bots... very cool.
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 against all existing topics?
ex
User: I'd like to know about money.
<category>
<pattern>I would like to know about *</pattern>
<template>
<think>
if (existingTopics.contains("<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.alicebot.org/pipermail/alicebot-style/attachments/20070202/bef9f2d9/attachment.html
More information about the alicebot-style
mailing list