# Azure OpenAI

{% hint style="info" %}
The AI Writing Assistant AddOn is only available for [Superpowers](https://developers.beefree.io/pricing-plans) and [Enterprise](https://developers.beefree.io/pricing-plans) plans. The AI Writing Assistant and Azure OpenAI provider are available for Email, Page, and Popup builders.
{% endhint %}

## **Overview**

This page discusses how to configure Azure OpenAI as a provider for the [AI Writing Assistant AddOn](/beefree-sdk/builder-addons/partner-addons/ai-writing-assistant.md) within the Beefree SDK Developer Console. If the AI Writing Assistant AddOn is already enabled for your application, and you'd like to switch providers, take the steps outlined in the [Switch Providers](/beefree-sdk/builder-addons/partner-addons/ai-writing-assistant.md#switch-providers) section of the [AI Writing Assistant page](/beefree-sdk/builder-addons/partner-addons/ai-writing-assistant.md#switch-providers) to enable Azure OpenAI as your new provider.

{% hint style="info" %}
**NNote:** [ChatGPT4o Mini](https://platform.openai.com/docs/models) is the model used when you configure OpenAI as your provider.
{% endhint %}

## **Prerequisites**

Prior to getting started, ensure you have the following:

* Beefree SDK [Superpowers or Enterprise plan](broken://spaces/svPtAq2FGbWqZBP0UXk1).
* An Azure OpenAI account, API Key, URL Provider, and Deployment ID.
* The AI Writing Assistant AddOn enabled in the [Beefree SDK Developer Console](https://developers.beefree.io/login?from=website_menu).

## **Configuration Steps**

Take the following steps to configure this provider:

1. Log in to the [Beefree SDK Developer Console](https://developers.beefree.io/login?from=website_menu).
2. Navigate to the application with the AI Writing Assistant enabled.
   1. Click **Details**.
3. Navigate to the **AddOns** under **Application configuration** section.
   1. Click **View more**.
4. Click the **Manage Providers** tab.
5. Click **Add provider**.
6. Complete the required information.\*
7. Click **Save** to save your provider configuration.

\*Reference the [Required Provider Information](/beefree-sdk/builder-addons/partner-addons/ai-writing-assistant.md#required-provider-information) section of the [AI Writing Assistant AddOn page](/beefree-sdk/builder-addons/partner-addons/ai-writing-assistant.md) to reference what information is required to configure Azure OpenAI as a provider.

### Shared Logic Considerations

Consider the following shared logic when integrating the AI Writing Assistant AddOn and Azure OpenAI as a provider:

* **Methods:** The methods used for the Azure OpenAI provider are inherited from the [AI Writing Assistant AddOn](/beefree-sdk/builder-addons/partner-addons/ai-writing-assistant.md). These include functionality for generating content for supported block types (Title, Paragraph, List, Button) and for handling metadata.
* **Events:** The integration supports all events from the [AI Writing Assistant](/beefree-sdk/builder-addons/partner-addons/ai-writing-assistant.md), such as tracking user actions and processing content generation requests.
* **Callbacks:** All callbacks associated with the Azure OpenAI provider are inherited from the [AI Writing Assistant](/beefree-sdk/builder-addons/partner-addons/ai-writing-assistant.md). They manage notifications for successful or failed content generation attempts.

### Additional Considerations

* **Billing**: Refer to [Azure OpenAI's pricing documentation](https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/) for more information.


---

# 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://docs.beefree.io/beefree-sdk/builder-addons/partner-addons/ai-writing-assistant/available-providers/azure-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.
