Setup your GPT
To connect your custom GPT to Superface you need to add an Action to your GPT configuration. You can do this from the Configure section of the OpenAI GPT editor.
Actions allow you to further customize your GPTs. To find out more about them take a look at the OpenAI Actions in GPTs documentation.
In the configuration scroll to the bottom of the screen until you see the Actions section, then click on Create new action
To set the authentication for your new Action, click on the cog icon in the authentication section at the top of the Add actions page.
The authentication settings dialogue will open.
The Authentication Type is API Key and the Auth Type is
Copy the Action Authentication Token from your GPT Actions page in Superface and paste it into the API Key field.
Click on Save. Your authentication is now set up.
Next, you need to import the action schema that defines the different tools that your GPT will be able to access. We recommend using the Import from URL option for this.
Click on Import from URL and paste the URL of the Action Schema from your Superface GPT Actions settings. You can get this by clicking Copy Import URL.
After pasting your import URL in your GPT configuration, click on Import and OpenAI will fetch the schema from Superface.
Once the import has completed you will see the full schema loaded into the Schema window
Once the schema is imported from Superface, you will see the full list of available actions that your GPT can use.
Testing an action
Any of the available actions can be individually tested by clicking on Test. The results, or any errors, will be shown in the Preview window.
The page lists all the tools/APIs that your GPT will have access to and will stay up to date as you add or remove tools in future.
If you make your GPT public, users will have access to any of your connected tools and APIs using your credentials.