> For the complete documentation index, see [llms.txt](https://help.botpenguin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.botpenguin.com/settings/integrations/chatgpt.md).

# ChatGPT

### What is ChatGPT Integration?

ChatGPT is a large language model (LLM) developed by OpenAI. It is trained on large amounts of text data, which allows it to understand questions, follow context, and generate human-like responses in a conversation. By connecting it to BotPenguin, your Voice Bots and AI Agents can use ChatGPT as their underlying AI — handling questions, generating responses, and holding smarter conversations.

To connect ChatGPT, you will need an **API key** from OpenAI. Think of an API key as a password that lets BotPenguin talk to your OpenAI account securely.

***

### When Should You Use This?

Use ChatGPT Integration when:

* You want your Voice Bot or AI Agent to give smarter, more natural responses
* You already have an OpenAI account and want to use it with BotPenguin
* You are managing multiple bots and want to use different OpenAI keys for each one

***

### Before You Begin

Before starting, make sure you have:

* A BotPenguin account
* An OpenAI account with a credit card added and billing credits available

If you do not have an OpenAI account or API key yet, start with **Part B** below first, then come back to **Part A**.

***

### Step-by-Step Instructions

#### Part A: Connect ChatGPT with BotPenguin

#### Step 1: Open the Integrations Page

The Integrations page is where you connect third-party tools like ChatGPT to your BotPenguin account.

1. Look at the left side of your screen. At the bottom of the menu, click **More** — this is the icon with three dots.

<figure><img src="/files/gH9KDAxgbTo4S0SlPR2J" alt=""><figcaption></figcaption></figure>

2. After navigating to **More**. Click **Integrations**.

<figure><img src="/files/SWf7928ztDAEcVfz6bS2" alt=""><figcaption></figcaption></figure>

3. You will see a list of all available integrations. Find **ChatGPT** by scrolling or typing its name in the search bar at the top.

<figure><img src="/files/JbywyWTUG1PPjtDvlOCM" alt=""><figcaption></figcaption></figure>

4. Click on the ChatGPT card and then click **Connect.**

<figure><img src="/files/hkbyyTbUgRiWJVBg8ApG" alt=""><figcaption></figcaption></figure>

***

#### Step 2: Open the Configuration Form

1. Click the **Connect** button on the top right. This opens the configuration form.

<figure><img src="/files/NVfctUmfqvSpwAB5Uv3E" alt=""><figcaption></figcaption></figure>

***

#### Step 3: Fill in the Configuration Form

The form has two fields:

**Configuration Name**\
This is just a label to help you recognise this connection later. It does not affect how the integration works.

Give it a name that tells you which key or bot it belongs to. For example:

* `Voice Bot Key`
* `Main OpenAI Account`
* `Sales Agent GPT`

<figure><img src="/files/9P4h7IXYork8oHi1ejxU" alt=""><figcaption></figcaption></figure>

**API Key**\
This is the secret key you get from your OpenAI account. It is what allows BotPenguin to connect to ChatGPT on your behalf. Paste it here exactly as copied — do not add any extra spaces.

<figure><img src="/files/qNtU26pp9Hjt7hoVZ3D8" alt=""><figcaption></figcaption></figure>

***

#### Step 4: Save the Configuration

Once both fields are filled in, click **Connect**.

If the key is valid, the configuration will be saved and appear in the list below the form. You will see the following columns:

| Column                 | What it means                                           |
| ---------------------- | ------------------------------------------------------- |
| **Configuration Name** | The name you gave this connection                       |
| **Details**            | Click the info icon to see which API key is linked      |
| **Status**             | A toggle switch — green means active, grey means paused |
| **Actions**            | A delete icon to remove the configuration permanently   |

<figure><img src="/files/mrdORhwFq5Q2X9qBB8as" alt=""><figcaption></figcaption></figure>

> 💡 Use the **Status toggle** to pause a configuration without deleting it. This is useful if you want to switch keys temporarily.

***

#### Part B: Get Your OpenAI API Key

Follow these steps if you do not have an OpenAI API key yet.

***

#### Step 1: Go to the OpenAI Platform

Open your browser and go to [platform.openai.com](https://platform.openai.com/).

Log in with your OpenAI account. If you do not have one, click **Sign Up** and create a free account first.

<figure><img src="/files/mbffZFYffKBHAWGBi4IQ" alt=""><figcaption></figcaption></figure>

***

#### Step 2: Go to the API Keys Section

Once logged in, look at the left sidebar on the screen.

Click on **API Keys**. If you cannot find it, use the search bar at the top and type "API Keys".

<figure><img src="/files/mfpSbt7DcqIveCzEQPEp" alt=""><figcaption></figcaption></figure>

***

#### Step 3: Create a New Key

On the API Keys page, click the **Create new secret key** button.

<figure><img src="/files/Cq7kDWpSuDQ95L0aCkEd" alt=""><figcaption></figcaption></figure>

A small form will appear asking for:

* **Name** (optional) — a label for this key, like `BotPenguin Key`
* **Project** — select the OpenAI project this key will be used with

Click **Create secret key** when done.

<figure><img src="/files/VE2Ayaq0ln6tjrJ5Sws3" alt=""><figcaption></figcaption></figure>

***

#### Step 4: Copy and Save the Key

Your new key will appear on screen. It looks like a long string of letters and numbers.

**Copy it immediately** and save it somewhere safe — a notes app, a password manager, or a secure document. OpenAI will never show this key again once you close this window.

<figure><img src="/files/v4Nlg9kTd6hQgDBzzaoe" alt=""><figcaption></figcaption></figure>

***

#### Step 5: Add Billing Credits to Your OpenAI Account

Your API key will not work until you add a payment method and credits to your OpenAI account. Without this, ChatGPT will return errors even if the key is entered correctly.

1. In the left sidebar, click **Billing**.

<figure><img src="/files/PVp69BlDxt438zcg5ehj" alt=""><figcaption></figcaption></figure>

1. Click **Add Payment Details**.
2. Enter your credit card information and save.

> 💡 OpenAI accepts credit cards only. Once billing is set up, your API key becomes active and ready to use.

Now go back to **Part A, Step 3** and paste this key into BotPenguin.

***

### Best Practices

> 💡 Name each configuration clearly so you know at a glance which OpenAI key it uses and which bot it is for.

> 💡 Set up billing on OpenAI before testing — most connection errors happen because credits are missing.

> 💡 Save your API key the moment it is generated. There is no way to retrieve it from OpenAI after you close the creation window.

> 💡 If you want to stop using a configuration temporarily, use the **Status toggle** instead of deleting it.

> 💡 If you manage multiple bots with different OpenAI accounts, create a separate configuration for each key.

***

### What Might Go Wrong

| Situation                            | What Happens                                                      |
| ------------------------------------ | ----------------------------------------------------------------- |
| API key copied with an extra space   | BotPenguin cannot verify the key and the connection fails         |
| No billing credits on OpenAI         | The key appears connected but returns errors during conversations |
| Key was deleted or revoked in OpenAI | The integration stops working even though it shows as connected   |
| Status toggle is turned off          | ChatGPT will not be available in any bot using that configuration |

***

### Troubleshooting

<details>

<summary>The connection fails when I click Connect</summary>

* Check that the API key was pasted correctly — no extra spaces at the start or end.
* Log in to your OpenAI account and confirm the key has not been deleted or revoked.
* Make sure your OpenAI account has billing set up and active credits.
* If none of the above works, generate a new key in OpenAI and try again.

</details>

<details>

<summary>The key is connected but my bot is giving errors during conversations</summary>

* Log in to OpenAI and check your billing — credits may have run out.
* Confirm the key has not been restricted or revoked.
* Go to **Integrations**, find the **ChatGPT configuration**, and make sure the **Status** toggle is turned on (green).

</details>

<details>

<summary>ChatGPT is not showing as an option inside my bot settings</summary>

* Go to **More → Integrations → ChatGPT** and confirm the configuration was saved successfully.
* Check that the **Status** toggle is green (active).
* Refresh the page and check the bot settings again.

</details>

<details>

<summary>I cannot find my API key anymore</summary>

OpenAI does not allow you to view a secret key after it has been created.

You will need to:

1. Go back to your OpenAI account.
2. Generate a new key.
3. Update the configuration in BotPenguin with the new key.

</details>

### FAQs

<details>

<summary>Which bot types can use ChatGPT Integration?</summary>

ChatGPT Integration works with **Voice Bots** and **AI Agents** on BotPenguin.

</details>

<details>

<summary>Can I connect more than one API key?</summary>

Yes. You can create multiple configurations, each with a different API key.

Each configuration can be managed and toggled independently.

</details>

<details>

<summary>What happens if my OpenAI credits run out?</summary>

Your bot will start returning errors during conversations.

Log in to OpenAI, go to **Billing**, and add more credits to restore the connection.

</details>

<details>

<summary>Can I pause a configuration without deleting it?</summary>

Yes. Use the **Status** toggle next to the configuration in the list.

Turning it off pauses the configuration without removing it.

</details>

<details>

<summary>My key looks correct but is still not working — why?</summary>

A few things to check:

* The key may have been revoked inside OpenAI.
* It may belong to a project with restricted permissions.
* It may have been pasted with an invisible extra character.

Try generating a fresh key and connecting again.

</details>

<details>

<summary>Which ChatGPT models are available?</summary>

The available models depend on your OpenAI account access.

Common options include:

* GPT-3.5
* GPT-4
* GPT-4 Turbo
* GPT-4o
* Assistants API models

You can select the model inside your bot's AI settings after the integration is connected.

</details>

***

### Support

If everything is correct and you are still unable to move forward, write to us at <support@botpenguin.com>. We will respond back within 48 business hours.
