Introduction
In this blog, we will add PowerApp to Microsoft Teams. The PowerApp will be an app to launch a chat bot created using Power Virtual Agent.
How to build the bot?
- For that go to this link: https://powervirtualagents.microsoft.com/en-us/ and click on Start Free.
- Create a new bot once you are logged in to the Power Virtual Agents preview. Provide the Bot name and bot’s environment as shown.
- You can customize the greeting by going to Customize Greeting.
- You can edit the messages as per your liking and Save once you are done.
- Check your new messages by Greeting the bot once again.
- Now next step is to go and Publish the bot. You can do that by going to Publish and Click on Publish.
- You can view your bot by going to demo website. You can do that by clicking on demo website link available below publish Button.
Create a Canvas App to launch the Bot
- Navigate to Power Apps and create a canvas app.
- Add a button to the app. Here in my case I have added “Chat with Bot” button.
- OnSelect write Launch (“your demo website link”)
- You can find the link by:
-
- Navigating to Power Virtual Agent site.
- Click on channels under Manage tab.
- Copy link from “Share Your Website” on Demo Website.
How to Add App to Microsoft Teams?
- Login to your Microsoft Teams.
- Go to the Teams channel or chat where you want to add the PowerApps and click on (+) icon.
- Search PowerApps and select it.
- Select your App and click Save.
- Now you will able to see the tab under your channel.
- This way you can add any app you want to your Microsoft Teams.