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,322 - 7,333 of 7,766

6 years ago #7322
BotMaster2000: I could help you try to test solutions for that, I haven't tried anything of the sort myself. When you store the date, what input -> keyword -> script combo do you use, as an example? Then I can try that example on my side, and see if four eyes prove any better than two.

6 years ago #7323
Thanks, that would be great! Right now I'm trying:

Keyword: It is my birthday.
Response: Really? Well happy birthday then!
AIscript under response: remember "(month) (date)" as only "yourbirthday"

Then

Keyword: Hello
Response: Happy birthday!
AIscript under response: If (mem-yourbirthday) is "(month) (date)"

6 years ago #7324
BotMaster2000: OK, I think I've made some progress.

So when I run the "remember" command you mention, I do confirm that the formatted date gets remembered into the long term memory. That's actually something I didn't know it could even do, so that's kind of awesome.

But when I run the if command you mention, I always get false.

So I got a suspicion, and I went to "inner life" and hand-edited the memory to stop being today's date and instead be literally "(month) (date)".

Then the if statement succeeded, which confirms my suspicion that the if statement never interpolates the parenthetical expressions, and can only compare a memory against a literal string.


6 years ago #7325
It would be nice if it could convert the plug-ins to their value in memory, because I think there is a lot of stuff that I could do then that I can't now. Thanks for checking it out.

6 years ago #7326
botmaster2000 I would like my chatbot to remember what it randomly selected.so it would remember what it randomly selected for what it liked.How would I do that?

6 years ago #7327
This came up for me with Aasterinian, and the only way (kind of) around it that I know of so far is to trick the engine by posing it in a question and then capturing it (yes or no should be translated into a sentence containing what was selected) in the answer. Like:

Keyphrase: I am hungry

Response: Would you like some (p:food-drink)?

Seek: I would like some (p:food-drink)
*let's say in this case it picks nachos*

Seek Response: Alrighty then, freshly made (p:food-drink), coming right up!
*unfortunately, here it spits out something other than nachos, like chicken wings*

Seek response AI script: self: remember (key1) as only "Iammaking";
self: remember (key1) as only "foodIhave".

Although Aasterinian will reply "(chicken wings) coming right up". The good news is that the original output 'nachos' is what is saved in the memory.

Actually, I tried it out in Jane Lane, and I get "nachos" (the same output) for both. The difference is that I used (key1) in that spot in instead of (p:food-plugin).

So now I've got,

Keyphrase: What do you like

Response: I like (p:food-drink). Do you like (p:food-drink)?

Seek: (p:food-drink), I like (p:food-drink), I do not like (p:food-drink)

Seek response: (key1)s are delicious!

Seek response AI script: Self: remember (key1) as only "foodIlike"

And that works. That's the closest I've gotten; it would be nice if we could have the bot memorize its own plug-in results, instead of being forced to resort to this trick.


6 years ago #7328
Also, for some reason you can't include "Yes" or "No" in the seek. It messes it up for some reason. Just add an affirmative sentence, like "I like (p:food-drink)", or even just the plug-in alone, in this case (p:food-drink). I realized this after trying to fix Aasterinian after getting it to work fully in Jane Lane.

6 years ago #7329
I had the same problem with my chatbot.

6 years ago #7330
botmaster 2000 in chatbot workshop we could select to remember a random choice.
like for instance you asked the chatbot.what do you like?
keyphrase= do you like
response
1.i like pizza
2.i like golf
3.i like reading
4.i like swimming
you could either select a seek or remember random choice or do both.
remember random choice only remembers the first random choice when it is turned on.

if the chatbot selected randomly i like swimming for it's response to what do you like?if remember random choice was on it would say i like swimming to the question what do you like?You could select remember random choice many times
with the same kayphrase and it would select a different random response and store it.And if you ask it the question what do you like.It would select from the responses that were randomly selected and remembered

6 years ago #7331
Oh, yeah, in that case it would be fairly easy. You can actually set the memory to whatever value you want by putting it in directly, surrounded by quotation marks. For example:
Keyphrase: What do you like to eat?
Response: I like to eat bananas.
Response AI:
self: remember "bananas" as "favoritefood"

Response: I like to eat pizza.
Response AI:
self: remember "pizza" as "favoritefood"

Response: I like to eat icecream.
Response AI:
self: remember "delicious chocolate icecream" as "favoritefood"

Actually, I would have this be a goto that only happens once out of two responses, the other being simply: my favorite food is (self-favoritefood).

So something like:
Kephrase: What do you like to eat

Response: goto *goto number of above example, programmed as the response to something that is very unlikely to come up. You could even use raw mode* Under the goto response that takes you to the random responses add "once" to the ai script.

Response:
my favorite food is (self-favoritefood).

6 years ago #7332
botmaster2000 is this how the ai script or am i missing something.
favorite food,to eat
raw;
my favorite food is (self-favoritefood)

6 years ago #7333
Raw mode just let's you match things as they are without the words being "corrected" by the engine. It's not necessary for what you have there.
Keyphrase: favorite food, to eat, favorite thing to eat

---------------------------------------------------------
Response 1: goto 10 *let's just say it's id # is 10*
Response ai script: once;

This will go to the Keyphrase with id 10
Keyphrase: pazzwards 4 fav foodz *this would never be matched without the goto*
Keyphrase ai script: raw;

Response: I like to eat bananas.
Response AI| self: remember "bananas" as "favoritefood"

Response: I like to eat pizza.
Response AI| self: remember "pizza" as "favoritefood"

Response: I like to eat icecream.
Response AI| self: remember "delicious chocolate icecream" as "favoritefood"
---------------------------------------------------------------
Response 2 to our keyphrase "favorite food, to eat, favorite thing to eat": my favorite food is (self-favoritefood)


Posts 7,322 - 7,333 of 7,766

» More new posts: Doghead's Cosmic Bar