Exercise - Publish and share your chatbot
Now that you've finished editing and testing your bot, you're ready to publish it and test or use it in Teams.
Task: Publish your bot and add it to the team
Your first task is to publish your bot and add it to the team.
Return to your Power Virtual Agents app through the left navigation bar and then open your chatbot for editing. Select the Publish icon in the left Power Virtual Agents navigation menu.
Select the Publish button and then confirm by selecting the Publish button in the pop-up prompt that asks if you want to publish the latest content.
When your bot is published, a confirmation message will appear.
In the Edit details screen, fill in the Short description and Long description fields to describe what your chatbot does. Select the Allow your users to add this bot to a team checkbox, select Yes on the confirmation message, and then select Save. Note the options to change the color and icon.
Select Availability options.
Under the Add to a team section, select the Add to Office - Admin option.
Select Add to confirm.
In a moment, you'll receive a chat notification from the bot in Teams. Select the ellipsis (...) from the left menu of Teams. Your Office Helper bot should now show.
By default, the bot will be available as such to all members of your team. Enter the trigger phrase request swag in the chat with the bot, and then place the request.
Select Chat to view the bot conversation.
Select Teams and then go to the team that you've been working in for the labs. A message will display, indicating that the bot has been added to the team. Now, users can @mention the bot to talk to it directly in channel. You can begin the conversation with a bot in a new conversation or in the comments of an existing conversation. Whenever you want to respond to the bot, you should @mention the bot’s name.
Task: Share the chatbot with your organization
In this task, you'll submit the chatbot for admin approval to share with the whole organization.
Return to the Power Virtual Agents app in Teams. Select Chatbots and then open your bot.
Select Publish from the navigation menu, select the Make the bot available to others option, and then select Availability options.
Select Show to everyone in my org.
Read the message to understand how the process works (in a real-world situation, this process is what you should have done before you submit for approval). Select Submit for admin approval.
Confirm that you want to give everyone in your organization access to the bot by selecting Yes.
When your bot has been submitted, a submission status message will display.
Task: Approve the chatbot as admin
If you have the admin sign-in info for your tenant, you can play the role of the admin and approve your app. If you're working in a shared tenant, read along but don't perform the steps.
Open a new browser tab and then go to the Microsoft Teams admin center dashboard.
Go to Teams apps > Manage apps in the left navigation menu. One submitted custom app will show as pending approval.
Search for the name of the chatbot that you submitted and then open it.
Select Publish and then confirm in the pop-up message that appears.
The chatbot will now show as published.