使用 Dialogflow 和 BigQuery ML 实现帮助台聊天机器人的问题

Issue with Implementing a Helpdesk Chatbot with Dialogflow & BigQuery ML

我正在尝试根据 this tutorial 实施聊天机器人。

成功完成以下步骤,

1. Train a Model Using BigQuery Machine Learning
2. Create a Dialogflow Agent
3. Import an IT helpdesk agent
4. Use the Inline Editor to create a fulfillment that integrates with BigQuery
5. Enable webhook for fulfillment

在完成所有这些步骤后测试聊天机器人时,我在步骤 6. Test Your Chatbot! 中没有得到所需的输出,输入:

a.Hi
b.I would like to submit a ticket
c.My email is student@qwiklabs.net
d.I can't login

我没有创建工单并显示预计时间,而是收到一个空的响应,上面写着:Default response : Not available.

在诊断信息下,我可以在“履行状态”选项卡下看到以下错误:

"Webhook call failed. Error: UNKNOWN."

另外 index.js 选项卡中使用的查询 returns 直接在 Bigquery 上执行时出错 我已经仔细检查了教程中的所有步骤,我似乎无法完成这项工作。

我也有同样的问题。我使用了您教程中的 "Diagnostic info" 和 "Copy fulfillment request as curl"。 当我尝试执行这个 curl 时,我得到了 403 "Your client does not have permission to get URL"。如果您尝试重现这些步骤并且您将得到相同的错误,那么问题可能与您的云函数调用权限有关。修复权限问题

  1. 转到云功能选项卡
  2. Select 您的云函数(复选框)
  3. 单击右侧“权限”选项卡下的"Add members"
  4. 在"New memebers"下输入"allUsers"
  5. Select 作为 "Cloud Functions -> Cloud Functions Invoker"
  6. 的角色
  7. 保存
  8. 只需将其粘贴到浏览器中即可测试您的云功能

从那里:Firebase cloud function "Your client does not have permission to get URL /200 from this server"