Build and Publish a basic chatbot

Create a chatbot

To create a chatbot using Power Virtual Agents, you can follow these steps:

  1. Sign in to the Power Virtual Agents portal.
  2. Create a new bot and configure its name and default language.
  3. Create a new topic to define the main area of focus for your chatbot.
  4. Within the topic, create message nodes to define what your chatbot will say to users.
  5. Create question nodes to prompt users for input and gather information.
  6. Add conditions to your chatbot to help determine the appropriate responses.
  7. Use trigger phrases to enable your chatbot to respond to specific user input.
  8. Test and refine your chatbot until it provides effective responses to user input.
  9. Publish your chatbot and make it available to users.

When building your chatbot, it’s important to consider the types of questions and scenarios it will be handling, as well as the target audience. You can also integrate your chatbot with other systems and services using Power Automate, Azure Bot Service, or other connectors, to provide users with more advanced functionality.

Create a topic

To create a new topic in Power Virtual Agents, follow these steps:

  1. Open the Power Virtual Agents portal and navigate to the chatbot you want to add a topic to.
  2. Click on the “Topics” tab on the left-hand side of the screen.
  3. Click the “New Topic” button in the upper right corner.
  4. Enter a name for your topic.
  5. Click on “Add a trigger phrase” and enter a phrase that will trigger this topic when typed by a user.
  6. Add one or more actions for the topic. Actions can be used to provide information, ask questions, or perform other tasks within the chatbot.
  7. Save your new topic.

Once you have created a topic, you can add it to your chatbot’s authoring canvas and link it to other topics, entities, and actions as needed to create a complete chatbot experience.

Call an action

In Power Virtual Agents, an action is a reusable unit of logic that can be called from different parts of a bot conversation. To call an action in Power Virtual Agents, you can follow these steps:

  1. Open the authoring canvas of your chatbot and navigate to the topic where you want to call the action.
  2. Click on the “Add node” button and select “Action” from the dropdown menu.
  3. In the “Action” window, select the action you want to call from the “Action” dropdown menu. If the action you want to call is not available in the list, you can create a new action by clicking on the “Create new action” button.
  4. Add any required parameters to the action by clicking on the “Add parameter” button and entering the parameter name and value.
  5. Click “Save” to save the action node.

Once you have added the action node to your conversation, it will call the action when the user reaches that point in the conversation. The action will execute its logic and return a result that can be used in the conversation.

Launch a Power Automate flow from a chatbot

To launch a Power Automate flow from a chatbot created in Power Virtual Agents, you can use the “Call an action” feature. Here are the steps:

  1. Open your chatbot in Power Virtual Agents and navigate to the authoring canvas.
  2. Click on the “+” icon to add a new message node.
  3. In the message node, enter the message text that will trigger the flow, and select the “Call an action” option from the “Action” dropdown menu.
  4. In the “Action” configuration pane, select “Power Automate” as the action type.
  5. Choose the Power Automate flow you want to trigger from the dropdown menu. If your flow is not listed, click the “Add a new connection” button to connect to your Power Automate account.
  6. Configure any additional parameters for your flow, if necessary.
  7. Click “Save” to save your changes.

Once your chatbot is published and active, it will trigger the Power Automate flow when the specified message is received from the user.

Advertisement

Capabilities of Power Virtual Agents in Microsoft Teams

Power Virtual Agents is a chatbot development platform that is tightly integrated with Microsoft Teams, allowing users to create and deploy intelligent chatbots within the Teams environment. Some of the capabilities of Power Virtual Agents in Microsoft Teams include:

  • Creation of chatbots using a no-code interface: Power Virtual Agents provides a drag-and-drop interface for building chatbots, making it easy for users to create a bot without any coding knowledge.
  • Integration with Microsoft Teams: Power Virtual Agents chatbots can be directly integrated with Teams, enabling users to interact with the bot directly from within the Teams environment.
  • Natural Language Processing (NLP) capabilities: Power Virtual Agents uses NLP technology to help the chatbot understand user requests and respond appropriately.
  • Pre-built templates: Power Virtual Agents provides a number of pre-built templates that can be used to quickly create a chatbot for common use cases such as IT support, HR support, or customer service.
  • Analytics and reporting: Power Virtual Agents provides analytics and reporting tools that allow users to track the performance of their chatbots and identify areas for improvement.
  • Multilingual support: Power Virtual Agents supports multiple languages, making it possible to create chatbots that can interact with users in their native language.
  • Integration with other Microsoft services: Power Virtual Agents can be integrated with other Microsoft services such as Power Automate and Power BI, enabling users to build end-to-end solutions that incorporate chatbots as part of a larger workflow.

