« Return to Thread: Pickup Line Puzzle

Pickup Line Puzzle

by drwallace :: Rate this Message:

Reply to Author | View in Thread

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/

 « Return to Thread: Pickup Line Puzzle