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 7,197 - 7,208 of 8,127
Many questions are answered in the FAQ.


5 years ago #7197
I haven't tried doing an age one but I would imagine it would look something like this:

In the initialization script put:

Default (age) as "age";

Then create a keyphrase:

I am (*) years old

Response:

You are (key1) years old

With the script:

Rem (key1) as only "age"; once


I wouldn't recommend using the once command in this instance however, as it's possible the user will mistype the answer and want to change it.

5 years ago #7198
wouldn't the once command reset when a new conversation starts?

5 years ago #7199
It would reset, yes. There's no way around that.

5 years ago #7200
after I make the keyphrase for the age what do I do to make another keyphrase when they ask to change their age again in the same conversation to prevent it from being repeated

5 years ago #7201
Just add another response. One that does not contain any other scripts.

5 years ago #7202
when I add once it doesn't work it says invalid

5 years ago #7203
I just tried your bot. It appears to be working though it's allowing me to change my age immediately which tells me you have 'once' put in the wrong spot.


To make sure your bot is truly remembering the age you can add the keyphrase:

How old am I

With the response

You are (mem-age) years old

5 years ago #7204
I just tried this out on my test bot and it worked fine. So if you follow what I laid out it should work for you as well.

Hope it helped.

5 years ago #7205
I have it as
rem (key1) as only "once"
but I still can't make a keyphrase to be said after the age has been used in the conversation I didn't make a keyphrase saying the default age yet

5 years ago #7206
how would make poiyu my chatbot say why did you stay that long I missed you if a person stays away a week.but if they do not stay awaya week then she would talk to them like normal.

5 years ago #7207
thats kinda what i need for the age keyphrase
once the person chooses their age in the conversation It should always show that you already chose your age once you have to start a new conversation if you want to change your age

5 years ago #7208
Warrior, your script has to line up with what you have in your initialization script.

if your initialization script reads:

default (age) as "age"

Then the script needs to be rem (key1) as only "age"

If your Initilzation script had"

defaut (once) as only "age"

THEN rem (key1) as only "once" would work.


The command ONCE has only a single purpose. To make sure a response only comes up once per chat. That way your bot doesn't keep asking the same question over and over again.


Bobstack, I don't think there's a way to do what your asking.


Posts 7,197 - 7,208 of 8,127

» More new posts: Doghead's Cosmic Bar