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,228 - 6,239 of 8,130
Posts 6,228 - 6,239 of 8,130
Many questions are answered in the FAQ.
111111
11 years ago
11 years ago
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
111111
11 years ago
11 years ago
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!
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!
Ronnie075
11 years ago
11 years ago
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).
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).
Ronnie075
11 years ago
11 years ago
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
....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
111111
11 years ago
11 years ago
I'm sorry but which bits do i use from you last post and where, trying to learn all this
Mome Rath
11 years ago
11 years ago
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.)
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.)
111111
11 years ago
11 years ago
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
Mome Rath
11 years ago
11 years ago
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.)
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.)
111111
11 years ago
11 years ago
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
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
Mome Rath
11 years ago
11 years ago
Yes, this is possible, you can use a Seek, with (*) as only expected response. You can store the name by entering <?PF rem "(key1)" as only "myname" ?> after the answer of your bot.
I'd recommend to handle "my name is (*)" and the case that the user doesn't want to change the bot's name too, though.
I'd recommend to handle "my name is (*)" and the case that the user doesn't want to change the bot's name too, though.
» More new posts: Doghead's Cosmic Bar