> ## Documentation Index
> Fetch the complete documentation index at: https://adapt.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI

> Connect OpenAI to call GPT models from within Adapt

Connect your OpenAI account to Adapt so you can call OpenAI models for text generation and analysis. You will create an API key in the OpenAI platform and, optionally, note your organization and project IDs.

## Set up credentials

<Steps>
  <Step title="Sign in to the OpenAI platform">
    Go to [platform.openai.com](https://platform.openai.com) and sign in with an
    account that has access to the organization you want to use.
  </Step>

  <Step title="Open the API keys page">
    Navigate to [platform.openai.com/api-keys](https://platform.openai.com/api-keys).
  </Step>

  <Step title="Create a new secret key">
    Click **Create new secret key**, give it a name, and confirm. Copy the key
    immediately and store it somewhere safe.

    <Note>
      The secret key is shown only once. If you lose it, create a new key and
      delete the old one.
    </Note>
  </Step>

  <Step title="Find your organization and project IDs (optional)">
    In the platform settings, open **Settings > Organization > General** to find
    your **Organization ID**, and **Settings > Project > General** (with the
    project selected) to find your **Project ID**. These are only needed if you
    belong to multiple organizations or want usage scoped to a specific project.
  </Step>
</Steps>

## Connect to Adapt

<Steps>
  <Step title="Open Integrations">
    In Adapt, go to **Settings > Integrations**.
  </Step>

  <Step title="Find OpenAI">
    Search for **OpenAI** and select it from the catalog.
  </Step>

  <Step title="Start the connection">
    Click **Connect** to open the connection form.
  </Step>

  <Step title="Add your credentials">
    Enter the values you gathered above, then click **Add connection**:

    | Secret Name         | Value                           |
    | ------------------- | ------------------------------- |
    | `OPENAI_API_KEY`    | Your OpenAI API key             |
    | `OPENAI_ORG_ID`     | Your organization ID (optional) |
    | `OPENAI_PROJECT_ID` | Your project ID (optional)      |

    You can rename the connection and choose whether it is shared with your
    organization or kept personal to you.
  </Step>

  <Step title="Test the connection">
    Run a short prompt from Adapt to confirm OpenAI responds.
  </Step>
</Steps>

### Security

* Credentials are encrypted at rest with AES-256
* Treat your API key like a password and rotate it if you suspect exposure
* Scope usage to a dedicated project to track and limit spend
* Never share your API key or commit it to source control

## Capabilities

Call OpenAI models such as GPT directly from Adapt for text generation,
summarization, and classification. Use it to draft content, analyze text, and
power AI workflows without leaving Adapt.

### Examples

```
Summarize this customer feedback thread into three key themes.
```

```
Classify these support tickets by urgency and topic.
```

```
Draft a product announcement email from these release notes.
```

```
Extract the action items from this meeting transcript.
```
