# Azure ChatOpenAI

## Prerequisite

1. [Log in](https://portal.azure.com/) or [sign up](https://azure.microsoft.com/en-us/free/) to Azure
2. [Create](https://portal.azure.com/#create/Microsoft.CognitiveServicesOpenAI) your Azure OpenAI and wait for approval approximately 10 business days
3. Your API key will be available at **Azure OpenAI** > click **name\_azure\_openai** > click **Click here to manage keys**

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

## Setup

### Azure ChatOpenAI

1. Click **Go to Azure OpenaAI Studio**

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

2. Click **Deployments**

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

3. Click **Create new deployment**

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

4. Select as shown below and click **Create**

<figure><img src="/files/62OoXl3sTJ66HYJuzoCq" alt="" width="558"><figcaption></figcaption></figure>

5. Successfully created **Azure ChatOpenAI**

* Deployment name: `gpt-35-turbo`
* Instance name: `top right conner`

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

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

### Flowise

1. **Chat Models** > drag **Azure ChatOpenAI** node

<figure><img src="/files/VCRnMrUvwEwu8ufmE9wi" alt="" width="563"><figcaption></figcaption></figure>

2. **Connect Credential** > click **Create New**

<figure><img src="/files/fLmpn3D1ro9MZ1ZPEflH" alt="" width="421"><figcaption></figcaption></figure>

3. Copy & Paste each details (API Key, Instance & Deployment name, [API Version](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions)) into **Azure ChatOpenAI** credential

<figure><img src="/files/R9oH970XRCkh4IYs7Bkf" alt="" width="563"><figcaption></figcaption></figure>

4. Voila [🎉](https://emojipedia.org/party-popper/), you have created **Azure ChatOpenAI node** in Flowise

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

## Resources

* [LangChain JS Azure ChatOpenAI](https://js.langchain.com/docs/modules/model_io/models/chat/integrations/azure)
* [Azure OpenAI Service REST API reference](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference)


---

# 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.flowiseai.com/integrations/langchain/chat-models/azure-chatopenai-1.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.
