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
# Use the End of Call Survey to collect user feedback
19
17
20
-
> [!NOTE]
21
-
> End of Call Survey is currently supported only for our JavaScript / Web SDK.
22
-
23
-
This tutorial shows you how to use the Azure Communication Services End of Call Survey for JavaScript / Web SDK.
24
-
18
+
This tutorial shows you how to use the Azure Communication Services End of Call Survey.
25
19
26
20
## Prerequisites
27
21
28
22
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
29
-
30
-
-[Node.js](https://nodejs.org/) active Long Term Support(LTS) versions are recommended.
31
-
32
23
- An active Communication Services resource. [Create a Communication Services resource](../quickstarts/create-communication-resource.md). Survey results are tied to single Communication Services resources.
33
24
- An active Log Analytics Workspace, also known as Azure Monitor Logs. See [End of Call Survey Logs](../concepts/analytics/logs/end-of-call-survey-logs.md).
34
25
- To conduct a survey with custom questions using free form text, you need an [App Insight resource](../../azure-monitor/app/create-workspace-resource.md#create-a-workspace-based-resource).
35
26
27
+
::: zone pivot="platform-web"
28
+
[!INCLUDE [End of Call Survey for Web](./includes/end-of-call-survey-web.md)]
29
+
::: zone-end
36
30
37
-
> [!IMPORTANT]
38
-
> End of Call Survey is available starting on the version [1.13.1](https://www.npmjs.com/package/@azure/communication-calling/v/1.13.1) of the Calling SDK. Make sure to use that version or later when trying the instructions.
39
-
40
-
## Sample of API usage
41
-
42
-
43
-
The End of Call Survey feature should be used after the call ends. Users can rate any kind of VoIP call, 1:1, group, meeting, outgoing and incoming. Once a user's call ends, your application can show a UI to the end user allowing them to choose a rating score, and if needed, pick issues they’ve encountered during the call from our predefined list.
44
-
45
-
The following code snips show an example of one-to-one call. After the end of the call, your application can show a survey UI and once the user chooses a rating, your application should call the feature API to submit the survey with the user choices.
46
-
47
-
We encourage you to use the default rating scale. However, you can submit a survey with custom rating scale. You can check out the [sample application](https://github.com/Azure-Samples/communication-services-web-calling-tutorial/blob/main/Project/src/MakeCall/CallSurvey.js) for the sample API usage.
48
-
49
-
50
-
### Rate call only - no custom scale
51
-
52
-
```javascript
53
-
call.feature(Features.CallSurvey).submitSurvey({
54
-
overallRating: { score:5 }, // issues are optional
| Overall Call | 2 | 1 - 5 | Surveys a calling participant’s overall quality experience on a scale of 1-5. A response of 1 indicates an imperfect call experience and 5 indicates a perfect call. The cutoff value of 2 means that a customer response of 1 or 2 indicates a less than perfect call experience. |
142
-
| Audio | 2 | 1 - 5 | A response of 1 indicates an imperfect audio experience and 5 indicates no audio issues were experienced. |
143
-
| Video | 2 | 1 - 5 | A response of 1 indicates an imperfect video experience and 5 indicates no video issues were experienced. |
144
-
| Screenshare | 2 | 1 - 5 | A response of 1 indicates an imperfect screen share experience and 5 indicates no screen share issues were experienced. |
145
-
146
-
147
-
148
-
> [!NOTE]
149
-
>A question’s indicated cutoff value in the API is the threshold that Microsoft uses when analyzing your survey data. When you customize the cutoff value or Input Range, Microsoft analyzes your survey data according to your customization.
You can choose to collect each of the four API values or only the ones
164
-
you find most important. For example, you can choose to only ask
165
-
customers about their overall call experience instead of asking them
166
-
about their audio, video, and screen share experience. You can also
167
-
customize input ranges to suit your needs. The default input range is 1
168
-
to 5 for Overall Call, Audio, Video, and
169
-
Screenshare. However, each API value can be customized from a minimum of
170
-
0 to maximum of 100.
171
-
172
-
### Customization examples
173
-
174
-
175
-
| API Rating Categories | Cutoff Value*| Input Range |
176
-
| ----------- | ----------- | -------- |
177
-
| Overall Call | 0 - 100 | 0 - 100 |
178
-
| Audio | 0 - 100 | 0 - 100 |
179
-
| Video | 0 - 100 | 0 - 100 |
180
-
| Screenshare | 0 - 100 | 0 - 100 |
181
-
182
-
> [!NOTE]
183
-
> A question’s indicated cutoff value in the API is the threshold that Microsoft uses when analyzing your survey data. When you customize the cutoff value or Input Range, Microsoft analyzes your survey data according to your customization.
184
-
185
-
## Custom questions
186
-
In addition to using the End of Call Survey API you can create your own survey questions and incorporate them with the End of Call Survey results. Below you'll find steps to incorporate your own customer questions into a survey and query the results of the End of Call Survey API and your own survey questions.
- Embed Azure AppInsights into your application [Click here to know more about App Insight initialization using plain JavaScript](../../azure-monitor/app/javascript-sdk.md). Alternatively, you can use NPM to get the App Insights dependences. [Click here to know more about App Insight initialization using NPM](../../azure-monitor/app/javascript-sdk-configuration.md).
189
-
- Build a UI in your application that will serve custom questions to the user and gather their input, lets assume that your application gathered responses as a string in the `improvementSuggestion` variable
190
-
191
-
- Submit survey results to Azure Communication Services and send user response using App Insights:
// `improvementSuggesstion` contains custom, user response
195
-
if (improvementSuggestion !=='') {
196
-
appInsights.trackEvent({
197
-
name:"CallSurvey", properties: {
198
-
// Survey ID to correlate the survey
199
-
id:res.id,
200
-
// Other custom properties as key value pair
201
-
improvementSuggestion: improvementSuggestion
202
-
}
203
-
});
204
-
}
205
-
});
206
-
appInsights.flush();
207
-
```
208
-
User responses that were sent using AppInsights are available under your App Insights workspace. You can use [Workbooks](../../update-center/workbooks.md) to query between multiple resources, correlate call ratings and custom survey data. Steps to correlate the call ratings and custom survey data:
209
-
- Create new [Workbooks](../../update-center/workbooks.md) (Your Azure Communication Services Resource -> Monitoring -> Workbooks -> New) and query Call Survey data from your Azure Communication Services resource.
210
-
- Add newquery (+Add -> Add query)
211
-
- Make sure `Data source` is `Logs` and `Resource type` is `Communication`
212
-
- You can rename the query (Advanced Settings -> Step name [example: call-survey])
213
-
- Be aware that it could require a maximum of**2 hours** before the survey data becomes visible in the Azure portal.. Query the call rating data-
214
-
```KQL
215
-
ACSCallSurvey
216
-
| where TimeGenerated > now(-24h)
217
-
```
218
-
- Add another query to get data from App Insights (+Add -> Add query)
219
-
- Make sure `Data source` is `Logs` and `Resource type` is `Application Insights`
- You can rename the query (Advanced Settings -> Step name [example: custom-call-survey])
229
-
- Finally merge these two queries by surveyId. Createnewquery (+Add -> Add query).
230
-
- Make suer the `Data source` is Merge and select `Merge type` as needed
231
-
232
-
233
-
## Collect survey data
234
-
235
-
> [!IMPORTANT]
236
-
> You must enable a Diagnostic Setting in Azure Monitor to send the log data of your surveys to a Log Analytics workspace, Event Hubs, or an Azure storage account to receive and analyze your survey data. If you do not send survey data to one of these options your survey data will not be stored and will be lost. To enable these logs for your Communications Services, see: [End of Call Survey Logs](../concepts/analytics/logs/end-of-call-survey-logs.md)
237
-
238
-
### View survey data with a Log Analytics workspace
239
-
240
-
You need to enable a Log Analytics Workspace to both store the log data of your surveys and access survey results. To enable these logs for your Communications Service, see: [End of Call Survey Logs](../concepts/analytics/logs/end-of-call-survey-logs.md).
241
-
242
-
- You can also integrate your Log Analytics workspace with Power BI, see: [Integrate Log Analytics with Power BI](../../../articles/azure-monitor/logs/log-powerbi.md).
243
-
244
-
## Best practices
245
-
Here are our recommended survey flows and suggested question prompts forconsideration. Your development can use our recommendation or use customized question prompts and flows for your visual interface.
246
-
247
-
**Question 1:** How did the users perceive their overall call quality experience?
248
-
We recommend you start the survey by only asking about the participants’ overall quality. If you separate the first and second questions, it helps to only collect responses to Audio, Video, and Screen Share issues if a survey participant indicates they experienced call quality issues.
249
-
250
-
251
-
- Suggested prompt: “How was the call quality?”
252
-
-API Question Values: Overall Call
253
-
254
-
**Question 2:** Did the user perceive any Audio, Video, or Screen Sharing issues in the call?
255
-
If a survey participant responded to Question 1with a score at or below the cutoff value for the overall call, then present the second question.
256
-
257
-
- Suggested prompt: “What could have been better?”
258
-
-API Question Values: Audio, Video, and Screenshare
259
-
260
-
### Surveying Guidelines
261
-
- Avoid survey burnout, don’t survey all call participants.
262
-
- The order of your questions matters. We recommend you randomize the sequence of optional tags in Question 2in case respondents focus most of their feedback on the first prompt they visually see.
263
-
- Consider using surveys for separate Azure Communication Services Resources in controlled experiments to identify release impacts.
264
-
265
-
266
-
## Next steps
267
-
268
-
- Analyze your survey data, see: [End of Call Survey Logs](../concepts/analytics/logs/end-of-call-survey-logs.md)
269
-
270
-
- Learn more about the End of Call Survey, see: [End of Call Survey overview](../concepts/voice-video-calling/end-of-call-survey-concept.md)
31
+
::: zone pivot="platform-android"
32
+
[!INCLUDE [End of Call Survey for Android](./includes/end-of-call-survey-android.md)]
33
+
::: zone-end
271
34
272
-
- Learn how to use the Log Analytics workspace, see: [Log Analytics Tutorial](../../../articles/azure-monitor/logs/log-analytics-tutorial.md)
35
+
::: zone pivot="platform-ios"
36
+
[!INCLUDE [End of Call Survey for iOS](./includes/end-of-call-survey-ios.md)]
37
+
::: zone-end
273
38
274
-
- Create your own queries in Log Analytics, see: [Get Started Queries](../../../articles/azure-monitor/logs/get-started-queries.md)
39
+
::: zone pivot="platform-windows"
40
+
[!INCLUDE [End of Call Survey for Windows](./includes/end-of-call-survey-windows.md)]
0 commit comments