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,657 - 7,668 of 7,766

2 years ago #7657
You've got a few options, depending. The easiest is to have a seek of xnomatch, which will match with anything, and a response to that of 'Oh, I liked that film' or similar; issue is that it'll assume that the user named a film. If you want the response given to be used - for you to respond with "I liked <filmname>!", then you need to use keys. Have the seek as (key1), and then you can use (key1) as a memory and reference it with "I liked (key1)", or have a seek as (i like|favourite is), then you can reference whatever somes after with (postkey), so (i like|favourite is) could go like this:

"What are your favourite movies?"
"I like splat."
"Oh, I like splat too!"/"Oh, I didn't like splat..."

Your best bet is to have the postkey one and also an xnomatch in case they just say the name of the film, IMO.

2 years ago #7658
you could use a plugin for sciencefiction,drama,comedy,history or romance as a keyphrase.example then it's response could be oh you like science fictions movies.if it is in the sciencefiction movies pugin.

you can make your own plugins.

2 years ago #7659
So I made a seek and I'm trying to get my chatbot to take it, yet it keeps spitting out the xnone when I type the seek exactly as I have it written. What's going on?

2 years ago #7660
thunder dash try this

put in xnone
what movies do you like?
seek = i like the movie *
response = was (postkey) any good
seek = xnomatch
response = i have never heard of that movie before


i hope you get the hang of it.


2 years ago #7661
Thunder dash, that sounds like it's an autocorrect issue, though could be undefined AIScript. What's the seek? Have you tried debug mode, should tell you why it's not picked.

2 years ago #7662
Thunder dash if your keyphrase is rather long and/or very specific you may have issues getting it to trigger~

2 years ago #7663
Does anyone know what (=) means in keyphrasing terms? It shows up occasionally in the Master Bot Template, but I don't know what its function is supposed to be and the Book of AI doesn't seem to explain. Examples:

(a:eventually) (=)
(alright|enough) already (=)
surprise (=)


2 years ago #7664
No clue, Shadow Season, if it doesn't actually match equals - might be worth creating a bot with just the master bot template and experimenting.

I have noticed that there's a huge chunk of new AIScript stuff - stuff like continue, but particularly copy seeks will be a godsend for me. I can probably remove a lot of excess seeks that are just gotos (or, rather, do it differently going forward, since it may count as a destructive import!).

2 years ago #7665
Thanks Maryguise, I agree we'll probably have to just fiddle around with the new MBT phrases to see what they do. And yeah, 'copy seeks' is a great feature.

2 years ago #7666
(=) means an exact match. Hmm.. I'm looking through the code and it's possible I haven't gotten around to implementing it yet. There's also (#) to match a number and ($#) to match money but again, not sure if I finished that. If anyone has time to test, let me know.

2 years ago #7667
I did a few tests for (=) keyphrases earlier that only triggered #engage responses, so I guess it's not implemented yet. On the topic, may I ask what (re) is meant to do?

2 years ago #7668
So (=) would be the equivalent of ^this$ ?


Posts 7,657 - 7,668 of 7,766

» More new posts: Doghead's Cosmic Bar