# Connect OpenAI

## How to set up your OpenAI account and connect to Flochat.

{% embed url="<https://content.app-sources.com/s/35615459206875191/uploads/AI_SERIES/Setting_up_your_openai_account_in_2024-0450639.mp4>" %}

{% embed url="<https://openai.com/>" fullWidth="false" %}

Once you have logged into OpenAI be sure to verify your email:&#x20;

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

After you verify the email you will be re-directed to your OpenAI account, from here you need to create/subscribe to a paid plan.&#x20;

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

Now create your API key so that you can add it to Flochat - To do this you will need to verify via phone number to activate the API key settings

{% hint style="danger" %}
Once done, create your API key, name it and save it somewhere safe as you cannot retrieve it again once closed.
{% endhint %}

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

Once you have the API key from OpenAI you can now paste it into Flochat. Navigate to the main dashboard and select the integrations tab:&#x20;

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

Now select the OpenAI integration and paste your key as shown below

<figure><img src="/files/Gb0Gf5N0DAwVwBN72xRL" 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.flochat.ai/artificial-intelligence/openai-or-chatgpt/connect-openai.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.
