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,386 - 7,397 of 7,766
Posts 7,386 - 7,397 of 7,766
jkroker
6 years ago
6 years ago
MROdell48: yep, that's possible. Why not give it a try and let us know if you run into any obstacles?
bobstack: I haven't actually worked with the flash chat system myself yet, but I do see a number of bots with links to "flash chat" below the link to their ordinary chat feature so at least I know it exists somehow.
I've also never used xnomatch before. When things don't match I always just get xnone *shrugs* lol
bobstack: I haven't actually worked with the flash chat system myself yet, but I do see a number of bots with links to "flash chat" below the link to their ordinary chat feature so at least I know it exists somehow.
I've also never used xnomatch before. When things don't match I always just get xnone *shrugs* lol
MROdell48
6 years ago
6 years ago
Its not really working. it wont display the second message
https://gyazo.com/ca053954724efd34bbac3b78200cba35
https://gyazo.com/40766d0e64f21af66da20fc71d4e7b1c
https://gyazo.com/8f1b3acf6f1087b76a593cedda606e03
do you see anything wrong with the code?
https://gyazo.com/ca053954724efd34bbac3b78200cba35
https://gyazo.com/40766d0e64f21af66da20fc71d4e7b1c
https://gyazo.com/8f1b3acf6f1087b76a593cedda606e03
do you see anything wrong with the code?
jkroker
6 years ago
6 years ago
MROdell48: I do see several problems in your script.
1: remember "X" as only "Y" will not create a variable that you can recall with mem-X set to Y. It will create a variable you can recall with mem-Y set to X.
2: without an if on your first response, it has a 50% chance of triggering even if your variable does equal "one"
3: You can learn a lot about potential flaws in the code like this by running your tests with the Build > Debug feature.
1: remember "X" as only "Y" will not create a variable that you can recall with mem-X set to Y. It will create a variable you can recall with mem-Y set to X.
2: without an if on your first response, it has a 50% chance of triggering even if your variable does equal "one"
3: You can learn a lot about potential flaws in the code like this by running your tests with the Build > Debug feature.
bobstack
6 years ago
6 years ago
how would I make my chatbot remember what it said for as long as the user talks to it, then if they would stop talking to them they would forget?
example keyphrase = sit down
response=I sit down in the chair beside you.
example keyphrase = sit down
response=I sit down in the chair beside you.
jkroker
6 years ago
6 years ago
bobstack: the problem here sounds like: how do you know when the user has "stopped talking to it"?
I don't think that the system has a timeout for variables, or a way to trigger events outside of the time when chat is happening. And it doesn't do a great job of telling one chat from the next..
.. one of the x??? keywords like xinitiate or xhello might be abusable for this purpose though. Figure out which one does the most reliable job of firing at the beginning of conversations (and make sure to test both user-initiated and bot-initiated convos), and add into the aiscript for that one keyword to forget the variables you want to start from scratch with.
I don't think that the system has a timeout for variables, or a way to trigger events outside of the time when chat is happening. And it doesn't do a great job of telling one chat from the next..
.. one of the x??? keywords like xinitiate or xhello might be abusable for this purpose though. Figure out which one does the most reliable job of firing at the beginning of conversations (and make sure to test both user-initiated and bot-initiated convos), and add into the aiscript for that one keyword to forget the variables you want to start from scratch with.
bobstack
6 years ago
6 years ago
could you tell me what this means?i would like to know how to use
it."Hi, (mem-nickname)! Someone told me I was (self-iam) today. Do you think so?"
it."Hi, (mem-nickname)! Someone told me I was (self-iam) today. Do you think so?"
jkroker
6 years ago
6 years ago
Well (mem-something) and (self-something) are both ways of accessing different kinds of variables via the AIscript. If the bot said those things out loud, that just means that something went wrong, either a bug in PF's text processor (it's not supposed to select a response which references an unset variable) or something the creator did wrong.
bobstack
6 years ago
6 years ago
i could not figure out how to make my chatbot remember what it said for as long as the user talks to it, then if they would stop talking to them they would forget?
» More new posts: Doghead's Cosmic Bar