# How to get the GPT Assistant key and connect it with the bot

#### What is a GPT Assistant?

A **GPT Assistant** is an AI-powered virtual assistant built using OpenAI’s GPT models that can understand natural language and generate human-like responses. It is commonly used to automate conversations, answer questions, provide support, generate content, and assist users across channels like websites, apps, and messaging platforms (e.g., WhatsApp).

In platforms like BotPenguin, a GPT Assistant can be connected to handle customer queries, FAQs, lead qualification, and conversational workflows intelligently.

***

#### ✅ Pros of Using a GPT Assistant

* **24/7 Availability:** Responds to users instantly at any time without human intervention.
* **Natural Conversations:** Understands context and provides human-like, conversational replies.
* **Scalable Support:** Handles multiple conversations simultaneously without performance issues.
* **Reduced Support Costs:** Minimizes dependency on human agents for repetitive queries.
* **Customizable Responses:** Can be trained or prompted to follow your brand tone and business rules.
* **Multi-Use Capabilities:** Useful for support, sales, onboarding, FAQs, and content generation.
* **Continuous Improvement:** Gets smarter over time with better prompts and structured inputs.

***

### How to Get the GPT Assistant API Key

Follow these steps to generate your GPT (OpenAI) API key:

**Step 1: Sign in to OpenAI**

Go to the OpenAI platform and log in with your account.

**Step 2: Open API Keys Page**

After logging in, navigate to **View API Keys** from your account dashboard.

**Step 3: Create a New API Key**

Click on **Create new secret key** and copy the generated key.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FesOyCb4MBgFeJ1Q7qJfT%2Fimage.png?alt=media&#x26;token=70a29dcc-0a00-48ac-8b30-cac6290f7b5b" alt=""><figcaption></figcaption></figure>

**Step 4: Save the Key Securely**

Store the API key safely. For security reasons, you won’t be able to view it again.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FXbJXNa1xiIYhhKwiYSTa%2Fimage.png?alt=media&#x26;token=351793ba-03b6-4e40-b252-26d6ec3d18ad" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FArQ7nV8cQyXzmNblEpiI%2Fimage.png?alt=media&#x26;token=d6217e71-84ae-4839-93a0-bc19f5ce1dc9" alt=""><figcaption></figcaption></figure>

**Step 5: Add the Key to Your Platform**

* Select your Bot
* Go to Third party Integrations

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2Fydlnu9KKiw4avGKLXRg2%2Fimage.png?alt=media&#x26;token=0fa9bcb3-e1fc-4bac-9882-8b0929eced7b" alt=""><figcaption></figcaption></figure>

* Search the ChatGPT and click on Connect Button.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FqQbEnAYJqr6teuIeT6jU%2Fimage.png?alt=media&#x26;token=8fd28d5d-0fc5-4b40-92e0-c864e7e70cff" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2F8eno2bsSr9NqJ0iPomq3%2Fimage.png?alt=media&#x26;token=33c6da51-08cf-4056-a694-cc40830daad9" alt=""><figcaption></figcaption></figure>

* Paste the copied API key , select the model and select the knowlede mix.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FWmFJZXXWsilgrLC8m1KF%2Fimage.png?alt=media&#x26;token=4a1f230f-05a0-4c71-b687-b5e7fbe65cb9" alt=""><figcaption></figcaption></figure>

### How to Connect GPT Assistant with Your Bot

#### Step 1: Create a GPT Assistant

1. Go to your **Settings** → **AI Assistants Configuration** → **Basic Configuration**.
2. Under **AI Service Provider**, select **Integrate with ChatGPT**.
3. In **Choose Model**, select **Assistants Beta**.
4. Paste the **GPT Assistant Key** you copied earlier.
5. Click **Update** to save the changes.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2Fck07VEBBgHR9KAaQhctz%2FScreenshot%202026-01-06%20at%205.12.31%E2%80%AFPM.png?alt=media&#x26;token=3abb39d2-8163-4241-8fd8-d452766f1454" alt=""><figcaption></figcaption></figure>

#### Step 2: Setup of AI Assistant&#x20;

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FnYo7HCXOfMIgrtS5FS5r%2FScreenshot%202026-01-06%20at%205.13.33%E2%80%AFPM.png?alt=media&#x26;token=e4af2dbb-fbc1-4cd2-8fd7-637cc8e4d859" alt=""><figcaption></figcaption></figure>

1. Click **Add Assistant**.
2. Enter an **Assistant Name**.
3. Select the **Model** (e.g., GPT-4o).
4. Set **Temperature** and **Top-P** as needed.
5. Add your **Custom Prompt** (instructions that define how the assistant should behave).
6. Click **Add Assistant** or **Update Assistant**.
7. Enable the assistant using the **Status toggle**.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FndMJuWxHjfFEOW0jqGCR%2FScreenshot%202026-01-06%20at%205.13.47%E2%80%AFPM.png?alt=media&#x26;token=daa7f385-c542-40d2-9cc4-768e0d8ab824" alt=""><figcaption></figcaption></figure>

***

#### Step 4: Edit The Assistant

1. From the list select any assistant that you would like to edit by clicking on edit icon.
2. Update the details.
3. Click on the Update Assistant.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FOfWejJrnm9sA8CcD3fLv%2FScreenshot%202026-01-06%20at%205.14.53%E2%80%AFPM.png?alt=media&#x26;token=7696e769-9a34-4a40-87ae-82ad02198b51" alt=""><figcaption></figcaption></figure>

#### Test the Bot

* Open your chatbot and send a test message.
* The bot will now respond using the configured **GPT Assistant logic and instructions**.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FZIH21Ui9DFFnEvtZnwE6%2Fimage.png?alt=media&#x26;token=afd55b74-e6f1-44df-bf50-13429c15771c" alt=""><figcaption></figcaption></figure>
