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,102 - 7,113 of 7,766

10 years ago #7102
You have to make them regular expressions, and raw. Rank them high. If all else fails stick the word in brackets.
I have tried selfie but it goes to Using xnonsense
Usually you can't get by that. You might contact the Professor

10 years ago #7103
OK this works for I took a selfie, or any sentence with selfie, but not the single word selfie.
([S]+)([elf]+)([ie]+) (re)


You: he took a selfie
Bot: DUCK LIPS.

10 years ago #7104
Greg222

That's what Raw Mode has been made for. If you put the word raw into the AIScript field, no spelling 'correction' is done on the user's input. For more information have a look at the Book of AI.

I'd like to have a personal / bot specific list of words that are regarded as correctly spelled, too.

10 years ago #7105
Yolo does the same thing

You: well yolo
Bot: In less there is reincarnation?
works. the single yolo doesn't
^([y]+)([o]+)([lo]+)$ (re) should work for a single word but it isn't.
Caps work.

You: YOLO
Bot: In less there is reincarnation?

10 years ago #7106
Thank you. And last thing how do I set up reactions to certain answers. Ex.) How are you? Happy. That's good. And, How are you? Sad? Oh I hope you feel better. I've run into problems having two on one question.

10 years ago #7107
Thats a good time to use a seek. You should be able to run many seeks off of one keyphrase. The tic tac toe game is an example of that. http://www.be9.net/BJ/

10 years ago #7108
Is there a way to test a user input against a memory (like against a plugin)?

Like this:

Keyphrase: what is (self-favoritefood)
Response: Oh, that happens to be the stuff I like to eat most!

10 years ago #7109
Out side of the if mem self-favoritefood exists,or doesn't exist I can't think of a way. I have plugins for Chinesefood. responses like Let`s get some take out Chinese food! remembering that chinesefood was the topic of conversation. Then on Mexican or Italian food you could say I thought you said Chinese food was your favavorite if mem chinese food exists.

10 years ago #7110
I'm trying to get my new bot to be more interactive when learning names. here's the problem. I'll give you an example:

Bot: Hi what's your name?
(seek (*) )
(Script: rem (key1) as only "name")
User: Claudia

Bot: Oh so you're name is Guest!

======= second try, same seek and ai script, same chat session--------

Bot: What is your name?

User: Bob

Bot: Oh so your name is claudia

-----
it doesn't like to put the names with an uppercase first letter as they are typed out and it insists on not processing the new name until another piece of text is inputed.

how do I fix this so that the bot doesn't look like it's getting the name wrong even though it's been processed?

10 years ago #7111
The memories are set only after the bot's response is formed. So you have to use (key1) instead of (mem-name) in your response where the name is set.

10 years ago #7112
IF you want a name to always start with a cap us (Key1) just cap the K.

9 years ago #7113
Sorry but one site question. Why aren't new bots showing up on the pages? I don't know if it's just me but I'm curious on what's happening.


Posts 7,102 - 7,113 of 7,766

» More new posts: Doghead's Cosmic Bar