You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/QnAMaker/How-To/integrate-with-power-virtual-assistant-fallback-topic.md
+41-21Lines changed: 41 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Integrate Power Virtual Agent - QnA Maker
3
3
description: Improve the quality of your knowledge base with active learning. Review, accept or reject, add without removing or changing existing questions.
4
4
ms.topic: conceptual
5
-
ms.date: 03/09/2020
5
+
ms.date: 03/11/2020
6
6
---
7
7
8
8
# How to add a QnA Maker knowledge base to Power Virtual Agent
@@ -59,11 +59,13 @@ The first step is to configure an agent topic. While it can be any topic, this p
59
59
60
60
1. In the [Power Virtual Agents](https://powerva.microsoft.com/#/) portal, on the top-right corner of the navigation, select the **Settings** page. The icon for this page is the gear. Select **System Fallback**.
61
61
62
-

62
+
> [!div class="mx-imgBorder"]
63
+
> 
63
64
64
65
1. On the pop-up **Settings** window, select **+ Add** to add a System Fallback topic.
1. After the topic is added, select **Go to Fallback topic** to author the Fallback topic on the authoring canvas.
69
71
@@ -76,15 +78,18 @@ Use the Power Virtual Agent's authoring canvas to connect the Fallback topic to
76
78
77
79
1. The new Fallback action may already have conversation flow elements. Delete all items in the flow except for the first item, **Trigger Phrases**, with the `Unrecognized user input`.
78
80
79
-

81
+
> [!div class="mx-imgBorder"]
82
+
> 
80
83
81
84
1. Select the **+** connector flowing from the **Trigger Phrases** box, then select **Call an action**.
82
85
83
-

86
+
> [!div class="mx-imgBorder"]
87
+
> 
84
88
85
89
1. Select **Create a flow**. The process takes you to **Power Automate**, a different browser-based portal.
86
90
87
-

91
+
> [!div class="mx-imgBorder"]
92
+
> 
88
93
89
94
## Create Power Automate Flow to connect to your knowledge base
90
95
@@ -96,25 +101,30 @@ The following procedure creates an action that:
96
101
97
102
1. In **Power Automate**, the **Flow Template** is started. On the **Power Virtual Agents** item, select **Edit** to configure the input variable coming from your agent to your knowledge base. The text-based input variable is the user-submitted text question from your agent.
98
103
99
-

104
+
> [!div class="mx-imgBorder"]
105
+
> 
100
106
101
107
1. Add a text input and name the variable `InputText` with a description of `IncomingUserQuestion`. This naming helps distinguish the input text from the output text you create later.
102
108
103
-

109
+
> [!div class="mx-imgBorder"]
110
+
> 
104
111
105
112
1. Select the **+** connector flowing from the **Power Virtual Agents** box, to insert a new step in the flow (before the **Return value(s) to Power Virtual Agent**), then select **Add an action**.
106
113
107
114
1. Search for `Qna` to find the **QnA Maker** actions, then select **Generate answer**.
108
115
109
-

116
+
> [!div class="mx-imgBorder"]
117
+
> 
110
118
111
119
The connections settings for QnA Maker appear in the action.
112
120
113
-

121
+
> [!div class="mx-imgBorder"]
122
+
> 
114
123
115
124
1. Configure the action with your knowledge base ID, endpoint host and endpoint key. These are found on the **Settings** page of your knowledge base, in the QnA Maker portal.
116
125
117
-
 portal.](../media/how-to-integrate-power-virtual-agent/published-knowledge-base-settings.png)
126
+
> [!div class="mx-imgBorder"]
127
+
>  portal.](../media/how-to-integrate-power-virtual-agent/published-knowledge-base-settings.png)
118
128
119
129
1. To configure the **Question**, select the text box, then select the `InputText` from the list.
120
130
@@ -124,7 +134,8 @@ The following procedure creates an action that:
124
134
125
135
Set the name of the variable to `OutgoingQnAAnswer`, and select the type as **String**. Don't set the **Value**.
126
136
127
-

137
+
> [!div class="mx-imgBorder"]
138
+
> 
128
139
129
140
1. Select the **+** connector flowing from the **Initialize variable** action box to insert a new step in the flow, then select **Add an action**.
130
141
@@ -136,11 +147,13 @@ The following procedure creates an action that:
136
147
137
148
Select the text box for **Value**, then select **Answers Answer** from the list.
138
149
139
-

150
+
> [!div class="mx-imgBorder"]
151
+
> 
140
152
141
153
1. To return the variable (and its value), select the **Return value(s) to Power Virtual Agent** then select **Add an output**. Select a **Text** output type then enter the **Title** of `FinalAnswer`. Select the text box for the **Value**, then select the `OutgoingQnAAnswer` variable.
142
154
143
-

155
+
> [!div class="mx-imgBorder"]
156
+
> 
144
157
145
158
1. Select **Save** to save the Flow.
146
159
@@ -152,45 +165,52 @@ In order for the Power Virtual Agent to find and connect to the flow, the flow m
152
165
153
166
1. Select **+ New solution** and configure the solution. Select **Create** to finish the process.
154
167
155
-

168
+
> [!div class="mx-imgBorder"]
169
+
> 
156
170
157
171
1. In the list of solutions, select the solution you just created. It should be at the top of the list.
158
172
159
173
1. In the solution, select **+ Add existing**, then select **Flow** from the list.
160
174
161
175
1. Select the **Outside solutions** tab, then select the flow you just created. Select **Add** to finish the process.
162
176
163
-

177
+
> [!div class="mx-imgBorder"]
178
+
> 
164
179
165
180
## Add solution's flow to Power Virtual Agent
166
181
167
182
1. Return to the browser tab with your Power Virtual Agent. The authoring canvas should still be open.
168
183
169
184
1. Select the **+** connector under the **Trigger Phrases** action box to insert a new step in the flow, then select **Call an action**.
170
185
171
-

186
+
> [!div class="mx-imgBorder"]
187
+
> 
172
188
173
189
1. In the new action, select the input value of **UnrecognizedTriggerPhrase**.
174
190
175
-

191
+
> [!div class="mx-imgBorder"]
192
+
> 
176
193
177
194
1. Select the **+** connector under the **Action** box to insert a new step in the flow, then select **Show a message**.
178
195
179
196
1. Enter the message text and the `FinalAnswer` from the Power Automate Flow.
180
197
181
-

198
+
> [!div class="mx-imgBorder"]
199
+
> 
182
200
183
201
1. Select **Save** from the context toolbar to save the authoring canvas details for the topic.
Test the agent by typing in a question that your knowledge base can answer. The authoring canvas reports the successful steps with a green check mark.
192
211
193
-
[](../media/how-to-integrate-power-virtual-agent/power-virtual-agent-test.png#lightbox)
212
+
> [!div class="mx-imgBorder"]
213
+
> [](../media/how-to-integrate-power-virtual-agent/power-virtual-agent-test.png#lightbox)
0 commit comments