Use cases for Power Virtual Agents within Microsoft Teams

Power Virtual Agents (PVA) is a no-code tool within the Microsoft Power Platform that allows organizations to build and deploy AI-powered chatbots for a variety of business scenarios. When integrated with Microsoft Teams, PVA can provide automated assistance and support to team members and external customers in a conversational and personalized manner.

Some common use cases for Power Virtual Agents within Microsoft Teams include:

  • HR support: PVA can be used to provide answers to common HR-related questions, such as leave policies, benefits, or training programs, saving HR personnel valuable time.
  • IT help desk: PVA can help users troubleshoot and resolve IT issues by providing step-by-step guidance and accessing relevant knowledge bases.
  • Customer service: PVA can handle customer inquiries and complaints in a timely and efficient manner, freeing up support staff to focus on more complex issues.
  • Sales and marketing: PVA can assist with lead generation, customer segmentation, and personalized recommendations based on customer data.
  • Training and onboarding: PVA can provide new employees with guidance and support during the onboarding process, such as answering common questions, providing links to training resources, or setting up meetings with mentors.

Overall, using PVA within Microsoft Teams can help organizations automate routine tasks, improve customer satisfaction, and increase efficiency and productivity across different departments.

Topics, Entities, and Actions

In Power Virtual Agents, topics are used to define the intents, or user goals, that the chatbot can recognize and respond to. For example, a retail chatbot might have topics for checking store hours, finding product information, and placing an order.

Entities are used to recognize and extract specific pieces of information from user input, such as a date or a product name. Entities can be pre-built or custom-created based on the needs of the chatbot.

Actions are used to define the steps that the chatbot should take when a user interacts with a specific topic. For example, if a user wants to check store hours, the chatbot might respond with a list of available store hours and a map to the nearest location. Actions can include sending messages, asking questions, and calling external services.

Message Nodes, Question Nodes, Conditions, Trigger Phrases, and the Authoring Canvas

Power Virtual Agents is a chatbot service from Microsoft that allows businesses to build and deploy virtual agents quickly and easily, without requiring any coding experience.

Some of the key components of Power Virtual Agents include:

  • Message nodes: These are the basic building blocks of a bot’s conversational flow. Each message node represents a single interaction with a user, such as asking a question or providing a response.
  • Question nodes: These are specialized message nodes that ask the user a question and capture their response. They can be used to gather information from the user, validate their input, and perform other tasks.
  • Conditions: These are used to evaluate the user’s response or some other variable, and branch the conversation flow based on the result. For example, a condition might be used to determine whether the user’s response is a valid email address.
  • Trigger phrases: These are the phrases or keywords that the bot will look for in the user’s message to determine how to respond. For example, a bot designed to answer questions about a product might be triggered by phrases like “How does it work?” or “What are the features?”
  • Entities: These are the key terms or concepts that the bot is trained to recognize and extract from the user’s input. Entities can be used to drive the conversation flow, trigger different actions, or perform other tasks.
  • Actions: These are the tasks that the bot performs in response to the user’s input. For example, the bot might look up information in a database, send an email, or initiate a chat with a human agent.
  • Authoring canvas: This is the interface used to build and edit a bot’s conversational flow. It provides a visual representation of the bot’s logic and allows authors to add, remove, and modify nodes, conditions, and other components of the bot’s flow.

Build a Basic Cloud Flow

To build a basic cloud flow in Power Automate, follow these steps:

  1. Sign in to Power Automate and navigate to the “My flows” page.
  2. Click on “Create” and select “Automated cloud flow” to create a new flow.
  3. Choose a trigger for the flow. This could be an event in a specific app or a scheduled trigger.
  4. Add any required inputs for the trigger and configure the details of the trigger.
  5. Add any necessary actions to the flow. This could include sending an email, creating a new item in SharePoint, or sending a notification to a specific user.
  6. Configure the details of each action, including any required inputs and options.
  7. Test the flow to ensure it is working correctly.
  8. Save and publish the flow.

