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,258 - 7,269 of 7,766
Posts 7,258 - 7,269 of 7,766
BotMaster2000
6 years ago
6 years ago
Ok, thanks bobstack. I looked it up and it looks really cool. I'll be sure to check it out some more and try to learn how to use it.
Nathan S
6 years ago
6 years ago
Hey Botmaster, did you ever figure out how to get your bot to remember plugin results? (I know this was from awhile ago, but I just now saw the post.
This is how I do it.
KP: i am (p:namecatch-m|p:namecatch-f|p:namecatch-u)
AI Script: rem (key1) as only "name"
User input: I am Robert
Response: '(mem-name).' She echoes as though tasting the name and trying to determine if she enjoys it. 'Should I call you (mem-name) then?'
You get the idea, in the case of your ai script try replaceing (plug-in) with (key1) and see if that works.
This is how I do it.
KP: i am (p:namecatch-m|p:namecatch-f|p:namecatch-u)
AI Script: rem (key1) as only "name"
User input: I am Robert
Response: '(mem-name).' She echoes as though tasting the name and trying to determine if she enjoys it. 'Should I call you (mem-name) then?'
You get the idea, in the case of your ai script try replaceing (plug-in) with (key1) and see if that works.
BotMaster2000
6 years ago
6 years ago
Hi, Nathan. I was trying to get my bot to remember the results of plug-ins that come up in its responses to keywords. The only way that I've found is to make sure that the plug in is in a question the bot is asking (for example: Would you like a (p:type-of-food), (name)?), and then when the person answers in the affirmative, even if they just say "yes",it will be automatically translated by the macro into something like: Yes, I would like a (p:type-of-food). Then it can be captured by the mem Ai script.
Bobstack, could you post a link to Sheila Strong? I tried to find her, but she didn't come up in the results.
Bobstack, could you post a link to Sheila Strong? I tried to find her, but she didn't come up in the results.
Nathan S
6 years ago
6 years ago
Hey again Botmaster, this is a tricky one as I don't think you can create the memory after the fact. However there is a cheesy workaround I think you can use.
Bot: Would you like some (p:type-of-food)?
ai script: rem (key1) as only "food"
Seek: Yes
Seek: (*)
AI Script: forget (key1) from (food)
Then later
Bot: Here is your (mem-food)
AI Script: if (mem-food) exists
In other words, the bot creates the memory then automatically deletes it if the user responds with anything other than a yes.
(P.S. Remember to crank up the rank of your Yes seek to 100 otherwise it will default over to (*) )
Let me know how it all works out.
Bot: Would you like some (p:type-of-food)?
ai script: rem (key1) as only "food"
Seek: Yes
Seek: (*)
AI Script: forget (key1) from (food)
Then later
Bot: Here is your (mem-food)
AI Script: if (mem-food) exists
In other words, the bot creates the memory then automatically deletes it if the user responds with anything other than a yes.
(P.S. Remember to crank up the rank of your Yes seek to 100 otherwise it will default over to (*) )
Let me know how it all works out.
Nathan S
6 years ago
6 years ago
*Head desk* You know what? Forget everything I wrote in my last post. It won't work. In fact I don't think it's even possible to grab the results of a plugin unless their typed in explicitly.
The only thing I can think of would be to offer the user two types of food and make them choose.
Sorry about that.
The only thing I can think of would be to offer the user two types of food and make them choose.
Sorry about that.
bobstack
6 years ago
6 years ago
BotMaster2000 put this in search bots which is the search.
name=sheila strong
categories=entertainment
tags=female
rating=Mature
You have to know how to work the websight.
name=sheila strong
categories=entertainment
tags=female
rating=Mature
You have to know how to work the websight.
BotMaster2000
6 years ago
6 years ago
Ok, I found her, thanks. I couldn't get her to play the game with me. What should I say? She kept telling me that I was writing incomplete sentences. I still like her, though. The game sounds like fun.
Nathan, what I described is half working for me right now. Here's what I have:
Keyphrase: I am hungry, etc...
Response: Would you like some (p:food-drink)?
Seek: I would, Yes, I would like some (p:food-drink), etc...
Seek response: Alrighty then, freshly made (key1), coming right up!
AI script:self: remember (key1) as only "Iammaking";
self: remember (key1) as only "foodIhave"
It does successfully remember what ever plug-in result came up in the bot's response as "Iammaking" and "foodIhave", but for some reason it tends to choose something else from the plug-in when it's reusing it in the seek response. My solution to this will probably be to just rephrase the seek response so it doesn't mention the plugin at all, and just keep the AI script remembering (key1), the plug-in used in the bot's initial reply to the KW, as something Aasterinian is making.
Nathan, what I described is half working for me right now. Here's what I have:
Keyphrase: I am hungry, etc...
Response: Would you like some (p:food-drink)?
Seek: I would, Yes, I would like some (p:food-drink), etc...
Seek response: Alrighty then, freshly made (key1), coming right up!
AI script:self: remember (key1) as only "Iammaking";
self: remember (key1) as only "foodIhave"
It does successfully remember what ever plug-in result came up in the bot's response as "Iammaking" and "foodIhave", but for some reason it tends to choose something else from the plug-in when it's reusing it in the seek response. My solution to this will probably be to just rephrase the seek response so it doesn't mention the plugin at all, and just keep the AI script remembering (key1), the plug-in used in the bot's initial reply to the KW, as something Aasterinian is making.
Nathan S
6 years ago
6 years ago
That sounds like the best plan. I think it has something to do with the fact that the bot is retrieving the plug in information from an outside source which is why it can't grab it as a key.
bobstack
6 years ago
6 years ago
i got the wordplay script from
http://www.square-bear.co.uk/aiml/
You type," i want to play wordplay ."I did a slight modification on the aiml script.so you have to ask her to play wordplay.I see she needs a little work.I will improve on her.I am glad people have tested her.
http://www.square-bear.co.uk/aiml/
You type," i want to play wordplay ."I did a slight modification on the aiml script.so you have to ask her to play wordplay.I see she needs a little work.I will improve on her.I am glad people have tested her.
bobstack
6 years ago
6 years ago
botmaster2000 you can fork sheila strong then make modifactions on her scripts.
use her for a base for your chatbot
use her for a base for your chatbot
blaze520
6 years ago
6 years ago
How is the AI score next to my bots name calculated and how often does it update?
» More new posts: Doghead's Cosmic Bar