Integrating with Power Automate
When you're building chatbots in Power Virtual Agents for Teams, you may run into scenarios where basic question-and-answer conversations are not sufficient to meet the business's needs. If we want our bot to take more complex actions, we can call a Power Automate flow from within a topic. We can take user input from the conversation, pass it to the workflow, process it, and return some output to the user.
In our use case, we will create a flow that registers the user for a session by creating a new entry on the Registrations Dataverse table that we created in Chapter 8, Power Apps in Teams. We need to collect the user's phone number and the session they want to attend. Because Power Virtual Agent automatically stores the user's name in a variable, we do not need to prompt the user for it. To build this integration, perform these steps:
- Open the Power Virtual Agents app in Teams.
- Under Chatbots, navigate to the team...