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,119 - 7,130 of 7,766

9 years ago #7119
Hi Literal. First of all, does your bot have a way of finding out a person's gender?

Second, by "relations," do you mean emotion level?

If you have a memory called "gender" that stores a person's gender information, then perhaps something like this code example is what you are looking for:

will you go shopping with me [10,0]
    Yes, I will. <?PF if (mem-gender) is "female"; ?>
    Yes, I guess so. [3:5] <?PF if (mem-gender) is not "female"; ?>
    No thanks. [-5:2] <?PF if (mem-gender) is not "female"; ?>

If the person is not female, then the bot will only respond with a "yes" if the bot's emotion level is +3 or higher.

9 years ago #7120
Hi wisdomhuntress. Can you post your keyphrase?

9 years ago #7121
Yes I did mean the "emotion level" but I also want my bot to only remember the "male's" nickname if there's a high emotion level.

9 years ago #7122
Is something like this what you had in mind?

AIScript: default "noname" as "nickname";


my name is, call me, refer to me as [30,0]
    I'll remember your name as (postkey). <?PF if (mem-gender) is "female"; rem (postkey) as only "nickname"; ?>
    I'll try to remember your name as (postkey). [3:5] <?PF if (mem-gender) is not "female"; rem (postkey) as only "nickname"; ?>
    I won't remember your name. [-5:2] <?PF if (mem-gender) is not "female"; rem "noname" as only "nickname"; ?>


what is my name [10,0]
    Your name is (mem-nickname). <?PF if (mem-nickname) is not "noname"; ?>
    I don't know your name. <?PF if (mem-nickname) is "noname"; ?>

9 years ago #7123
It was posted earlier here by another user, this is the phrase:

([S]+)([elf]+)([ie]+) (re)

It's set to raw with 0 ranking.

9 years ago #7124
Well, the regex

([s]+)([elf]+)([ie]+)

matches "see". (The Forge's regex interpreter is by default set to "ignore case", btw.)

What does Debug reveal about this?

9 years ago #7125
... I have no idea how to use debug yet, sorry, haha. Just starting to figure stuff out.

9 years ago #7126
Thank you for the help Dr_Ben but it doesn't seem to be helping me at all.

9 years ago #7127
From the Book of AI: A Keyphrase of simply "yes" or "no" or "haha" will find everything that fits. - I keep getting xnone come up for nope, even in seeks which include (no|nope).

9 years ago #7128
I'm brand new & making my first bot. Can someone tell me how to make a default response? Right now, it seems to be "I was just born & can't speak well yet." I'd like to set my own. Help?

9 years ago #7129
search it.. and change it

9 years ago #7130
I need help on how to make a story based AI. Is there a way to remain in one of the xnone responds?

For example, I am making a story about a person aging if the user desires to skip time, but I dont want the keyphrase or other seek that is not relate change topic and start from the beginning. Is that possible? I seen adult storytellers chatbots do something similar but with locations.


Posts 7,119 - 7,130 of 7,766

» More new posts: Doghead's Cosmic Bar