是否有可能在对话框流中映射默认响应

时间:2017-12-08 12:39:38

标签: android chatbot actions-on-google dialogflow

1st question: Tell me about fees
Response from Intent: Tuition fees or transportation fees
2nd question: Tuition fees
Response from Intent:Please select Grade
3rd question: Grade1

是否有任何可能的方法来映射第二个问题和第三个问题,如“1年级学费”?

1 个答案:

答案 0 :(得分:0)

一种解决方案是使用所需的实体。这就是我解决问题的方法:

我创建了实体: enter image description here enter image description here

enter image description here

我列出了用户可能会说的内容。我还将用户可能会说的实体与我创建的实体进行匹配。 enter image description here

我根据需要设置实体 enter image description here

我为所需的实体定义了自定义提示。 enter image description here

我回答说这个人的选择。您可能想要调用webhook,而不是仅仅重复用户在此处所说的内容。 Here我谈论webhooks。 enter image description here