JSON export for ChatGPT interaction
Asked by Joshua Hori:

I'm attempting to export a Trello JSON file to integrate into a GPT, but when importing to GPT, I get the following error:

Could not find a valid URL in 'servers'

When I perform a search \& find for "servers", I can't locate it in the JSON file.

Has anyone else been able to import their Trello JSON file into GPT? How did you get it to work?


Answers:
author: Brian Zawisza
body: You can configure an action on <https://chat.openai.com/gpts/editor> by going to configure \> add actions. Make sure to fill out the authentication section.

Here's an example schema that seems to work for me. You can copy other paths/components from <https://dac-static.atlassian.com/cloud/trello/swagger.v3.json> . I can't paste the entire schema since it's too large.

You can test it out with the prompt: "call the api.trello.com API with the get-boards-id operation on board id "one of your board ids".

<https://chat.openai.com/gpts/editor/g-AOWJa85mF>

```
{
  "openapi": "3.1.0",
  "info": {
     "title": "Get trello data",
     "description": "Retrieves trello data",
     "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.trello.com/1"
    }
  ],
   "paths": {
      "/boards/{id}": {
        // copy the "/boards/{id}" / specific paths section from our swagger documentation: 
        // note: you'll want to delete the top-level "parameter" section and add it to each individual request method like "get", "put", etc.
         "get": {
            "tags": [],
            "summary": "Get a Board",
            "description": "Request a single board.",
            "operationId": "get-boards-id",
            "parameters": [
            // this "id" parameter wasn't original in the "get" section.
            {
                 "name": "id",
                 "in": "path",
                 "description": "",
                 "required": true,
                 "schema": {
                     "$ref": "#/components/schemas/TrelloID"
                 }
            },
            {
                 "name": "actions",
                 ...
            }
        },
      }
   },
   "components": {
     // copy the "components" section from our swagger documentation: https://dac-static.atlassian.com/cloud/trello/swagger.v3.json?_v=1.524.0    
   }
}
```

comments: author: Joshua Hori
body: Thanks for this suggestion! I'll give it a try and report back!


author: Kathlyn
body: How does exporting ChatGPT interactions to JSON format benefit users or developers?

comments: author: Joshua Hori
body: You've got it backwards. I'm exporting Trello JSON to import into and create a GPT. Very beneficial to developers, not users.


author: Dreamsuite Mike
body: Hi [@Joshua Hori](/t5/user/viewprofilepage/user-id/5364739)

May I ask what your aim is here?  
I am wondering whether you would be better connecting Trello to GPT with make.com or Zapier?!

comments: author: Joshua Hori
body: I have a list of suggested tools with labels connected that indicated what operating systems the tools work on, with descriptions, web links, and videos demos of the tools. I'm wanting to build a GPT that sifts through my lists and provides suggestions based on a number of questions asked.