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,328 - 7,339 of 7,766

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)

6 years ago #7334
I tried it out in Daria, and it seems to work. Is this something like what you wanted to do?

6 years ago #7335
BotMaster2000 is that the complete code.And where did you put it.

6 years ago #7336
That's everything.

Have you read the book of ai all the way through? You have to make new keyphrases in the language center for your bot. I have two in my example. The first one is "what do you like to eat", which has the responses with (self-favoritefood) and the goto to the second keyphrase, which is "pazzwards 4 fav foodz" and has all the responses about liking different types of food. The ai script goes in the little ai box under each response when you are making a keyphrase, and there is also an option to put the ai script in a box under the keyphrase itself. Press "more", and it will expand to show the ai script box.

6 years ago #7337
it did not work.Am i missing something?here is a picture of what i did

http://pasteall.org/pic/index.php?id=121370

6 years ago #7338
botmaster2000 Daria does not pick one of the responses and say it everytime.i tested her.And that is what I wanted.

6 years ago #7339
How were you phrasing it when you asked her? I only have "your favorite food, favorite food, what do you like to eat" programmed. If you say "what kind of food do you like" it will give you a different answer each time because of the inbuilt "what kind of" plug-in.
I asked her what her favorite food is, and it has been the same ever since.

So, I can see the problem you're encountering with what you have. I tried it out, and I guess that's why I had that be a goto response that only happens once per person, and then after that it goes to the response where it says what it's (self-favoritefood) is.

Also, I guess you should just have it be (mem-favoritefood) and not (self-favoritefood), because the latter would actually make it seem consistent to each person who chats with it, even if you, the person who reads the transcripts, knows that it is different for each user.

Here are the screenshots of what I have programmed for Daria:
https://imgur.com/eMm6eLL

https://imgur.com/fvsZQDM


Posts 7,328 - 7,339 of 7,766

» More new posts: Doghead's Cosmic Bar