dialogflow

Is their any way to send multiple simple response in dialogflow

 ̄綄美尐妖づ 提交于 2019-12-22 09:41:21
问题 I need to send (more than 2 responses) simple responses back to user during the invocation for particular intent. But it is restricted to 2 simple response as mentioned in actions on google documentation. Is there any other way to send multiple responses? 回答1: The short answer is no, you can't send back more than one SimpleResponse at a time. There are, however, ways to work with this depending on your needs and making sure you are respecting good Visual UI design. You can concatenate many of

Account Unlinking on Actions on Google

帅比萌擦擦* 提交于 2019-12-22 08:14:19
问题 I'm developing an action on Google that requires the user to login with my services. I was able to implement account linking. That works fine; I'm able to complete the entire flow to authenticate the user using the Google Home app, but I couldn't find a way to unlink the account. The service does not appear at Apps with access to your account Is there any way to unlink an account? 回答1: The "preview" feature on both API.AI and Actions SDK will clear any existing OAuth tokens for your action on

Access Facebook Messenger User Profile API in DialogFlow

北城余情 提交于 2019-12-21 20:36:19
问题 I'm building a cross-platform chatbot in Google's DialogFlow. I'd like to access the Facebook User Profile API to learn the user's first name. I'm struggling to find advice on how (or if) I can make this happen. https://developers.facebook.com/docs/messenger-platform/identity/user-profile/ Has anybody here achieved this? 回答1: I did that for one of my bots yesterday, you need 2 things, first the Page Token and second is the psid which is Page scope user ID. On dialogflow, you will receive the

Cordova | Get live stream from microphone on iOS

落爺英雄遲暮 提交于 2019-12-21 05:50:05
问题 I am trying to build a voice calendar app that needs to use live stream from the microphone for speech recognition. So you have a button that starts listening to the microphone and stops automatically when the user stops speaking. I have already explored Cordova Media API that allows me to record the data to a wav file. This works but makes the process very slow since I need to wait for the recording to be finished. I used the https://api.ai as a starting point to build the 1st version of the

What is the relationship between 'intents' and 'actions' in Dialogflow?

会有一股神秘感。 提交于 2019-12-21 05:43:04
问题 I'm having a bit of trouble conceptualizing the relationship between 'intents' and 'actions' in a Dialogflow agent. I get that intents map the user's spoken request to a particular feature of my fulfillment service, optionally carrying parameters as input variables. This is how intents are defined in the official documentation: "An intent represents a mapping between what a user says and what action should be taken by your software." But what then are actions? Their definition reads almost

DialogFlow/Actions: Allow Google Assistant user to create Event in Google Calendar from Actions App

谁都会走 提交于 2019-12-20 05:58:05
问题 Target/Summary : I have an Actions App developed in Google DialogFlow and I want the user be able to create Google Calendar Event using the App (from Google Assistant). In other words, authenticate the user to Allow my app to use his Calendar to create Events. What is done: Since Google Actions doesn't allow use of Google Auth/Token endpoints, I opted to use http://www.auth0.com. Created an account (used my Google account) on auth0.com , created an Application and setup the following values

Where will the reply of a Carousel Selector be sent when using Dialogflow fulfillment server?

☆樱花仙子☆ 提交于 2019-12-20 04:38:42
问题 I am trying to figure out how I can embed Google Actions responses, such as the carousel, in a webhook response for DialogFlow. As epxlained in Is there a way to simply follow a URL in the Caroussel Selector?, the carousel selector can be used to present the user certain options. When the user clicks, the selected item will be sent back to the backend server. As said, I am using Dialogflow, so the fulfillment server will send the carousel list to the Assistant. It is not clear to me on which

Use NodeMailer in Dialogflow

蹲街弑〆低调 提交于 2019-12-20 04:38:17
问题 i would like to send an email for an operation in my program i make in Dialogflow. I wanna use NodeMailer but when i deploy my project i have this error message: The deployment of your Cloud Function failed: Function load error: Code in file index.js can't be loaded. Did you list all required modules in the package.json dependencies? Detailed stack trace: Error: Cannot find module 'nodemailer' Is this possible to use NodeMailer in DialogFlow ? Thanks 回答1: It sounds like you're using the built

how to integrate MongoDB database with dialogfow

烂漫一生 提交于 2019-12-20 03:54:30
问题 I have a webhook application where I have successfully retrieved data from Firebase database. But I need to incorporate MongoDB instead. This is the code so far. 'use strict'; const functions = require('firebase-functions'); const {WebhookClient} = require('dialogflow-fulfillment'); const mongoose = require('mongoose'); process.env.DEBUG = 'dialogflow:debug'; // enables lib debugging statements let uri = 'mongodb://dbAdynor:Adynor123!@testcluster-shard-00-00-x87dz.gcp.mongodb.net:27017

Actions on Google returns in simulator “We're sorry, but something went wrong. Please try again.”

∥☆過路亽.° 提交于 2019-12-19 06:30:55
问题 Debug tab: { "response": "We're sorry, but something went wrong. Please try again.", "expectUserResponse": false, "conversationToken": "", "audioResponse": "" } I create the sample project in Dialogflow and it works, but in the simulator Actions on Google it doesn't! 回答1: Please read the "Preview the app" section of this page: https://developers.google.com/actions/dialogflow/first-app?hl=en To preview your app: Turn on the Web & App Activity, Device Information, and Voice & Audio Activity