Connect to OpenAI
You can connect to OpenAI and make it available as a resource in Retool. Once complete, your users can write queries that interact with OpenAI data.
Requirements
All users for Retool organizations on Free or Team plans have global Edit permissions and can add, edit, and remove resources. If your organization manages user permissions for resources, you must be a member of a group with Edit all permissions.
To create a OpenAI resource, you need:
:::
An OpenAI API Key
:::
1. Create a new resource
Sign in to your Retool organization and navigate to the Resources tab. Click Create new, then select Resource.
2. Select the resource type
Retool can connect to almost any API or database, and has built-in integrations for popular data sources. Select the OpenAI resource type.
3. Configure the resource
Specify a name and location for the OpenAI resource. Retool displays the resource name and type in query editors to help users identify them. Next, configure the required settings.
Setting | Description |
---|---|
API Key | The API key used for authentication. |
4. Save the resource
Click Create resource to complete the setup. You can then click either Create app to immediately start building a Retool app or Back to resources to return to the list of resources.
Wrap up
Your OpenAI resource is now ready to use. To interact with OpenAI data, select the resource in the query editor. You can specify the API endpoint to use when writing a query.