Integrate MS Teams with Azure OpenAI

Integration between Teams and Azure OpenAI can be done by following a few steps.


Create Azure OpenAI Service in Azure Portal 

  1. Sign into Azure Portal at https://portal.azure.com/ and select Azure OpenAI and before you can create a cognitive service, you would need to submit approval document for subscription and pricing tier. Once the document is approved, you will be granted access to create a cognitive service. 

  1. Go to OpenAI Studio at https://oai.azure.com/ with credentials that have access to your OpenAI resource. 

  1. Select the subscription and OpenAI resource to work with. 

  1. Select Manage deployments in your resource and Go to Deployments under Manage your deployments and models. You might first need to scroll down on the landing page. 

  1. Deploy a model using the Deployment APIs. These APIs allow you to specify the model you wish to use. 

  1. Once you create an Azure OpenAI Resource, you must deploy a model before you can start making API calls and generating text. 

 

Get the Secret Key: 

  • Sign into Azure Portal at https://portal.azure.com/ and select Azure OpenAI. 

  • Landing page for cognitive service would be open, select Azure OpenAI > Azure OpenAI. Select the created service. 

  • In overview, click on the Manage Keys > Click here to manage keys. 

  • There would be KEY 1 and KEY 2, you can use either of these. 

 

 
 
Step by Step Integration between Teams and Azure OpenAI 
Integrate Teams request message to virtual agent, communicate with Power Automate flow, communicate with Azure OpenAI using secret key. 

  1. Create a Power Virtual Agent bot in Microsoft Teams. 

  1. Create a Power Automate flow that will be triggered when a message is sent to the bot. 

  1. In the Power Automate flow, use the HTTP action to send a request to Azure OpenAI using the secret key. 

  1. In the Power Automate flow, use the HTTP action to send a response back to the bot. 

  1. Power Virtual Agent bot will response according to the request made in message coming from the teams. 

 

 

Comments

Popular posts from this blog

🚀 Automatically Moving Business Process Flow (BPF) Stages in Dynamics 365 Using JavaScript

AI-Powered Power Pages Development with Claude Code Plugin

🛠 Power Automate: Handling Cached Runs After Long Downtime