I recently presented at Microsoft’s monthly Power Hour session on Power Virtual Agents. One popular question that came up was “How can I know what unrecognised questions people are asking the bot?”. This post will take you through how to configure your PVA bot’s system fallback topic, and use Power Automate track unrecognised phrases entered in by your bot users. This kind of feedback is critical to improving your bot’s performance. You can use this feedback to add new topics to your bot or improve triggering on current topics.

Screenshot of PVA capturing unrecognized user input and sending it to Teams

The system fallback topic in PVA allows you to customise the actions and conversation that takes place if your bot is unable to recognise input from the user. To find it, click on the Settings cog in PVA.

Screenshot of PVA: Settings cog

Click Add for the fallback topic.

Screenshot of PVA: Add fallback topic

Once added, go to fallback topic.

Screenshot of PVA: Go to fallback topic

You will see that there is already a conversation set up for the fallback topic. This can be modified however you need, as you do with any other topic (except you can’t add trigger phrases to it).

Screenshot of PVA: Fallback topic
Screenshot of PVA: Modify your topic

You can use Power Automate to create a workflow to notify yourself of the unrecognized user input. The method of notification here is up to you- e.g. you may choose to send yourself a Teams message, post it in a Teams channel, add it to a spreadsheet or database, etc. The flow below will simply send yourself a Teams message containing the unrecognized user input. Click + to add a new node > Call an action > Create a flow.

Screenshot of PVA: Create a flow

Build your flow. You will need to add a text input in the Power Virtual Agents trigger action as shown below. Then reuse/insert this input throughout the flow in your subsequent steps. You will later link this back to the unrecognised text used in the bot conversation. Save the flow and go back to PVA.

Screenshot of Power Automate: Add a text input in the PVA trigger action and build your flow

Back in PVA you may need to save your topic and refresh the page so that you can see the flow you just created listed.

Screenshot of PVA: Connect your flow

Set the gets value from value to UnrecognizedTriggerPhrase.

Screenshot of PVA: Set gets value from field

When you are done with your topic, save it. It’s now ready to test. Remember to also publish your bot to make your changes live.

Screenshot of PVA: Test out your topic

One thought on “Capture unrecognized user inputs in Power Virtual Agents by setting up a fallback topic

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s