简体   繁体   English

Dialogflow 中的 Google 助理测验操作

[英]Google Assistant quiz action in Dialogflow

I would like to build a simple Google Assistant Action with Dialogflow that lets users answer 10 questions and give them the result at the end.我想用 Dialogflow 构建一个简单的 Google Assistant Action,让用户回答 10 个问题并在最后给出结果。

My concept:我的理念:

  • Ask 10 questions in total总共问10个问题
  • If the answer is YES -> add +1 to the counter如果答案是 YES -> 将 +1 添加到计数器
  • If the answer is NO -> add nothing如果答案是否定的 -> 不添加任何内容
  • After 10 questions give a summary like "You answered 6 Questions with Yes.在 10 个问题之后给出一个总结,比如“你用是回答了 6 个问题。

Do I need to use the Firebase Cloud Function Fulfillment for that?我需要为此使用 Firebase Cloud Function Fulfillment 吗? Any feedback is really appreciated.任何反馈都非常感谢。

是的,您需要使用 Firebase Cloud Function Fulfillment 开发一个函数来获取所有“是”和“否”,您可以按照本教程,然后更改数据存储插入部分以计算“是”的数量。

You are not obligated to use the Firebase Cloud.您没有义务使用 Firebase Cloud。 You can use your own external https API connection to your own server where you could host all of your questions and answers.您可以使用自己的外部 https API 连接到您自己的服务器,您可以在其中托管所有问题和答案。

Though in fact using the Firebase Cloud is easier to start with!虽然实际上使用 Firebase Cloud 更容易开始!

I am very new to GoA and Dialogflow development but i read in the docuentation that there is some kind of read/write storage thing available.我对 GoA 和 Dialogflow 开发很陌生,但我在文档中读到有某种读/写存储可用。

Yesterday i found out about JOVO and they even work with MongoDB or some other minimal stoarge solution - i still have not found out hwo they mange to put that inside an action, but it looks promising.昨天我发现了 JOVO,他们甚至与 MongoDB 或其他一些最小的存储解决方案一起工作 - 我仍然没有发现他们设法将它放在一个动作中,但它看起来很有希望。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM