Skip to content

Integrate a ChatGPT-like experience directly into Microsoft Teams, enabling users to ask any question directly within the platform. With all data and interactions securely contained within your private Power Platform environment and Azure Subscription, engage in confidential conversations using your business data, ensuring privacy and security.

Notifications You must be signed in to change notification settings

mimergel/Azure_OpenAi_Chat_in_Teams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Enhance Microsoft Teams with Private, Secure ChatGPT-like Functionality

Integrate a ChatGPT-like experience directly into Microsoft Teams, enabling users to ask any question directly within the platform. With all data and interactions securely contained within your private Power Platform environment and Azure Subscription, engage in confidential conversations using your business data, ensuring privacy and security at every step.

Prerequesites

  1. Power Platform
  2. Azure Subscription
  3. Azure OpenAI Service

Setup

Deploy Azure OpenAI Service

Setup the Power Automate Flow (Flow)

Change URI and KEY in HTTP Connector of the Flow

  • Get your Azure OpenAI URL and API-Key from the Azure Open AI Service Chat playground.

    Get URI and KEY

  • URI example: https://[your endpoint].openai.azure.com/openai/deployments/chat/chat/completions?api-version=2023-07-01-preview

  • Enter the URI and KEY in the respective fields of the HTTP Connector.

    Enter URI and KEY in HTTP Connector

  • For now you can enter this directly in clear text. For later production use it's recommended to configure these as secrets and put references to the secrets like seen in the screen shot.

Setup the Power Virtual Agent (PVA)

  • Login to: https://web.powerva.microsoft.com/ and create a new bot.

    Create Bot Step 1

    Create Bot Step 2

  • In the fallback topic paste the code from the provided fallback.yaml file.

  • Download the fallback topic code here: fallback.yaml

    Fallback Topic

    Code Editor

  • Open the code editor and enter the code via copy/paste.

  • The last step is to configure your personal bot greeting message into the following 2 topics:

    • Conversation Start
    • Reset Conversation

Test & Publish the Bot

  • Test the Bot:

    Test

  • When OK publish the bot:

    Publish

  • Open the Bot in Teams and test:

    Publish

Troubleshooting

  • In case of errors most likely the flow failed.

  • The logs of the flow run provide helpful error messages.

    Troubleshooting 1

    Troubleshooting 2

Disclaimer

THE CONTENT OF THIS REPOSITORY IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

About

Integrate a ChatGPT-like experience directly into Microsoft Teams, enabling users to ask any question directly within the platform. With all data and interactions securely contained within your private Power Platform environment and Azure Subscription, engage in confidential conversations using your business data, ensuring privacy and security.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published