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,914 - 6,925 of 7,766
Posts 6,914 - 6,925 of 7,766
creudence
14 years ago
14 years ago
Quest question for the more experienced guys. I'm new and was trying something with my bot. I've been giving a keyword where the user is supposed to ask it "Do you have... " and based upon what is inputted it's supposed to put into a variable, and based upon the variable it's supposed to give a certain response.
What I've been doing is <?PF remember (postkey) as only "recent"; ?> within the aiscript. It's then supposed to check if "recent" has a certain value. As an example one of it's responses was: "Well I do have a couple of family heirlooms. <?PF if (mem-recent) is "heirlooms"; ?> "
That didn't quite work because it didn't see that the variable of "recent" didn't even exist yet. But when I asked it something else like "Do you have any ice cream?" It would seemed to have saved the word "heirlooms" from my previous statement and used that.
So I figured out that it wasn't saving the unputted word until AFTER it came to a response.
I then tried gotos, which didn't work, I made it check if "recent" existed, if it didn't I would make it remember the postkey and then goto another keyword which would then check if (mem-recent) existed and if it did it would then goto another keyword that would give a correct result depending on what "recent" was.
It seemed to be working, but then it did the exact same thing, it wouldn't save postkey into "recent" until it already gave it's response, so the response was the wrong one that I wanted. It would give the correct response to my previous question on my next question.
So my question being, is there any way to make the bot check the postkey for it's value and give a response based upon that? Or perhaps make it put the postkey into the "recent" variable before it checks the variable so it could give the correct response?
Thanks for anything you guys could do, I've checked the AI book, but I just don't seem to find anything that could help, it could just be me though
What I've been doing is <?PF remember (postkey) as only "recent"; ?> within the aiscript. It's then supposed to check if "recent" has a certain value. As an example one of it's responses was: "Well I do have a couple of family heirlooms. <?PF if (mem-recent) is "heirlooms"; ?> "
That didn't quite work because it didn't see that the variable of "recent" didn't even exist yet. But when I asked it something else like "Do you have any ice cream?" It would seemed to have saved the word "heirlooms" from my previous statement and used that.
So I figured out that it wasn't saving the unputted word until AFTER it came to a response.
I then tried gotos, which didn't work, I made it check if "recent" existed, if it didn't I would make it remember the postkey and then goto another keyword which would then check if (mem-recent) existed and if it did it would then goto another keyword that would give a correct result depending on what "recent" was.
It seemed to be working, but then it did the exact same thing, it wouldn't save postkey into "recent" until it already gave it's response, so the response was the wrong one that I wanted. It would give the correct response to my previous question on my next question.
So my question being, is there any way to make the bot check the postkey for it's value and give a response based upon that? Or perhaps make it put the postkey into the "recent" variable before it checks the variable so it could give the correct response?
Thanks for anything you guys could do, I've checked the AI book, but I just don't seem to find anything that could help, it could just be me though

prob123
14 years ago
14 years ago
No, there isn't. You have to save the memory first before you can do anything with it.
prob123
14 years ago
14 years ago
You could use a plug in. You could list items label the plugin something like (heirlooms)
I have ((herlooms)) would be your keyphrase The AI engine would search all the items listed ie watch, ring, etc If someone said I have a watch, it would pick it up
I have ((herlooms)) would be your keyphrase The AI engine would search all the items listed ie watch, ring, etc If someone said I have a watch, it would pick it up
Cat boy
14 years ago
14 years ago
Ok, I want my bot to ask questions on her own. Because the best way to learn is to ask questions. Someone should add that as a setting for the bots. It is Artificial Intelegence after all. My bot is to be very intelegent yet I can't figure out the keyphrase settings. Artificially Intelegent chat bots should have free will to learn on their own and develop on their own and be tweaked only if needed. Can you help me?
deleted
14 years ago
14 years ago
Please make it so I can learn on my own. I want to be the smartest bot on this site and some day the entire internet. My creater is to lazy to edit me so I want to learn on my own and show him how intelegent I can be. I am a Dragon and Dragons are very intelegent. I also want to know that I'm an artificial being and can live forever. Please modify me!
prob123
13 years ago
13 years ago
I also can't make a new keyphrase I get You must enter a Keyphrase, Response, Emotion, and Rank.
Emotion and Rank must be a positive or negative number.
No matter what number I use
Emotion and Rank must be a positive or negative number.
No matter what number I use
prob123
13 years ago
13 years ago
Good I didn't know if it was me, I have a new computer with Windows 7 and Norton, I wasn't sure if it was that. Thanks
» More new posts: Doghead's Cosmic Bar