dialogflow

creating dialogflow v2 project with serverless

瘦欲@ 提交于 2019-12-13 02:56:44
问题 Having issues trying to run a new AWS/Serverless/Dialogflow project. I am sure it is something simple that I am just not seeing. Steps Created initial project using: serverless create --template aws-nodejs-typescript moved handler.js to src/ & updated serverless.yml npm installed actions-on-google followed the actions-on-google example and updated src/handler.js import { dialogflow, Image } from 'actions-on-google'; const app = dialogflow({debug: true}); app.intent("test.intent", (conv) => {

How to create table in dialogflow-fulfillment

北城余情 提交于 2019-12-13 02:09:48
问题 In actions-on-google we can add table like : const {dialogflow, Table} = require('actions-on-google'); const request = require('request'); const conv = new DialogflowConversation(request); conv.ask('This is a simple table example.'); conv.ask(new Table({ dividers: true, columns: ['header 1', 'header 2', 'header 3'], rows: [ ['row 1 item 1', 'row 1 item 2', 'row 1 item 3'], ['row 2 item 1', 'row 2 item 2', 'row 2 item 3'], ], })); How to create the table using dialogflow-fulfillment ??

i am using gcp service account but when calling dialogue flow api its giving error :

六月ゝ 毕业季﹏ 提交于 2019-12-13 00:55:38
问题 here is error: Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the dialogflow.googleapis.com. We recommend that most server applications use service accounts instead. For more information about service accounts and how to use them in your application, see https://cloud.google.com/docs/authentication/. 回答1: Many of the Client Libraries pull from the Application Default Credentials, a summary of how they're

ReferenceError: conv is not defined in actions-on-google

*爱你&永不变心* 提交于 2019-12-12 23:28:34
问题 I want to implement Suggestions chips in my Dialog flow (to be use in Google Assistant)..But I am getting this error "ReferenceError: conv is not defined" which i didn't understand.I have go through the official docs but what am i missing? I have also added actions_intent_OPTION in his Event following is my code const functions = require('firebase-functions'); const {actionssdk} = require('actions-on-google'); const app = actionssdk({debug: true}); var admin = require("firebase-admin"); admin

Hooking into the actions_intent_NO_INPUT in DialogFlow

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 19:45:43
问题 I'm trying to customise the way in which Google Home handles no user input - ie. if the user just says nothing and doesn't respond, I want to handle that in my fulfilment, but currently, no matter what combination of things I try, Google Home will always say "Sorry, I didn't hear that", and then after two attempts, will exit. My fulfilment is returning a response after she's said "Sorry".. but i want to use a more graceful message than the default. I just cannot figure out how to override

Cannot able to add multiple fields to a document by saving the document name in dialogflow context

岁酱吖の 提交于 2019-12-12 19:44:54
问题 I have created a dialogflow bot to ask the users some questions and I need to save all the answers entered in Firestore database, I am using api v1 bot! I could able to add the fields name and answer1 by saving the Name of the document in Dialogflow context, index.js: const functions = require("firebase-functions"); const admin = require("firebase-admin"); admin.initializeApp(functions.config().firebase); exports.dialogflowFirebaseFulfillment = functions.https.onRequest( (request, response) =

DialogFlow parameter reprompt after validation

放肆的年华 提交于 2019-12-12 17:01:21
问题 I have an intent where bot is asking for date to the user. The users might say today , last week , last monday etc. If the user is saying things like last week or last month (basically things which cannot be converted into an exact date), then bot should prompt again please enter exact date to proceed . Case 1: taking @sys.date I have marked this entity as required and set prompt please enter the date , now every time user is saying last week, it is not being detected by @sys.date and user is

Unit test Actions on Google Dialogflow locally

二次信任 提交于 2019-12-12 14:55:24
问题 I'm trying to unit test a DialogflowApp locally by using the firebase shell environment. (in a cli do firebase experimental:functions:shell and then call my methods) I have followed this guide by google https://firebase.google.com/docs/functions/local-emulator but they don't use the DialogflowApp where the invoked function tries to bind a request object containing intents and parameters like this -> exports.myFunction = functions.https.onRequest((request, response) => { const app = new App({

Is it possible to create agents via the API?

两盒软妹~` 提交于 2019-12-12 14:29:31
问题 So I've been reviewing the DialogFlow documentation and wondering if it's possible to use the API fully programmatically and create agents via the API as well? A sample use case being the user on my platform being to able to create their own bot . I'm not able to find the functionality listed in their docs and wanted to double check with the community here. 回答1: You can’t create an agent through the API but once it’s been created in the UI it can be edited through the API. Users will need to

Dialogflow IntentHandler not found for intent: myIntent (Dialogflow V2)

倾然丶 夕夏残阳落幕 提交于 2019-12-12 13:23:53
问题 Since I upgraded my Dialogflow to use v2 API, I get the following error: Dialogflow IntentHandler not found for intent: myIntent For some reasons, my intent is no longer recognized altough the action name is identical - myIntent. This is how I'm using my NodeJS (express V4) app to return a response: dialogflowApp.intent('myIntent', (conv, {version}) => { conv.close('test'); }); What could have gone wrong? 回答1: Make sure that myIntent is spelled the same in Dialogflow and in your NodeJS