OpenAI Integration Setup

Setup an OpenAI integration with Glide

The OpenAI integration allows you to leverage the power of artificial intelligence with OpenAI's language models. These models have the ability to comprehend, produce, and interact with text and images.

OpenAI Usage and Rate Limits

OpenAI charges for API usage and has variable rate limits. If you exceed your quota, you will get an error in Glide.

Adding and Configuring the Action

  1. You’ll need to create an account on OpenAI if you haven’t already.

  2. In OpenAI, head to the API keys page and create a new API search key. Once you close the key window, you cannot view the key again. Save this key in a safe place.

  3. In your Glide app, click the Settings icon in the upper-right corner.

  4. Navigate to the Integrations tab and select OpenAI.

  5. Click the Add button.

  6. Copy-paste the OpenAI API key to finish configuring the integration. It will save automatically.

Using OpenAI with Glide

There are many features that become available with the OpenAI integration in Glide. For a deep dive into each one and examples about how to use them, check out our OpenAI and Glide guide. Note that some features were deprecated as of December 2023. Existing instances of these features will continue to work, but new instances cannot be created.

Feature

Use case

Answer Question About a Table

Question, Source table, Row specifier, Additional context, Model tweaks, Answer

Generate Image

Create images from a text prompt.

Complete Chat

Bring ChatGPT into your app and use chat history in answers.

Complete Chat (With History)

Bring ChatGPT into your app. Ignores chat history in answers.

Speech to Text

Turn an audio recording into text.

Text to Speech

Generate audio from text.

Configuring OpenAI Actions

Each OpenAI feature can be configured in different ways, depending on what you want your Glide app to do. Features can be added to the Data Editor, the Actions Editor, or both. Below is a table with an overview of where each feature can be configured. For details about how to configure each one, click the feature to be taken to our full OpenAI Guide.

Feature

Fields setup in the Data Editor

Fields setup in an Action

Answer Question About a Table

-

Question, Source table, Row specifier, Additional context, Model tweaks, Answer

Generate Image

-

Prompt, Image output

Complete Chat

Prompt, Message, Model, Model tweaks

Message history, Prompt, Message, Session ID, Model, Model tweaks, Result

Complete Chat (With History)

Prompt, Message, Model, Model tweaks

Message history, Prompt, Message, Session ID, Model, Model tweaks, Result

Speech to Text

Audio column, text column

Audio column, text column

Text to Speech

Audio column, text column

Audio column, text column

For detailed setup instructions and examples for each feature, check out our full guide on OpenAI and Glide.

Have a question about OpenAI Integration Setup? Ask the Glide community.
Need more help? Hire an Expert.

Updated more than a week ago
Was this article helpful?