简体   繁体   中英

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.

My concept:

  • Ask 10 questions in total
  • If the answer is YES -> add +1 to the counter
  • If the answer is NO -> add nothing
  • After 10 questions give a summary like "You answered 6 Questions with Yes.

Do I need to use the Firebase Cloud Function Fulfillment for that? Any feedback is really appreciated.

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

You are not obligated to use the 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.

Though in fact using the Firebase Cloud is easier to start with!

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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