« Return to Thread: Pickup Line Puzzle

Re: Pickup Line Puzzle

by drwallace :: Rate this Message:

Reply to Author | View in Thread

Yes, I'd like to see it.  Is it too long to publish here?

On Wed, May 21, 2008 at 4:28 PM, Mike Procter <mikeprocter@...> wrote:

> I did find a way to do this, but it was somewhat involved and somewhat
> ugly. Basically I set up a topic called PREPROCESSOR with a category
> with pattern "_" to capture all input, do some pre-processing, then
> restore the actual topic and SRAI the input to continue on as normal. On
> "returning" from the SRAI it saves the current topic before setting it
> back to PREPROCESSOR.
>
> This allows the AIML to track the input during the pre-processing, keep
> track of the input count, recognize consecutive events, etc.
>
> Let me know if you'd like to see the aiml.
>
> Mike
>
>
> -----Original Message-----
> Date: Wed, 21 May 2008 11:42:56 -0400
> From: "Dr. Rich Wallace" <drwallace@...>
> Subject: [alicebot-general] Pickup Line Puzzle
> To: "Alicebot and AIML General Discussion"
>        <alicebot-general@...>
> Message-ID:
>        <d9aba65c0805210842v4254d712hfd437c2257c61c09@...>
> Content-Type: text/plain; charset=ISO-8859-1
>
> 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?
>
>
> ------------------------------
>
> _______________________________________________
> alicebot-general mailing list alicebot-general@...
> http://list.alicebot.org/mailman/listinfo/alicebot-general
>
>
> End of alicebot-general Digest, Vol 28, Issue 8
> ***********************************************
>
> _______________________________________________
> 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/

 « Return to Thread: Pickup Line Puzzle