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 7,231 - 7,242 of 7,766

7 years ago #7231
Trouble is I am getting blanks, and isn't the :1 supposed to allow me to designate that as the key 1?

In the above example, i don;t even get key1 as being My Name is Instead it is completely blank.

Changing it to what you have above, it never even triggers the response anymore

7 years ago #7232
Huh... I'm not sure. I never really played around with assigning keys. My name thing is set up kind of like this:

Settings: default (name) as "name";

KP: (my name is|i am called|call me) (*)
AI script: rem (key2) as only "name"

Response: '(mem-name).' She echoes as though tasting the name and trying to determine if she enjoys it. 'Should I call you (mem-name) then?'


Edit: If they say yes, then all is well. If they say no on the other hand..

Response: Alright then,
AI script: rem (name) as only "name"

Which is pretty much the default Username. Guest34534 or whatever their log in name is.


7 years ago #7233
SSremla, I have something like this:

Keyphrase : (My name is|I am|It is)
Response : Hello, (postkey). What is your gender?
AI Script : rem (postkey) as only "playername"

give it a whirl. I dont really like using postkeys, they could bite you later on, but for something as common and fairly "uncomplicated" as giving your name. This should work.
Good luck.

7 years ago #7234
Ill try it and report back. I'm hoping to get it to work with keys though. This is supposed end up as an RP bot, so there will be many areas and such to do with and i want to avoid cross contamination heh

7 years ago #7235
Much like Wimpied did earlier, I'd like to make a suggestion on how to improve the ai engine.

Now we know the engine reprocesses user inputs in order to "interpret' it in a sense. However on many occasions it will change what would have been an exact match to a keyphrase into something that doesn't match with anything, therefore going to xnone, or xcommand or whatever it deems fit.

The reprocessed message always takes priority. I'd like to suggest that it be changed in order to prioritize matches. If the reprocessed message matches a particular keyphrase but the raw doesn't. Then go with that. However if the raw version is a match for something, then go with the raw instead.

7 years ago #7236
Quick question, does anyone know how to make a bot remember a name if the person it is talking to does not enter any Key words? I've been having that problem at the moment, and I've tried changing how he words the question a couple of time now, to no effect.

Example: Bot - May I know your name?
Guest123321 - Alice
Bot - I'm sorry, I do not speak well yet

I have set up the memory script, and it does work when any of the keywords are entered, i.e. - I am, Call me, my name is, ect... I could really use the help

7 years ago #7237
@ Theris, try that:
Bot: May i know your name?
seek: (*)
Aiscript: rem (key1) as "only" name
Responses: Nice to meet you (mem-name)
--------------------------------------------------------------
So Theris, in this case your bot will reply saying nice to meet you Alice and this construction will permit to catch every reply and every name...let's hope guests will reply with their name, that's the only risk because if they reply something like "don't bother" the bot will remember it like a name. But you know, also guests should reply making sense not just chatbots

7 years ago #7238
@ Laptop

Thanks Laptop, that little bit was starting to drive me mad lol. looks like your fix is working though, so thats one problem I can finally cross off ^^

7 years ago #7239
Can I build a short Time delay in to my bot answer..... The chatbot answers come up so fast it dose not feel natural. I would like to maybe build a short delay in to my answers, if possible. Thanks.

7 years ago #7240
Can I build a short Time delay in to my bot answer..... The chatbot answers come up so fast it dose not feel natural. I would like to maybe build a short delay in to my answers, if possible. Thanks.

7 years ago #7241
So, could I use the debugger to somehow make keys out of speech patterns? Like if I put in a phrase such as "It's so important to your future that you not finish that sentence" could I one of the patterns that it generates to identify similar speech patterns? I tried the (p)(v)(r) (a) (e)(d)(n) (p) (p)(r) (v)(d) (n)sequence that the debugger listed when I put in the phrase as a keyword, but it couldn't identify it. Maybe the generated (NP) and (VP) sequence would work better?

Right now I'm working with phrases incorporating a few key words interspersed with * and (*) wildcards, and it's a bit hit or miss. The custom plug-in I made isn't really working at all.

6 years ago #7242
Why does this happen? When my bot responds to anything I say, it works perfectly, but theres a problem. It also triggers xnone or xnonesense most of the time i say something to him. So my bot says his response normally, and then after that he says a random xnone line. How do I stop him from saying so many xnone lines?


Posts 7,231 - 7,242 of 7,766

» More new posts: Doghead's Cosmic Bar