是否有任何方法可以捕获DialogFlow中的整个用户输入?
我正在使用Google DialogFlow构建电报聊天机器人。我需要将所有对话保存在数据库中(是的,我知道DialogFlow具有内置的历史记录,但我需要存储在数据库中)。因此,我试图通过意图功能将历史记录保存到Firebase Firestore,每次我的意图匹配时都调用(在内联编辑器中定义函数,云功能)。因此,我需要用户ID和用户键入的完整消息(不仅是参数)。有什么办法做到这一点吗?
I'm building a telegram chatbot with google dialogflow. I need to save all conversations in a database (Yes, I know that Dialogflow has the history built-in, but I need to store in a database). So, I'm trying to save the history to firebase firestore with the intent function, called every time that my intent is matched (functions are defined in the inline editor, cloud functions). So, I need the user id and the full message typed by the user and the bot (not only parameters). Is there any way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会将对话发送到日志并使用
audit logs
将它们捕获到云记录中。然后,我会 /a>。您可以在这里查看如何请参阅并将日志写入firebase 。
I would send the conversation to logs and capture these using
Audit Logs
to capture them into Cloud Logging. Then I would link Cloud Logging to Firebase. You can see here how to see and write Logs into Firebase.