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,077 - 7,088 of 7,766
Posts 7,077 - 7,088 of 7,766
Anna1234
10 years ago
10 years ago
Hello Botmasters!
I have a question, How can i make the bot responds on, Hi, Hello kind of questions?
I have tried the xhello... not works
I have tried in the abcd...yz keywords list, just for hello... nothing
the xinitiate-seeker also not worked to me
If someone could help me, or tell me what did i missed... it would be good
I have a question, How can i make the bot responds on, Hi, Hello kind of questions?
I have tried the xhello... not works
I have tried in the abcd...yz keywords list, just for hello... nothing
the xinitiate-seeker also not worked to me
If someone could help me, or tell me what did i missed... it would be good
Mome Rath
10 years ago
10 years ago
No idea either ... It seems the PF engine sends all hellos after the first one to xnone, no matter what you do. Not even a Regular Expression with maximum rank (+127) works.
This is one of the things you'll find dozens of complaints of in these forums.
This is one of the things you'll find dozens of complaints of in these forums.
Anna1234
10 years ago
10 years ago
I have thinked about this "Hi" thing, and basicaly... The "Hi", nothing. The bot say hi initiate, no need to expain the hi again.
Good solution can be, if we fills the xnone, with lack of question!
Good solution can be, if we fills the xnone, with lack of question!
deleted
10 years ago
10 years ago
in xinitiate and xhello responses add -- rem "yes" as only "hi"
in xnone response if (mem-hi) is "yes"; rem "no" as only "hi"
Of course will have to add if (mem-hi) is "no" to every other xnone entry... This is not a perfect solution of course, since any unmatched second input would receive a responce of "Hi there"
Ie.
Bot: Hi stranger
Person: go away
Bot: hello there
Of course most people reply with Hi|Hello if greeted.
in xnone response if (mem-hi) is "yes"; rem "no" as only "hi"
Of course will have to add if (mem-hi) is "no" to every other xnone entry... This is not a perfect solution of course, since any unmatched second input would receive a responce of "Hi there"
Ie.
Bot: Hi stranger
Person: go away
Bot: hello there
Of course most people reply with Hi|Hello if greeted.
Anna1234
10 years ago
10 years ago
Dear Test Bot Z
Basicaly, my think is like the next. in the Xinitiate the bot will says Hello, there is no reason from the bot say hello again. In that was i thinked in. But honesity, i try to make a bot, what can tell it's "feels" like... If it's not like you, then says in the first word like: "I not sure if we should talk xyz" after she/he said hello
Cause my bot is 'blind' carracter, and it wont see who talk with it self, until the people talk with.
Maybe is it a bit complicated, but i hope my english was okay for
Basicaly, my think is like the next. in the Xinitiate the bot will says Hello, there is no reason from the bot say hello again. In that was i thinked in. But honesity, i try to make a bot, what can tell it's "feels" like... If it's not like you, then says in the first word like: "I not sure if we should talk xyz" after she/he said hello
Cause my bot is 'blind' carracter, and it wont see who talk with it self, until the people talk with.
Maybe is it a bit complicated, but i hope my english was okay for
Mome Rath
10 years ago
10 years ago
Is there any way to compare a memory with another memory?
The AIScript
<?PF if (self-talkedto) is "(name)" ?>
fails unless the self-memory "talkedto" contains a literal entry "(name)". "Mome Rath" doesn't help as entry in (self-talkedto).
The AIScript
<?PF if (self-talkedto) is "(name)" ?>
fails unless the self-memory "talkedto" contains a literal entry "(name)". "Mome Rath" doesn't help as entry in (self-talkedto).
Pound
10 years ago
10 years ago
Is there a way to have a value stored as a memory, and then have that value increase if a certain event is triggered multiple times? In other words, could a bot remember how many times a certain action has occurred?
Mome Rath
10 years ago
10 years ago
Afaik, there are no numerical memories, that would allow for example to have 4 in a memory and then do something like
<?PF increment (mem-counter) ?>
or
<?PF rem (mem-counter) + 1 as only "counter" ?>
and then having 5 in mem-counter.
(This would be one of my greatest wishes for the next version of AIScript)
If you have only a few numeric values you want to keep track of, you can set the memory as required. Here an example of my bot "/dev/coffee":
[stuff said to a new bot] <?PF if (mem-sessionstate) is "newbot_2"; rem "newbot_3" as "sessionstate"; ?>
If you want to count to higher numbers you can put something like this into your AI Script (here a line from the exported file of my bot)
In the setting AIScript field:
rem "0" as only "goodbye";
in xgoodbye:
rem "(mem-goodbye)1" as "goodbye";
This fills mem-goodbye at the beginning of a chat with "0", and every time the bot gets a goodbye, it count mem-goodbye up in this fashion
0
01
011
0111
01111
...
and the bot does checks like
if (mem-goodbye) is "0111111"
<?PF increment (mem-counter) ?>
or
<?PF rem (mem-counter) + 1 as only "counter" ?>
and then having 5 in mem-counter.
(This would be one of my greatest wishes for the next version of AIScript)
If you have only a few numeric values you want to keep track of, you can set the memory as required. Here an example of my bot "/dev/coffee":
[stuff said to a new bot] <?PF if (mem-sessionstate) is "newbot_2"; rem "newbot_3" as "sessionstate"; ?>
If you want to count to higher numbers you can put something like this into your AI Script (here a line from the exported file of my bot)
In the setting AIScript field:
rem "0" as only "goodbye";
in xgoodbye:
rem "(mem-goodbye)1" as "goodbye";
This fills mem-goodbye at the beginning of a chat with "0", and every time the bot gets a goodbye, it count mem-goodbye up in this fashion
0
01
011
0111
01111
...
and the bot does checks like
if (mem-goodbye) is "0111111"
Pound
10 years ago
10 years ago
Quick question, is there a way to make a specific part of a response change depending on a memory? For example, if I want the word "couch" to change to "bed" because of a room change, or do I just have to make separate responses?
» More new posts: Doghead's Cosmic Bar