What I had in mind was,
Client: xxx
Bot: Pickup Line (1st try)
Client: xxx
Bot: Pickup Line (2nd try)
Client: Hello
Bot: Hi there! (normal chat restored)
Client: xxx
Bot: Pickup Line (1st try)
Client: xxx
Bot: Pickup Line (2nd try)
Client: xxx
Bot: Pickup Line (3rd try)
Client: xxx
Bot: Too many tries.
In other words, drop out of pickup lines after 3 consecutive default matches.
Whenever there is a non-defualt match (like "HELLO"), then reset the
pickup counter to 1.
Does that make sense?
On Wed, May 21, 2008 at 5:23 PM, mehri <
foreverlinux@...> wrote:
> <?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-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/