相关地址 GitHub上的开源地址: https://github.com/actions-on-google/apiai-trivia-game-nodejs 问答游戏模板在此: https://triviatemplate.com
包括actions-on-google模块和firebase-functions模块,因为脚本将部署到 Firebase: // Import the Dialogflow module from the Actions on Google client library. const {dialogflow} = require('actions-on-google'); // Import the : // Instantiate the Dialogflow client. const app = dialogflow({debug: true}); 注意,这里的 Dialogflow 变量是actions-on-google
package.json 在内联编辑器的package.json文件中,我们将request和request-promise-native包添加到依赖项中,如下所示: "dependencies": { "actions-on-google