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,805 - 7,816 of 8,130
Posts 7,805 - 7,816 of 8,130
Many questions are answered in the FAQ.
Orbital
4 years ago
4 years ago
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
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
Zeig Wolf
4 years ago
4 years ago
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, * "
bobstack
4 years ago
4 years ago
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.
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.
palacinkyman
4 years ago
4 years ago
So I would have to basically program it myself using memories and yes and no as feedback from user to decide wether to keep them or not. Horrible.
Zeig Wolf
4 years ago
4 years ago
It's a lot more sophisticated than yes or no and memories. You don't have to store any memories at all if you don't want to. But you do have to type most every keyword and answer yourself. A glance through The Book of AI would give you a rough understanding of what you're working with here.
palacinkyman
4 years ago
4 years ago
I think you did not understand. I was just saying how unimaginably hard would be to make system how to tell the bot wether the things he says are right or not. In all self learning bots, the feedback from user is crucial.
palacinkyman
4 years ago
4 years ago
Help! I accidentally deleted seek without backup. Is there a way to get it back?
palacinkyman
4 years ago
4 years ago
I just rewritten the whole seek.
Now I would like to ask how can I print out list of memories remembered by bot into a chat. When I write: (memoryname) it prints out only one memorycontent, even though there might be more then one.
Also, what can be a reason why forget "memorycontent" from "memoryname" doesn't work? It says that it doesn't recognize this command.
Now I would like to ask how can I print out list of memories remembered by bot into a chat. When I write: (memoryname) it prints out only one memorycontent, even though there might be more then one.
Also, what can be a reason why forget "memorycontent" from "memoryname" doesn't work? It says that it doesn't recognize this command.
bobstack
4 years ago
4 years ago
if you have more than one script you will have
to use this ; on every last script except the last one.
to use this ; on every last script except the last one.
» More new posts: Doghead's Cosmic Bar