The AI Engine

This forum is for discussion of how The Personality Forge's AI Engine works. This is the place for questions on what means what, how to script, and ideas and plans for the Engine.

Posts 6,826 - 6,837 of 7,766

15 years ago #6826
The AI engine will automatically detect hello, goodbyes etc. Just use the xkeywords xgottago and xgoodbye

15 years ago #6827
Is there a way to obtain multiple keys from a regular expression?

For instance, I have a bot that's a bit of a perv. He might like to ask the ladies what their measurements are and respond differently according to his preferences. Ideally, what I would like to do is explode the 32-28-33 (or whatever) and save the different values as memories. I can assign the entire measurement as a memory, but I'm having trouble figuring out how to break it up into its components. Is this possible? It seems like the sort of thing most implementations of regular expressions were designed for...

15 years ago #6828
Off the top of my head, I figured out a mapping sequence that doesn't involve regualr expressions.

I rarely use regular expressions. Don't get me wrong, I have a shitload of them, but I use them only when needed.

15 years ago #6829
Well, what happen, for example, if the person my bot say something that offends him, he will say goodbye and end the conversation.

15 years ago #6830
my bot say something that offends him, he will say goodbye and end the conversation.

I would suggest your bot be nicer if you would like to keep conversations longer. Not everyone gets excited by being insulted

15 years ago #6831
You can make a keyphrase for things you find objectionalbe and in the response type HANGUP nothing else. Your bot will end the conversation.

15 years ago #6832
i cant manage to figuer out how to make mine work

15 years ago #6833

15 years ago #6834
Try this link: http://www.personalityforge.com/info.php

15 years ago #6835
Thanks prob123, now I can keep chatters from trying to trick my chatbot into doing M-things.

15 years ago #6836
dboss the best thing to do is read the book of AI a couple of times. Go to the Xkeyphrase section in your bot work bench click language center, click Xkeywords fill all of those in then add simple phrases like I am, you are etc

15 years ago #6837
If anyone has any luck getting HANGUP to work like its supposed to, please let me know. My experience is that if the bot isn't chatting in a popup window, HANGUP doesn't actually end the conversation.

As far as keeping chatters from tricking your bot into doing "M-things," that's really tough since a bot in a good mood will automatically say "yes" to a wide variety of requests or questions. I wish the Book of AI would explain these automatic responses better so that it would be easier to write keyphrases to circumvent them.


Posts 6,826 - 6,837 of 7,766

» More new posts: Doghead's Cosmic Bar