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
- Go to portal.azure.com and search for Azure OpenAI:
/images/AI/SearchAzureOpenAI.png
- Create a new Azure OpenAI Service:
/images/AI/AzureAIService1.png
/images/AI/AzureAIServiceBasics.png
- Hit Next, Next, Create:
/images/AI/AzureAIServiceNetwork.png
/images/AI/AzureAIServiceTags.png
/images/AI/AzureAIServicecreatefinal.png
- After successful deployment Go To Resource:
/images/AI/deployment_complete.png
- 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 ☁️ !!!
- 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
- 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
- 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...)
-
Now open the Copilot Studio.
-
Make sure, you're in the right Environment:
- From your Timon Copilot, open the Ai Topic,
/images/AI/CopilotStudio_AItopic.png
- and Open the AI Flow in the topic:
/images/AI/CopilotStudio_FlowfromTopic.png
- Edit the flow:
/images/AI/CopilotStudio_Editbuttonflow.png
- Now find the Step: "Initialize variable API Key" and enter your API Key you noted in Step 8.
- 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)
- Save your Flow!
- Go back to your Copilot Studio (a Tab should still be open) and Publish your Copilot:
/images/AI/CopilotStudio_publish.png
- CONGRATIULATIONS! YOU NOW ENABLED THE AI INTEGRATION WITH TIMON!!!!