dialogflow

Can WebhookResponse send a Basic Card?

守給你的承諾、 提交于 2020-08-09 19:32:46
问题 I'm developing an action and I want to return a basic card with information from a fullfilment webhook. I can return plain text with no problem, using WebhookResponse class for preparing the data before sending it. I did also create the basic card using BasicCard class. I noticed the response the WebhookResponse creates is diferent from the example responses available on google documentation. I was wandering if there's a new version I missed? Or if this isn't at all possible using this class?

Can WebhookResponse send a Basic Card?

社会主义新天地 提交于 2020-08-09 19:32:17
问题 I'm developing an action and I want to return a basic card with information from a fullfilment webhook. I can return plain text with no problem, using WebhookResponse class for preparing the data before sending it. I did also create the basic card using BasicCard class. I noticed the response the WebhookResponse creates is diferent from the example responses available on google documentation. I was wandering if there's a new version I missed? Or if this isn't at all possible using this class?

actions-on-google-dialogflow-session-entities-plugin not working in dialogflow's inline editor

南笙酒味 提交于 2020-08-08 05:39:27
问题 I haven't been able to create a Session Entity in Inline Editor, using this plugin: actions-on-google-dialogflow-session-entities-plugin. I declared the variable/package: const { sessionEntitiesHelper } = require('actions-on-google-dialogflow-session-entities-plugin'); Updated my json package "dependencies": { "actions-on-google": "^2.12.0", "firebase-admin": "^6.4.0", "firebase-functions": "^2.1.0", "dialogflow": "^4.0.3", "dialogflow-fulfillment": "^0.6.1", "google-auth-library": "^1.6.1",

actions-on-google-dialogflow-session-entities-plugin not working in dialogflow's inline editor

寵の児 提交于 2020-08-08 05:39:07
问题 I haven't been able to create a Session Entity in Inline Editor, using this plugin: actions-on-google-dialogflow-session-entities-plugin. I declared the variable/package: const { sessionEntitiesHelper } = require('actions-on-google-dialogflow-session-entities-plugin'); Updated my json package "dependencies": { "actions-on-google": "^2.12.0", "firebase-admin": "^6.4.0", "firebase-functions": "^2.1.0", "dialogflow": "^4.0.3", "dialogflow-fulfillment": "^0.6.1", "google-auth-library": "^1.6.1",

Dialogflow V2 Messenger Integration with Multiple Messages

杀马特。学长 韩版系。学妹 提交于 2020-08-08 03:34:52
问题 I am trying to send to multiple messages within one Webhook call to Dialogflow, which shall be passed to Messenger. Right now my Webhook responds with a malfunctioning JSON body: { 'fulfillmentText': "Text", 'fulfillmentMessages': [{ "platform": "facebook", "text": [{ "text": "Text" }] }], 'source': "facebook" } When I test the Webhook via Messenger I see the is typing symbol, but never receive the Text message. While testing the same Webhook from the Dialogflow Console I get Webhook

How to create a Facebook Carousel in Dialogflow as “Custom Payload”

放肆的年华 提交于 2020-08-05 18:42:07
问题 I would like to create a Mockup Facebook Bot with Dialogflow without using a webhook. It's possible to define channel specific answers in Dialogflow. There you can chooses between pre defined response types or a custom payload. The custom payload for a simple button works, but when I try to create a caroussel nothing happens. https://developers.facebook.com/docs/messenger-platform/send-messages/template/generic#carousel Where can I find out what is supported by Dialogflow and what isn't? How

How can we configure Context & Events in Inline Code editor

与世无争的帅哥 提交于 2020-07-23 11:10:19
问题 How can we configure Context & Events in Dialogflow Inline Code editor? I have tried the options below, but none of these is working. app.intent('test1', (conv)=>{ conv.Context.set({ name: 'weather', lifespan: 2, parameters: { city: 'Rome' }}); conv.followupEventInput.set({ 'name':'Event_Sample', "parameters": { "parameter-name-1": "parameter-value-1", "parameter-name-2": "parameter-value-2" }, "languageCode": "en-US" }); }); //conv.setContext({ name: 'weather', lifespan: 2, parameters: {

How can we configure Context & Events in Inline Code editor

夙愿已清 提交于 2020-07-23 11:09:10
问题 How can we configure Context & Events in Dialogflow Inline Code editor? I have tried the options below, but none of these is working. app.intent('test1', (conv)=>{ conv.Context.set({ name: 'weather', lifespan: 2, parameters: { city: 'Rome' }}); conv.followupEventInput.set({ 'name':'Event_Sample', "parameters": { "parameter-name-1": "parameter-value-1", "parameter-name-2": "parameter-value-2" }, "languageCode": "en-US" }); }); //conv.setContext({ name: 'weather', lifespan: 2, parameters: {

How can we configure Context & Events in Inline Code editor

送分小仙女□ 提交于 2020-07-23 11:08:09
问题 How can we configure Context & Events in Dialogflow Inline Code editor? I have tried the options below, but none of these is working. app.intent('test1', (conv)=>{ conv.Context.set({ name: 'weather', lifespan: 2, parameters: { city: 'Rome' }}); conv.followupEventInput.set({ 'name':'Event_Sample', "parameters": { "parameter-name-1": "parameter-value-1", "parameter-name-2": "parameter-value-2" }, "languageCode": "en-US" }); }); //conv.setContext({ name: 'weather', lifespan: 2, parameters: {

Accessing Facebook Messenger sender.id in DialogFlow

感情迁移 提交于 2020-06-29 08:37:53
问题 The bounty expires in 5 days . Answers to this question are eligible for a +50 reputation bounty. Revolucion for Monica wants to draw more attention to this question: 50 points to whoever find a way to get sender id through DialogFlow chatbot I'd like to access the Facebook User Profile API to learn the user's name so I can save its preferences in individual documents. Yet there where an update and now, to get the Facebook sender.id value, I have to use the originalDetectIntentRequest.payload