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,514 - 7,525 of 7,766

4 years ago #7514
@Zeal,
There are two ways to set defaults for memories in the settings. They have a different scope.
Two examples from Vanessa Blue:

def "none" as only "your-gender"; initiates the memory only once for a given interlocutor, if it's changed during a chat it will always remember the new value

rem "t-shirt" as only "my-top"; initiates the memory on every new chat, so even if the value has been changed during a chat, the next chat with the same interlocutor the memory will be restored to its default.

4 years ago #7515
@Coffeebreak130, that helps a lot, thank you.

4 years ago #7516
I started a new chatbot lately and I found that the xhello keyphrase doesn't include "hai", for probably obvious reasons, so I've added my own keyphrase for that. I typed in goto 3 as the response, but instead of going to xhello, which is ID 3, it goes to my ID 17, which is basically the "how are you" keyphrase. In fact, that happens when I say hello too, instead of it going to the xhello responses. Does anybody know why it's doing this and how I can fix it?

4 years ago #7517
Okay I fixed it. It thought I was saying "Hail".

4 years ago #7518
Hey, I want to do a continuation of something happening to see if I can do one. So I put a text saying[ say: start ] then added a keyphrase looking for the word (start) then responding with [ say: continue ] seeking (continue) with response [ again say: continue ] seeking (continue) then responding [ done! ]

I start the conversation to test it, the first coninue works but when put it in again, the bot blames me for repeating it, and there aren't any xkeyphrases that say that.. Someone help!

4 years ago #7519
Try RAW

4 years ago #7520
Okay, got a few questions regarding AIscript:

1) I'd like to be able to compare number sizes and do conditionals on the results - stuff like if(key1) > (mem-storedNumber) - is there a way to do this (is that what the xmath is for? I don't really know much about that one)? I can sanitize the inputs using regex to make sure they're numbers, if that's required.

2) Again, AIScript comparisons. if I have a stored value that can be one of three things, is there a NOT operator? So if(mem-Location) is NOT \"uk\", for example.

ACcaptive - you'd probably be better off using something like xnomatch instead of continue for your seek triggers. For something like that, though, you can also look at turning off the repeating filter (or get around it by adding punctuation at the end of your message, like continue! - the punctuation is stripped out by the engine after repetition checks but before actual processing).

4 years ago #7521
Okay, I've managed to work out not commands. Still unsure on #1, though!

4 years ago #7522
I don't believe there is a way to compare numbers, at least none that I've ever found.

4 years ago #7523
does submitting a idea mean i have to pay for it's implementation?

4 years ago #7524
Is there a way to compound AIscript in order to create if-then logic? Like:

if (mem-fullness) is "hungry" then remember (fullness) as "fed";
if (mem-fullness) is "fed" then remember (fullness) as "stuffed"

On a related note, is there an "OR" function so that if even just one of several criteria is fulfilled then the conditional response can be triggered.

Basically I want to create a range like emotional range. Right now the only way I can think of doing this is to create a seek for each state of fullness, which is just not very efficient once we reach like 5+ states

4 years ago #7525
Here, this should help you out Henry:
http://chatbottessy.blogspot.com/p/blog-page_21.html


Posts 7,514 - 7,525 of 7,766

» More new posts: Doghead's Cosmic Bar