# Setting up OpenAI/ChatGPT as your agnoStack AI Provider

Connect OpenAI to agnoStack in Zendesk: create an OpenAI account, generate an API secret key, then enter it (and your Organization ID, if needed) in agnoStack.

![agnoStack AI Providers with OpenAI selected and the API Key and optional Organization ID fields](https://go.agnostack.com/images/configuration/openai/onboarding-openai-configuration-panel.png)

*The OpenAI configuration screen in agnoStack.*

[OpenAI](https://openai.com) is a research organization that builds Artificial Intelligence (AI) programs trained on large language models. One of its most popular programs is [ChatGPT](https://openai.com/blog/chatgpt).

ChatGPT is very good at understanding the context of what you're doing when coming up with responses to customers. It can be used for many things, including customer service chatbots, **translating macros**, **writing quick responses** to customer inquiries and much more.

OpenAI is available as an [Add-On Provider](https://agnostack.com/faqs/setup-onboarding/choose-optional-add-ons#add-on-providers) in agnoStack, to help craft Quick Replies to customers with our [Macro Snippets](https://agnostack.com/release-notes/release-number/2-2-0#macro-snippets--advanced-macros) and to generate (or localize) [Advanced Macros](https://agnostack.com/release-notes/release-number/3-5-0#advanced-macros).

To connect OpenAI, you'll need an OpenAI **API Key** and, if you use an Organization other than your default one, your **Organization ID**. Follow the steps below to get them.

## Creating an OpenAI Account

1. Go to the [OpenAI API Platform signup page](https://platform.openai.com/signup).
2. Enter your email address and click **Continue**.
3. Follow the instructions to create an account.

## API Key and Organization ID

1. Once you've created an account, click your profile (top right) and click **View API keys**.

   ![OpenAI dashboard with the profile menu open](https://go.agnostack.com/images/configuration/openai/onboarding-openai-dashboard.png)

   *The OpenAI dashboard.*

2. If your account belongs to more than one Organization, select the right Organization from the dropdown menu.
3. Click **Create new secret key**.

   ![OpenAI API keys page with the Create new secret key button](https://go.agnostack.com/images/configuration/openai/onboarding-openai-api-keys.png)

   *API keys in OpenAI.*

4. Give your API key any name you'd like (for example, *agnoStack*) and select the API you want to use.
5. Click **Create secret key**.

   ![OpenAI Create new secret key dialog](https://go.agnostack.com/images/configuration/openai/onboarding-openai-new-api-key.png)

   *Creating a new secret key.*

6. Copy your new API secret key. This is your **API Key**.

   ![OpenAI dialog showing the new secret key to copy](https://go.agnostack.com/images/configuration/openai/onboarding-openai-copy-api-key.png)

   *Copying the new secret key.*

7. If you selected an Organization that isn't your default, go to the **Organization Settings** screen and copy your **Organization ID**. You don't need it if you're using your Personal (or Default) Organization.

   ![OpenAI Organization Settings with the Organization ID](https://go.agnostack.com/images/configuration/openai/onboarding-openai-organization-settings.png)

   *The Organization ID in OpenAI's Organization Settings.*

> **Note:** Keep your API key secure and only share it with those who need access to it.

## Entering Your Credentials in agnoStack

In Zendesk, open the agnoStack configuration panel (via the **Manage Your Account** link or the agnoStack icon in the left sidebar), select **OpenAI** under **AI Providers**, and enter the following:

| Field | Value |
| --- | --- |
| API Key | Your OpenAI API secret key |
| Organization ID (optional) | Your OpenAI Organization ID, if you're not using your default Organization |

Continue through the rest of the configuration screens and click **Activate** to save your new Add-On configuration.

If you run into any trouble or need help, contact us any time at [support@agnostack.com](mailto:support@agnostack.com).
