AzureOpenAI - Erithano/Timon-Your-FAQ-bot-for-Microsoft-Teams GitHub Wiki

How to add an Azure OpenAI Deployment to Timon 🚀

Requirements

1 - A Subscription in Microsoft Azure

2 - Access to Azure OpenAI

To create an Azure OpenAI Instance you will need:

You might be required to fill out a form Take me to the form

(On question 19 - Choose GPT-4, then option 2 "Chatbot and conversational agent creation")

3 - Access to a PVA Premium License (Erik to the rescue)

Still interested? Let's go! ✅

Create Azure OpenAI Deployment

  1. Go to portal.azure.com and search for Azure OpenAI:

/images/AI/SearchAzureOpenAI.png

  1. Create a new Azure OpenAI Service:

/images/AI/AzureAIService1.png

/images/AI/AzureAIServiceBasics.png

  1. Hit Next, Next, Create:

/images/AI/AzureAIServiceNetwork.png

/images/AI/AzureAIServiceTags.png

/images/AI/AzureAIServicecreatefinal.png

  1. After successful deployment Go To Resource:

/images/AI/deployment_complete.png

  1. In your new resource, click 'Model deployments' and click on 'Manage Deployments':

/images/AI/ModelDeployments.png

Now you've made it to Azure OpenAI Studio ☁️ !!!

  1. Create a new Deployment:

/images/AI/AzAIStudio_CreateDeployment.png

Choose one of the GPT models, in our Example GPT-3.5 is the latest (If you have 4.x, use it!) Give it a name - TimonAI might be a good fit!

/images/AI/AzAIStudio_DeploymentProps.png

  1. Ok, now, since we have the deployment, let's open it in the Playground - from there we will fetch some data! Get a pen and a sheet of paper to note some things!

/images/AI/AzAiStudio_OpeninPlayground.png

  1. Click View Code in the Playground:

/images/AI/AzAiStudio_PG_viewcode.png

!! Now note the Endpoint and the Key displayed underneath the code. Store it somewhere, so we can use it later. (Loop, OneNote, Notepad, whatever...)

  1. Now open the Copilot Studio.

  2. Make sure, you're in the right Environment:

/images/Guide2.1.jpg

  1. From your Timon Copilot, open the Ai Topic,

/images/AI/CopilotStudio_AItopic.png

  1. and Open the AI Flow in the topic:

/images/AI/CopilotStudio_FlowfromTopic.png

  1. Edit the flow:

/images/AI/CopilotStudio_Editbuttonflow.png

  1. Now find the Step: "Initialize variable API Key" and enter your API Key you noted in Step 8.

/images/AI/Flow_AddAPIKEY.png

  1. Finally, add the URI to your Azure OpenAI Resource you noted in Step 8 to the Step 'HTTPPost' in the Flow (you can just replace the hostname, as marked in the screenshot)

/images/AI/Flow_OpenAIURL.png

  1. Save your Flow!

/images/AI/Flow_save.png

  1. Go back to your Copilot Studio (a Tab should still be open) and Publish your Copilot:

/images/AI/CopilotStudio_publish.png

  1. CONGRATIULATIONS! YOU NOW ENABLED THE AI INTEGRATION WITH TIMON!!!!