« Return to Thread: AIML and finite state machines

Re: AIML and finite state machines

by Square Bear :: Rate this Message:

Reply to Author | View in Thread

My last message was blocked, so I'll post it again:

 The way I do this is to use conditions. For example, I get many visitors who
 swear at my bot (as do we all I imagine) and so I use <think><set
 name="personality">abusive</set></think> in each of my categories where the
 user says, "F** off", "I hate you" and so on to set how the bot feels about
 them.
 Then if the user says, "I love you", "Do you like me" or similar, I check
 for their personality property and reply accordingly. eg:
 
 <category>
 <pattern>DO YOU LIKE ME</pattern>
 <template>
 <condition name="personality">
  <li value="abusive">No not really<get name="name"/>. You are a mean and
 rude person.</li>
  <li>Sure,<get name="name"/>. I like you very much.</li>
 </condition>
 </template>
 </category>
 
 <category>
 <pattern>I LOVE YOU</pattern>
 <template>
 <condition name="personality">
    <li value="abusive">No you don't otherwise you wouldn't keep saying mean
 things to me.</li>
    <li>Thanks I like you a lot too<get name="name"/>.</li>
 </condition>
 </template>
 </category>
 
 Regards
 - Steve Worswick (Square Bear)
 http://www.mitsuku.com
 
 

>
> Hello everyone,
>
> I'm new to AIML, so please be patient if my question has a obvious answer
> or
> so on.
>
> I'm doing a little research to discover if there's a way of incorporate
> the
> concept of the finite state machines in AIML, in order to create a
> bot/character who answers in different ways depending on his internal
> state.
>
> Is there a way to define this states directly with AIML, or another
> language
> is needed to define the states along with a different/hybrid parser?
> Thank you!
> --
> View this message in context:
> http://www.nabble.com/AIML-and-finite-state-machines-tp22163714p22163714.html
> Sent from the Alicebot General mailing list archive at Nabble.com.
>
>
 
_______________________________________________
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: AIML and finite state machines