# How can I setup my bot with Open AI Azure?

**URL:** <https://forum.ideta.io/t/how-can-i-setup-my-bot-with-open-ai-azure/362>\
**Category:** I don't know where to post\
**Created:** [November 27, 2023, 4:09pm UTC](https://forum.ideta.io/t/how-can-i-setup-my-bot-with-open-ai-azure/362 "2023-11-27T16:09:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glen](https://avatars.discourse-cdn.com/v4/letter/g/8c91f0/32.png) [@Glen](https://forum.ideta.io/u/Glen)\
**Post date:** [November 27, 2023, 4:09pm UTC](https://forum.ideta.io/t/how-can-i-setup-my-bot-with-open-ai-azure/362/1 "2023-11-27T16:09:55Z")

</div>

You can set up your bot with an Open AI API key.

But some use cases require to know exactly what people spent and dedicated resources.

First step is to create an account at [Azure OpenAI Studio - Microsoft Azure](https://oai.azure.com/portal) if you don’t have one.

 ![Capture d’écran 2023-11-27 à 16.37.12](https://europe1.discourse-cdn.com/flex017/uploads/ideta/original/1X/7f491c633841cf45a43133e868f00fddbc2d076b.jpeg)

Follow the process for account creation.

Then request access to Open AI :

 ![Capture d’écran 2023-11-27 à 16.46.07](https://europe1.discourse-cdn.com/flex017/uploads/ideta/original/1X/8478c9c41d78e76b8e0e355cbb0fdbf7b4a24a1c.jpeg)

When access has been granted, you will see this :

 ![Capture d’écran 2023-11-27 à 16.48.31](https://europe1.discourse-cdn.com/flex017/uploads/ideta/original/1X/1561b599cb797fda8033768cbc1e19bee34cd25f.png)

Go to “Deployments” in the side bar and click on “Create new Deployment” :

 ![Capture d’écran 2023-11-27 à 16.51.01](https://europe1.discourse-cdn.com/flex017/uploads/ideta/original/1X/ed912ca95d1c30f120bbd898925ca98860519c60.png)

Select a model and give it a name. We will name it “DEMO\_DEPLOYMENT\_NAME” but you can change it.

You can click here to get your resource endpoint and key :

 ![Capture d’écran 2023-11-27 à 16.59.06](https://europe1.discourse-cdn.com/flex017/uploads/ideta/original/1X/c45205335001a0c75013b48ef35f1c9aa96b355e.png)

You’ll see this :

 ![Capture d’écran 2023-11-27 à 17.03.29](https://europe1.discourse-cdn.com/flex017/uploads/ideta/original/1X/a89fc981630df77fe22418e380aae901181dc903.png)

These are the values you’ll need to copy in Ideta during the bot creation process. You just need to add “/DEMO\_DEPLOYMENT\_NAME/completions?api-version=2023-05-15” at the end of your endpoint.

You’ll get something like this :  
https://RESOURCE\_NAME.openai.azure.com/DEMO\_DEPLOYMENT\_NAME/completions?api-version=2023-05-15

 ![Capture d’écran 2023-11-27 à 17.14.01](https://europe1.discourse-cdn.com/flex017/uploads/ideta/original/1X/60da8d586e8d54c5cdad373581e99d254c11962b.png)
