# How To Integrate With OpenAI (ChatGPT)

Go to the API channels menu and click the Open AI tab. The Open AI (ChatGPT) integration feature is only available for the **Standard** and **Premium** plans only.

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

Then, scroll down and you can see the OpenAI option. Just click the OpenAI option.

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

Then, fill in the OpenAI API secret key. You can get this secret key from the OpenAI website. Check the tutorial below on how to get the secret key.&#x20;

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

**Instruction to AI**: you can use the default instruction or you can create your own instruction. This is to teach general instruction to your AI.

**Models**: choose your ChatGPT Models.

Then, click save when you're done.&#x20;

### How to get the OpenAI secret key

Firstly, you need to have an OpenAI account. If you don't have it, you can sign up for an account at this link: <https://openai.com/api/>

After login to the OpenAI account, go to your profile and click on the **View API Keys**

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

Then, click on the **Create New Secret Key** button to generate your API key.&#x20;

<figure><img src="/files/3JJWgmTxJLcWlSvuD2X1" alt=""><figcaption></figcaption></figure>

A popup with your secret key will appear. Just copy this secret key and put it in the setting in the Inboxhour system as in the previous step.

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

Now you can use the AI reply in the flow builder feature.&#x20;

<figure><img src="/files/8m2JbNjOiuFAkXZuckZf" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.inboxhour.com/api-channel-integration/how-to-integrate-with-openai-chatgpt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
