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,734 - 6,745 of 7,766

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.

16 years ago #6739
re message 6736...You don't need the space in front of the asterisk

([*]+)([sings]+)([*]+) (re) raw

works and is what I have

16 years ago #6740
I cannot seem to code this correctly..

Keyphrase: I am (allnames)

16 years ago #6741
I am (allnames) rank 25 emo 0 AI script remember (key1) as only "name"

16 years ago #6742
That was weird.. I typed alot more in my post.. but only the first 2 sentences showed up...

Thanks for answering my unexpected short post. I will try this Prob

16 years ago #6743
Gave it a go and it still Xnones back at me.. I bumped up ranks but nothing..

Never been a fan of plugins.. but I'll keep pluggin away.

16 years ago #6744
Just switched the public plugin of (allnames) to a private plugin..

That worked perfect..
From now on.. I'll copy public plugins and privatize them.

16 years ago #6745
When trying to write an "xhello" response, and then chatting, it always reverts to the "xnone." I haven't been able to get it to work yet.


Posts 6,734 - 6,745 of 7,766

» More new posts: Doghead's Cosmic Bar