This basic cloud flow can be customized as needed to fit specific use cases and scenarios.

Creating a flow by using an instant, automated, or scheduled flow template

In Power Automate, a flow template is a pre-built, customizable flow that can be used to automate a specific process. There are different types of flow templates available in Power Automate, including instant flows, automated flows, and scheduled flows.

  • Instant flows: These are triggered manually, allowing users to execute the flow at any time with the click of a button.
  • Automated flows: These are triggered automatically when a specific event occurs, such as a new item being added to a SharePoint list or a new email arriving in a mailbox.
  • Scheduled flows: These are triggered on a set schedule, such as every day at a specific time, and can be used to perform regular data processing tasks.

To create a flow using a template, follow these steps:

  1. Log in to the Power Automate portal.
  2. Click the “Create” button in the top navigation bar and select “Instant cloud flow”, “Automated cloud flow”, or “Scheduled cloud flow”, depending on the type of flow you want to create.
  3. Browse the available templates or search for a specific template using keywords.
  4. Select the template you want to use, and click “Continue”.
  5. Customize the flow to meet your specific requirements by modifying the trigger, actions, and other settings as needed.
  6. Save the flow and give it a descriptive name.
  7. Test the flow to ensure that it is working as expected.
  8. Turn on the flow to activate it and automate the specified process.

Modify a cloud flow

To modify a cloud flow in Power Automate, you can follow these steps:

  1. Sign in to the Power Automate portal (https://flow.microsoft.com).
  2. Click on the flow you want to modify in the My flows list or search for it using the search bar.
  3. Click on the Edit flow button to open the flow in the Power Automate designer.
  4. Make the necessary modifications to the flow. You can add or remove actions, modify the properties of actions, add or remove conditions, and so on.
  5. Click the Save button when you’re done making modifications.
  6. Review your changes and then click the Test button to test your flow. You can test the flow using a sample input, or you can enter your own inputs.
  7. Once you’ve tested your flow, click the Run button to run it in production.

Remember to save and test your flow frequently to ensure it works as expected. Also, consider versioning your flow, so you can easily revert to a previous version if needed.

Use Flow Controls to perform data operations

Power Automate provides several data operations that you can use in a flow to retrieve, create, update, and delete data in various systems. Here are a few examples:

  • Retrieve data: You can use actions such as “Get rows” and “List records” to retrieve data from various data sources such as Excel, SharePoint, Dynamics 365, and SQL Server.
  • Create data: You can use actions such as “Create item” and “Create record” to create new data in various systems such as SharePoint, Dynamics 365, and Common Data Service.
  • Update data: You can use actions such as “Update item” and “Update record” to update existing data in various systems such as SharePoint, Dynamics 365, and Common Data Service.
  • Delete data: You can use actions such as “Delete item” and “Delete record” to delete data from various systems such as SharePoint, Dynamics 365, and Common Data Service.

These data operations can automate data-related tasks in your organization, such as syncing data between systems, updating records in a database, and more. By using these actions in a flow, you can create powerful automation that saves time and improve productivity.

Run a cloud flow

To run a cloud flow in Power Automate, follow these steps:

  1. Open Power Automate: Go to the Power Automate website and sign in using your credentials.
  2. Select the Flow: Find and select the flow that you want to run.
  3. Test the Flow: Before you run the flow, you may want to test it to make sure it’s working properly. You can do this by clicking on the “Test” button in the top menu and selecting “Test”.
  4. Start the Flow: Once you’re ready to run the flow, click on the “Run” button in the top menu and select “Run now”.
  5. Check the Results: Once the flow has completed running, you can check the results to see if it has executed successfully. You can do this by going to the “Runs” tab and checking the status of the most recent run. You can also view the output of the flow to see what actions were taken.

It’s important to note that some flows require certain inputs, such as connection details or input data. Make sure to provide all the necessary information to ensure the flow runs properly.