> For the complete documentation index, see [llms.txt](https://help.inboxhour.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.inboxhour.com/api-channel-integration/how-to-integrate-with-openai-chatgpt.md).

# 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="https://3023391319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMOBtVWyipahciYdmF8%2Fuploads%2FiVtLdGcSc3vuhYJMiD1q%2Fscreenshot-rocks%20(29).png?alt=media&amp;token=fc237b58-11a3-4d03-aafe-97c5625b696a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3023391319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMOBtVWyipahciYdmF8%2Fuploads%2FpJoYxuAwRrAi0jVC9PRX%2Fscreenshot-rocks%20(30).png?alt=media&amp;token=9f85fda4-9347-4467-ae73-6c7c71adf023" 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="https://3023391319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMOBtVWyipahciYdmF8%2Fuploads%2FzJwfSgOOL8t9p7Y3Dmwe%2Fscreenshot-rocks%20(32).png?alt=media&amp;token=c968c6d1-dd7f-422c-b4f6-891d05b7b827" 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="https://3023391319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMOBtVWyipahciYdmF8%2Fuploads%2FkBZtqPi4R24xEXZ33mW7%2FOverview-OpenAI-API.png?alt=media&amp;token=249acaad-5632-4afc-948c-14ace1eb092a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3023391319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMOBtVWyipahciYdmF8%2Fuploads%2FhyPJd3ykSL0WtqNF1iYB%2FAccount-API-Keys-OpenAI-API.png?alt=media&amp;token=66889d05-c554-48c3-b858-3b2a09358a26" 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="https://3023391319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMOBtVWyipahciYdmF8%2Fuploads%2F3tOMWXRLfd2FTv43kVvP%2FAccount-API-Keys-OpenAI-API.png?alt=media&amp;token=7eeec157-ba48-459d-9543-457b3bb0e1bf" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3023391319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMOBtVWyipahciYdmF8%2Fuploads%2FVesbaTTNcF5QAdU8YgfB%2FAdd-new-flow.png?alt=media&amp;token=89683271-9be5-4854-bde8-da7f868c14f8" alt=""><figcaption></figcaption></figure>
