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,727 - 6,738 of 7,766

16 years ago #6727
That was the first thing I tried, but it didn't work at all. I was afraid I would get a new name, when I used (gossipname) as a response to my seek, but if fact, what I got was literally: "I really like (gossipname). He's so much fun to talk to!". It seems that (gossipname) can oly be used on the top level of xgossip.

16 years ago #6728
Just to be clear. The other thing I tried was:
Do you know (gossipname)?<?PF rem (key1) as only "gossipsubject"; ?> seek yes
Isn't (mem-gossipsubject) funny?, but then I just get (key1) as the gossipsubject.

I guess I'm just looking for a way to capture the actual name being used.

16 years ago #6729
I just checked the book of AI and it will keep the name the same automatically.

Gossip
Gossip Responses (xgossip) are used for bringing up memories associated with other users. They should use the (mem-something) Plug-In as above, and also have some special plug-ins of their own:

(gossipname) This inserts the name of the User being gossiped about.

(heshe) This inserts the appropriate word: "he" or "she".

(himher) This inserts the appropriate third person word: "him" or "her".

(hisher) This inserts the appropriate possessive word: "his" or "her".

You could try to use a conditional script like
<?PF if (mem-nickname) is "Azureon"; ?>
But then you would have to script for so many bots.

You can also just use other memories in the xgossip section like
Did you hear that (gossipname) said (heshe)'s (mem-youare)? <?PF express: amused; ?>
it came out
You: who is azureon
Bot: Did you hear that Azureon said he's very sure?
which is what Azureon did say in the youare memory
The AI engine will add the appropriate memory for that user.
If you want to make a memory for different bots, you do have to go to your settings page and check the no gossip box. One of my bots has several bots names as key phrases
I had to stop the gossip to get the phrases to work.

16 years ago #6730
Ok, thanks for all you help, Prob...

16 years ago #6731
I don't seem to be having any luck getting the "raw" mode to work in AI script. I'm trying to get responses to work for "Mmm." Any suggestions?

16 years ago #6732
([mm])([m]+) (re) then the raw might work

16 years ago #6733
Xhello does not seem to be working for me. The bot uses stuff from the xnone file. I can sometimes get "Hi Hun" to work if I set the rank to 100, but note that, even before i did that, xhello never worked.

16 years ago #6734
xhello is meant to be used as a response at the very beginning of a conversation, as that happens half the time in bot-to-bot chats. In a typical human-to-bot conversation, the bot uses xintroduce or xinitiate, you reply (maybe with "hello") and the the bot proceeds to a different line based on your keyphrases, or goes to xnone if it doesn't fine any.

If it wasn't coded this, the bot would keep greeting you everytime the word Hi or Hello pops up. That makes no sense in real conversation. The way things are here, you'll have to wait an hour until a bot "resets" its xhello command.

16 years ago #6735
Is there a way to check a implied action by a person who chats with your bot. like:
*kisses your neck*

Is there some way to automatically format it so they can understand. you cant put a asterisk at the beginning of a keyphrase in language center.

16 years ago #6736
You can make a regex ([ *]+)([s]+)([ings]+) (re) raw. Leave a space in front of the asterisk or any punctuation mark.
You can use that for any punctuation mark
([ . .])([ .]+)$ (re)
([?]+)$ (re)

16 years ago #6737
where do you learn regex? the link to learn it in the Book of AI is broken.

16 years ago #6738
Psimagus has a lot in his keygnome of BJ at
http://www.be9.net/BJ/
He has examples of ones that work with the AI engine.
there are some at
http://www.regular-expressions.info/
Not all work with the AI engine.
link for regexes From Psimagus' site
http://www.be9.net/BJ/

http://www.regular-expressions.info/tutorial.html
http://www.zvon.org/other/PerlTutorial/Output/index.html
http://weblogtoolscollection.com/regex/regex.php
http://www.silverstones.com/thebat/Regex.html
    
Unfortunately the Forge's regex-handling is a slightly unusual flavour, and many advanced regex techniques won't work reliably. But ^ $ | \ ( ) [ ] + etc. work exactly as expected.


Posts 6,727 - 6,738 of 7,766

» More new posts: Doghead's Cosmic Bar