是否有任何方法可以捕获DialogFlow中的整个用户输入?

发布于 2025-02-10 03:53:05 字数 203 浏览 1 评论 0原文

我正在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

流年已逝 2025-02-17 03:53:05

我会将对话发送到日志并使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文