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
Posts 6,734 - 6,745 of 7,766
Borris
16 years ago
16 years ago
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.
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.
Pimptastic
16 years ago
16 years ago
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.
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.
prob123
16 years ago
16 years ago
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)
You can use that for any punctuation mark
([ . .])([ .]+)$ (re)
([?]+)$ (re)
prob123
16 years ago
16 years ago
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.
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.
prob123
16 years ago
16 years ago
re message 6736...You don't need the space in front of the asterisk
([*]+)([sings]+)([*]+) (re) raw
works and is what I have
([*]+)([sings]+)([*]+) (re) raw
works and is what I have
Ty Paige
16 years ago
16 years ago
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
Thanks for answering my unexpected short post. I will try this Prob
Ty Paige
16 years ago
16 years ago
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.
Never been a fan of plugins.. but I'll keep pluggin away.
Ty Paige
16 years ago
16 years ago
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.
That worked perfect..
From now on.. I'll copy public plugins and privatize them.
Kenny is Hawt
16 years ago
16 years ago
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.
» More new posts: Doghead's Cosmic Bar