<?xml version="1.0" encoding="UTF-8"?>
<aiml version="1.0">
<category>
<pattern>*</pattern>
<template>
<condition name="maxtries">
<li value="1">Try number <set
name="maxtries">2</set><srai>OM pickup</srai></li>
<li value="2">Try number <set
name="maxtries">3</set><srai>OM pickup</srai></li>
<li value="3"><srai>OM Too many tries</srai></li>
<li>Try number <set name="MAXTRIES">1</set></li>
</condition>
</template>
</category>
<category>
<pattern>OM pickup</pattern>
<template>
<random>
<li>Pickup1</li>
<li>Pickup2</li>
<li>Pickup3</li>
</random>
</template>
</category>
<category>
<pattern>OM Too many tries</pattern>
<template>
Too many tries
</template>
</category>
</aiml>
--- "Dr. Rich Wallace" <
drwallace@...> wrote:
> I've got a puzzle for AIML writers.
>
> Suppose I have a bot that has N pickup lines in an
> ultimate default category:
>
> <pattern>*</pattern>
> <template>
> <random>
> <li>Pickup1</li>
> <li>Pickup2</li>
> ...
> <li>PickupN</li>
> </random>
> </template>
>
> The desired goal is to make the bot respond with a
> different, specific
> answer (not one of the pickup lines) if the bot
> says any of the
> pickup lines 3 times in a row:
>
> Client: XXX
> Bot: Pickup1
> Client: XXX
> Bot: Pickup7
> Client: XXX
> Bot: Pickup3
> Client: XXX
> Bot: I'm sorry I wasn't able to help you. Please
> try calling customer service.
>
> Assume the bot has a lot of other AIML content so it
> is possible to
> have lots of "normal" conversations without
> activating the ultimate
> default category 3 times in a row.
>
> Can someone think of a way to make the bot "break
> out" of the pickup
> lines after 3 in a row? Or in general, K in a row,
> where K is any
> positive integer?
> _______________________________________________
> This is the alicebot-general mailing list
> Reply to
alicebot-general@...
> Unsubscribe and change preferences at
>
http://list.alicebot.org/mailman/listinfo/alicebot-general> Learn netiquette at
>
http://www.dtcc.edu/cs/rfc1855.html> Learn to read at
http://www.literacy.org/>
_______________________________________________
This is the alicebot-general mailing list
Reply to
alicebot-general@...
Unsubscribe and change preferences at
http://list.alicebot.org/mailman/listinfo/alicebot-generalLearn netiquette at
http://www.dtcc.edu/cs/rfc1855.htmlLearn to read at
http://www.literacy.org/