Message Boards Message Boards

0
|
1243 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

GPT Action Schema and Authentication Issue

Posted 10 months ago

Hi everyone,

Can someone point to a resource that explains how to set up a action in chatGPT to talk to a wolfram API. Or is there a better way to setup a custom GPT to talk to wolfram.

I am very new and inexperienced at coding/programming. TBH I do a fair bit of javascript based stuffed in my Motion Design work. But apart from that I pretty much lean heavily on chatGPT to help with coding.

I am trying to set up a custom GPT. Basically I want it to be a volumetric conversion assistant. i.e. if i enter a prompt of 2 Tablespoons of olive oil. I want it to return the weight in grams. I have used wolfram alpha in the past to give me answers to this stuff and i though i would try getting wolfram to talk to this GPT. But I am getting errors because i do not know how to set up the App ID in the Action.

I understand in a query like this i would plugin my App Id where it says DEMO https://api.wolframalpha.com/v1/result?i=How+many+ounces+are+in+a+gallon%3F&appid=DEMO

In that I setup a action in chat GPT. I have a "Short Answers App-ID" i have setup a schema that looks like this

{
"openapi": "3.1.0",
"info": {
"title": "Wolfram Alpha Short Answers API",
"description": "Provides short answers to questions using Wolfram Alpha, with metric units.",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://api.wolframalpha.com/v1",
"description": "Wolfram Alpha Short Answers API Server"
}
],
"paths": {
"/result": {
"get": {
"operationId": "getShortAnswer",
"summary": "Get short answers with metric units from Wolfram Alpha",
"parameters": [
{
"name": "i",
"in": "query",
"description": "The query for which a short answer is sought",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "units",
"in": "query",
"description": "Specifies the unit system for the answer",
"required": false,
"example": "metric",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response with a short answer",
"content": {
"text/plain": {}
}
},
"403": {
"description": "Unauthorized - Check authentication setup"
}
}
}
}
}
}

Then when I

I also setup my authentication in the "Authentication Field" Authentication Entered in here

But it seems i keep getting error s of the API key not being supplied.

So yes Can someone assist with some information on how to get this to work. Or am i approaching it wrong.

Thanks in advance

POSTED BY: Ben Howard
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract