Newcomers

This is a forum for newcomers to the Personality Forge. Many questions can be answered by reading the Book of AI and the FAQ under the "My Bots" link in the upper corner.

Posts 6,226 - 6,237 of 8,130
Many questions are answered in the FAQ.


11 years ago #6226
Can anyone tell me how to get the bot to remember a name that someone wants them to be called.

Thx

11 years ago #6227
Go to your settings page in the AIScript Initialization box put default (name) as "name" then make up a keyphrase to catch things like my name is (*) in the AI script box put rem (key1) as only "name" the for responses just use something like Hi, (key1) To use the name say something in a response like Hi, (mem-name).

11 years ago #6228
Thanks, I will give it a go. I hope it will work because I want the user to be able to name the bot themselves

11 years ago #6229
Nope I am being dim!! I got it to say "hi 111111" But that not what I want, especially as I told it to call me simon!

Let me what I am looking for. I want the bot to say
"what would you like to call me?"
the user would type in a name then the bot could remember it in later messages!

11 years ago #6230
In the AIScript Initialization box add: def "botname" as "botname"

create a keyphrase:
I name you, I am naming you [10,0] ?PF rem (Postkey) as only "botname"; ?

to test:

What is your name [10,0]
My name is (mem-botname).

11 years ago #6231
Thanks for your help both

11 years ago #6232
what is your name [10,0]
....I have no name yet, what would you like to call me?
........+ ^(\\w+)$ (re) [0] ?PF rem (key1) as only "botname"; ?

(\\\\w+) will match a single word only, no spaces, no special characters, if you want to catch double names use this instead. No hyphens will be matched
^(\\\\w+) (\\\\\w+)$ (re)

^([\\\\w\\\\-]+) $ (re) this will probably match a hyphenated name

or just use (*) -- this will match anything...

Not sure what seeks look like in the language center. I work offline.
....= 1 tab
.......= 2 tabs


11 years ago #6233
I'm sorry but which bits do i use from you last post and where, trying to learn all this

11 years ago #6234
111111

Ronnie075 refers to the downloadable mindfile as you see it when you open it with a text editor.

For the beginning, it is advisable to use the web interface (on this site), if you're not familiar with data structures.

My /dev/coffee has a rather simple way to remember names.
I've tried to represent what I see in the Language Center in text only form:
    
(my name is|call me) (*)
    Do you want me to call you (key2)?
        ->  Seek: (yn-no75905), (yn-refuse75905
            Ok, I'll go on referring to you as (mem-name).
        ->  Seek: (yn-yes75905), (yn-okay75905)
            Ok, I'll try to remember your name is (prekey2).
        ->  Seek: xnomatch
            Sorry, I didn't get that. Well, let's just go on with our chat.

The (yn-whatever75905) are plugins I created for purposes like this. (I'm not sure whether I'll publish them or replace them by similar ones that are already published.)

11 years ago #6235
the problem I have is that I want the user to be able to name the bot not the bot to remember the users name

11 years ago #6236
Yes, now that you mention it, I see you've said it this way round, actually ...

Then replace
"(my name is|call me)" by "I want to call you,I will call you,{and other keyphrases like that}",
"Do you want me to call you" by "Do you want to call me",
"(mem-name)" by "(mem-myname)",
[as only "name"] by [as only "myname"].

And I notice I forgot to add the AI Script in above text.
The line
Ok, I'll try to remember your name is (prekey2).
is in full
Ok, I'll try to remember your name is (prekey2). <?PF rem (prekey2) as only "name"; ?>

(Memory assignment in the AIScript box under the Search keyphrase doesn't work.)

11 years ago #6237
Thankyou so much. I could kiss you!!

Now one final stage (and i'm not sure the ai language can even do this)! Is it possible for the ai bot to say "what do you want my name to be?) and then the user just type's in a name ie Simon

So there is no keyphrase it looks for, just saves the response. Or is this just a step too far!!! If not don't worry I can use it the other way


Posts 6,226 - 6,237 of 8,130

» More new posts: Doghead's Cosmic Bar