> For the complete documentation index, see [llms.txt](https://docs.heyamica.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.heyamica.com/connecting-llms-your-core-ai-chatbot-model/using-openai.md).

# Using OpenAI

Navigate to [platform.openai.com](https://platform.openai.com/). On the left hand side, click on the "API Keys" tab. Click on "Create new secret key". Copy the API key and paste it into the settings.

#### ChatGPT Configuration

Set the backend to ChatGPT:

```bash
Settings -> ChatBot -> ChatBot Backend -> ChatGPT
```

Set the API key:

```bash
Settings -> ChatBot -> ChatGPT -> OpenAI API Key
```

#### TTS Configuration

Set the backend to OpenAI:

```bash
Settings -> Text-To-Speech > TTS Backend -> OpenAI TTS
```

Set the API key:

```bash
Settings -> Text-To-Speech > OpenAI -> API Key
```

#### Transcription Configuration

Set the backend to Whisper (OpenAI):

```bash
Settings -> Speech-to-Text > STT Backend -> Whisper (OpenAI)
```

Set the API key:

```bash
Settings -> Speech-to-Text > Whisper (OpenAI) -> API Key
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.heyamica.com/connecting-llms-your-core-ai-chatbot-model/using-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.
