如何跟踪用户在chatbot上的要求(Microsoft Azure Bot Service) [英] How to track what users ask on chatbot ( Microsoft Azure Bot Service )

查看:63
本文介绍了如何跟踪用户在chatbot上的要求(Microsoft Azure Bot Service)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Microsoft Bot Service,并且聊天机器人将在公司网站上实施。首先,我想存储用户询问的每条消息。

I am using Microsoft Bot Service and chatbot will be implemented on company website. For the beginning, I want to store every message users ask. How to do that?

推荐答案

我发现了如何做到这一点。您需要登录到您的Azure Bot帐户。之后,导航到仪表板,然后查看botname-ai文件。单击该按钮,然后找到分析选项。然后运行以下命令,就可以了:

I found out how to do that. You need to log in to your Azure Bot account. After that navigate to the Dashboard and look at botname-ai file. Click that and find Analyze option. Then run this command and thats it:

  requests
| where url endswith "generateAnswer"
| project timestamp, id, name, resultCode, duration
| parse name with *"/knowledgebases/"KbId"/generateAnswer"
| join kind= inner (
traces | extend id = operation_ParentId
) on id
| extend question = tostring(customDimensions['Question'])
| extend answer = tostring(customDimensions['Answer'])
| project KbId, timestamp, resultCode, duration, question, answer

这篇关于如何跟踪用户在chatbot上的要求(Microsoft Azure Bot Service)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