dialogflow

You are not authorized for this operation. Invalid access token DialogFlow v2

痴心易碎 提交于 2019-12-24 07:07:16
问题 I am trying to use DialogFlow v2 endpoint but for some reason I am getting not authorized message, eventhou I am able to generate access token using the following command: Initially I am running this to authorize the service for my local machine to be able to authorize to the service: gcloud auth activate-service-account --key-file=<service-account-key-file.json> then I get access token by following command: gcloud auth print-access-token and this access token I am attaching on the following

Is there a way to simply follow a URL in the Caroussel Selector?

怎甘沉沦 提交于 2019-12-24 06:07:53
问题 I am trying to figure out how I can embed Google Actions responses, such as the cards carousel, in a webhook response for DialogFlow. According to the documentation, the structure looks as following: "carouselSelect": { "items": [ { "optionInfo": { "key": "MATH_AND_PRIME", "synonyms": [ "math", "math and prime", "prime numbers", "prime" ] }, "title": "Math & prime numbers", "description": "42 is an abundant number because the sum of its proper divisors 54 is greater...", "image": { "url":

API.AI with google assistant - phone number capture problems

家住魔仙堡 提交于 2019-12-24 02:32:27
问题 We are trying to capture a phone number. Actually many other numbers, like amounts, zip, etc. We are using Google Home. The below urls are JSON payloads we received on the fulfillment side. The entity name is TheNumber. One JSON is when we setup the entity as @sys.number the other JSON when it was @sys.phone-number. https://s3.amazonaws.com/xapp-bela/gh/number-test.json https://s3.amazonaws.com/xapp-bela/gh/phone-number-test.json The first problem is that the google assistant is really

problems with request and cheerio in dialogflow

折月煮酒 提交于 2019-12-24 02:17:40
问题 What I'm trying to do is to be able to use request-promise-native and cheerio in my dialogflow webhook to scrape some articles from a website, I've tried several ways but never been able to work it out. My last attempt was doing as suggested in this post, but i could not make it work. If you want to have a look at my code, here it is the code i wrote, with a bit of explanation: https://github.com/Vaelthur/webscraping-with-dialogflow-incomplete 回答1: The problem is in the function registered to

Unhandled Rejection: Headers cant be set after they are sent

一个人想着一个人 提交于 2019-12-24 00:33:26
问题 I am creating a chatbot in Dialogflow. I am trying to add the data to the database when its throwing an error of Unhandled Rejection. This is my index.js file. 'use strict'; const functions = require('firebase-functions'); const {WebhookClient} = require('dialogflow-fulfillment'); //const {Card, Suggestion} = require('dialogflow-fulfillment'); var admin = require('firebase-admin'); //require("firebase/firestore"); admin.initializeApp(functions.config().firebase); var firestore = admin

Dialogflow fulfilment webhook url support self signed certificates?

喜你入骨 提交于 2019-12-23 20:23:48
问题 I am using Dialogflow fulfilment webhook for weather. Dialogflow says "You can use only https:// in fulfillment url when "Google Assistant" integration enabled" so, I tried Self-Signed certificates for https url. but I can't get webhook response. I can't use Self-Signed certificates for webhook url? thank you for anyhelp! 回答1: I found the answer myself after I have tried for 7 days. Dialogflow fulfilment webhook url doesn't support self signed certificates. so, I used heroku and aws lambda.

How use dialogflow-fulfillment-nodejs with Express

北城以北 提交于 2019-12-23 15:47:11
问题 I want use dialogflow fulfillment library into Express This is my code: import * as express from 'express'; import * as bodyParser from 'body-parser'; import * as dialogflowController from './controllers/dialogflow'; const app: express.Application = express(); app.use(bodyParser.json()); app.post('/echo', dialogflowController.doActions); const http = require('http'); const httpServer = http.createServer(app); httpServer.listen(80, function () { // ascolta sulla porta 80 per comando: ngrok

DialogFlow PermissionDenied: 403 IAM permission 'dialogflow.sessions.detectIntent'

烂漫一生 提交于 2019-12-23 11:09:13
问题 PermissionDenied: 403 IAM permission 'dialogflow.sessions.detectIntent' on 'projects/XXXX-live/agent' denied. I have used the DialogFlow client as a role while creating the service. What could be the problem? 回答1: When I was playing around with permissions with service accounts, I also encountered the same problem. I created a completely new service account and then gave it the client role, and it worked for some unknown reason. I would suggest trying to create another account and then giving

DialogFlow vs Lex for streaming intent detection

拟墨画扇 提交于 2019-12-23 05:36:14
问题 For my current project, I am looking for a bot building platform with the following features. Should support the creation/updating of new/existing bot via API. Support for intent detection from streaming audio. Enable the hosting of multiple bot agents in a single project. APIs to modify an existing bot/agent and save it as a new one. So I have thoroughly researched and also developed a simple working prototype using DialogFlow. DialogFlow supports intent detection from streaming audio. But

Actions-on-Google: Similar intents?

主宰稳场 提交于 2019-12-23 04:29:21
问题 I'm tinkering with Actions on Google with DialogFlow + Firebase. The idea is to custom build for IoT devices not supposed by the default AoG. In the case of Radio and TV, there are 2 intents currently: 1) Channel : It take in 3 parameters: device_name (custom entity), device_action (custom entity) and value. Eg: please change the radio channel to 22.3 OR change the channel of the tv to 22 2) Volume : It take in 3 parameters: device_name (custom entity), device_action (custom entity) and value