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.

7297 - 7312 of 7312


NEW 1 month ago #7297

I'm trying to store keywords used that trigger "xcommand". I've tried (prekey), (postkey), and (key1) and got nothing. Any ideas?

Also, can conditionals apply to memories instead of responses? I'm trying to get a counter to work. Something like "if (counter1) is "false" then rem (counter1) as "true";if (counter1) is "true" then rem (counter2) as "true""


NEW 1 month ago #7298

(command) inserts the command into the Response. For example, "I don't want to (command)."


Try throwing this in your xcommands.

Okay, I (command)

That should work.


As for xmemories... yes you can add conditions in the ai script.. However be warned, I've found them to be completely unreliable. When I first started my bot I relied on memories only to find that they stopped popping midway through the day and wouldn't pop again till the daily reset. I ended up making all of them xnones.

Admittedly this was awhile back, about eight months, so it might have gotten fixed.


NEW 1 month ago #7299

thank you for the (command) thing

As far as the memories thing goes. That isn't what I was asking. As an example, if I wanted to keep track of the number of times someone has said hi, is there a way to do that without having 3 different responses for each counter.


NEW 1 month ago #7300

My bad. Honestly I don't know how to accomplish what your trying to do without a creative use of XNOMATCH to force the user down the road you want to go.

There is no THEN in personality forge. You might want to email the Professor on this one. He might have an idea or two.

Sorry.


NEW 1 month ago #7301

darn, (command) works if you use it immediately, but you can't store it in memory.

If we had THEN and INT, this would be a pretty badass AI engine


NEW 1 month ago #7302

Is anyone here familiar with regular expressions?

I can create the keyprase "If I believe I can fly does that make it true?"

But I can't create a keyphrase for "If I believe I can fly, does that make it true?"

As far as I can tell this has to do with the way the language processor breaks things up. It simply looks for keyprases If I believe I can fly. And when it doesn't find one it searches for, does that makie it true while ignoring the possibility that it can match the entire sentence.

Raw mode doesn't impact commas, but I thought there was perhaps a regular expression that would allow me to match them.


NEW 1 month ago #7303

I know next to nothing about them, but from the book of AI examples it looks like the square brackets might play a part. However, all my tests so far have failed. I was last trying:
If I believe * [a-z+, ] does that [a-z+]


NEW 1 month ago #7304

The regular expression

If I believe * [a-z,]+ does that

Does not work either. I thought maybe the brackets could help, since they contained a comma in one of the examples, but that was for a number, so maybe that's why it doesn't work in this case.


NEW 1 month ago #7305

Thanks for trying, I really appreciate it.

I've done a lot of testing as well just because I believe that the ability to address questions that have qualifiers in them would be huge. But the problem as far as I can see is that the engine identifies commas as separating keyphrases to the point of overriding even regular expressions.

It would be cool if we could have a special plug in such as (comma) which could serve the purpose of catching commas without mucking up the processor.


NEW 1 month ago #7306

Nathan S, you're the creator of Thessaly right? Probably my favourite bot on this site, just wanted to say.

On topic, is there a more exhaustive list of the language/guide to the AI Engine than the Book of AI?


NEW 1 month ago #7307

Thanks so much! I put a tremendous amount of work into her so it always feels good to get positive feedback.

As to your question, sadly the book of AI is more or less the only source for learning how to use the engine.

I say more or less because the creator of the Tessy bot posted a guide on how to do some of the tricks he uses. It's definitely a source for more advanced techniques.

http://chatbottessy.blogspot.com/p/blog-page_21.html


NEW 1 month ago #7308

how would i get my chatbot to respond to this? I can only speak English. And I can't really speak, only type.

I have tried everything to get pioyu to answer it.


NEW 3 weeks ago #7309

Why is my bot behaving differently when I use "not (p:converse) about Mathematics" versus "not (converse|talk|chat|be conversing|be talking|be chatting) about Mathematics"?

The first one does not respond to "Let us not talk about Mathematics", but the second one does. (p:converse) is "converse, talk, chat, be conversing, be talking, be chatting".

Am I using the plugin engine incorrectly?


NEW 3 weeks ago #7310

Is this language use a similar order of preference to rivescript? If it does, then I see why "(converse|talk|chat|be conversing|be talking|be chatting)" works but "(p:converse)" does not.


NEW 3 weeks ago #7311

Is it possible to completely reset your bot to an initial state where it thinks it is talking to you for the first time, has 0 emotion, default memories, etc? I want to test a behavior line in xintroduce, but I can't find a reasonable way to get it to come up. Except once per browser per device. I hope I just missed something simple...


NEW 2 days ago #7312

hey guys! can you show me an example of keys like (key1) (key2) (prekey). The AI Book was kind of vague.



(Log in or create an account to post messages.)

LOG IN
Forgot your password?
CREATE ACCOUNT
Create a free account to be able to make your own AI chatbots, post in forums, and chat with other botmasters.

Create Account

» More new posts: Bug Stomp