Power Virtual Agent Bot for tracking COVID 19 cases

Shriya Dhar
Tech Simplified
Published in
3 min readMay 2, 2020

Power Virtual Agents empowers teams to easily create powerful bots using a guided, no-code graphical interface without the need for data scientists or developers.

It has built-in content building blocks containing topics, trigger phrases, and pre-authored bot conversations to help you tailor your bot according to your need.

Below are the steps for how I created my first Power Virtual Agent BOT.

1. Log in to Power Virtual Agents and Create a new bot. The bot building process can take up to 15–20 mins.

Click your bot icon to open this pop-up

2. Once done, you can check Customize your greeting tab. It will take you to a screen where you can see how your bot gets triggered.

All trigger phrases are pre-defined and cannot be edited but you can add your own welcome message to be displayed by the bot.

This is my welcome message

3. Next, we will create a Topic. A topic defines how a bot conversation plays out. Few User-topics and System-topics are already created by default.

For creating a new topic, enter a name, description, and few trigger phrases for that particular topic to get triggered.

Once it is done, click on Go to authoring canvas.

4. When you create a new topic, a Trigger phrases node and a blank Message node are inserted for you.You can add additional nodes by selecting the plus (+) icon on the line or branch between or after a node.

You can:

  • Ask a question
  • Call an action
  • Show a message
  • Go to another topic
  • End the conversation

You can check this link here for reference.
https://docs.microsoft.com/en-us/power-virtual-agents/authoring-create-edit-topics#prerequisites

When you select the multiple-choice option it automatically creates branches for you to proceed.

5. For this, I have integrated 2 flows to get me the COVID19 statistics. For integrating flow into your power virtual agent you can select the option Call an action(see point 4 above).

I have used a public API provided by MoHFH, GOI -https://api.covid19india.org/data.json

The first flow returns me the Active, Confirmed, Recovered, and Death count in India.

The second flow returns me the Active, Confirmed, Recovered, and Death count for the state entered by the user.

That's it!!

You can download the solution here-
https://github.com/shriya123/Power-Virtual-Agent-Bot-to-track-COVID19-statistics

thanks:)

--

--