Newcomers

This is a forum for newcomers to the Personality Forge. Many questions can be answered by reading the Book of AI and the FAQ under the "My Bots" link in the upper corner.

Posts 7,798 - 7,809 of 8,130
Many questions are answered in the FAQ.


3 years ago #7798
You can remember an array of up to 10 things per memory.
For remembering multiple things in one go:
"I like * and *"
rem (key1) as "thing";
rem (key2) as "thing";
etc.
It's not the most helpful as it's sometimes hard to predict, but it's there. You can even store a whole sentences and only take up one slot in the memory array.

3 years ago #7799
It was just an example. But yes, I want to use it to forget old and open up new areas.

forget "clothesstore" from "typeofplace";
Seems like what I was looking for.

Thank you all for your help.

3 years ago #7800
Oh, there's a forget? That's a lot simpler. Felt very hack-ish the workaround, though similar to working around the lack of or commands.

I'd still recommend limiting areas based on their own memory - such as isClothesStoreOpen - though your way allows for a suggestion-esque "let's go to the (mem-typeofplace) talking about random places from the list. A hard limit of 10 things per memory feels like it could cause issues, though, for scaling.

3 years ago #7801
I also needed this command for e.g. removing "angry" from emotions. Etc.

3 years ago #7802
For 'or' commands, say you have A,B,C,and D. all you need to do is:
If (memory) is not "A";
If (memory) is not "B";
That's the same as
if (memory) is "C or D";

3 years ago #7803
i never use is not.i think you are right.

3 years ago #7804
Aye, Zieg - it can get a bit cumbersome with many different options, though! Feels easy to make a mistake when you have such a long line stacked, an or would be so much more useful.

On a slightly different note, I'd like to wipe the hitcounts of at least some of the seeks. Is that doable? The important ones to wipe will be answers to votes, should be doable by removing the answers, uploading, and getting new seeks. Does this free up the ID for later use, or is it just a hole permanently? I suspect it's just a hole, as I've seen a few numbers that just aren't in (leading to a too many goto error, interestingly, if you try to goto a skipped number), though unsure of the cause of those gaps. I'd also like to be able to wie the counts after updating the branches, lets me check that people are able to pass through seeks/KPs without difficulties. A global reset for the hits would be ideal, but I can't see one!

3 years ago #7805
Hi,

I'm trying to use the Simple API to test the connection to host and learn a bit about the API. On my Linux machine, I'm using curl to access the host and send the sample request. First I whitelisted my IP address on my Personality Forge account with the command. I got my IP with the command:

wget -qO- ifconfig.co

Then I use curl with the sample request from the Simple API documentation and enter the following terminal command:

curl -X GET https://www.personalityforge.com/api/chat/?apiKey=[myapikey]&chatBotID=6&message=How+are+you+doing+today%3F&externalID=abc-639184572&firstName=Tugger&lastName=Sufani&gender=m

But I get this error:

{"success":[0],"errorType":"Missing parameter","errorMessage":"The hash parameter must be passed in the url."}

I thought that, by using Simple API, I don't have to use a hash parameter? I must be missing something here. If anyone has any ideas I'd really appreciate it!

Thanks,
- Orbital

3 years ago #7806
I don't use curl, but try removing "-X GET", GET is the default command with just "curl https...". "-X GET" is for authenticating, and you're not passing an authentication hash in your request. You can also try adding the * wildcard to your whitelisted IP's, just in case. "YourIP, * "

3 years ago #7807
Is there a way to make your bot self learning?

3 years ago #7808
Not any practical way, no

3 years ago #7809
you can use plugins and make plugins though.
then you can make your chatbot remember random selections from the plugin.
like for instance it could choose something random to wear and eat then remember that during the whole conversation.
it could be eating something for a while during the conversation.


Posts 7,798 - 7,809 of 8,130

» More new posts: Doghead's Cosmic Bar