dialogflow-fulfillment

Getting Issue during re-calling the intent after rejecting Google Account linking

烈酒焚心 提交于 2020-08-10 22:24:33
问题 Below is my chatbot structure Intent 1 (result): Here User will ask for a result. It will do the account linking and check the email id registration on their server whether it is registered or not via API and showing the result. app.intent('result', (conv,{date})=>{ var userDate = date; var apiUserEmailID= conv.data.apiUserEmailID; var apiUserKey= conv.data.apiUserKey; console.log("apiUserKey : "+apiUserKey); if (typeof (apiUserKey) == "undefined" || apiUserKey == "" || apiUserKey == null) {

Getting Issue during re-calling the intent after rejecting Google Account linking

一曲冷凌霜 提交于 2020-08-10 22:22:11
问题 Below is my chatbot structure Intent 1 (result): Here User will ask for a result. It will do the account linking and check the email id registration on their server whether it is registered or not via API and showing the result. app.intent('result', (conv,{date})=>{ var userDate = date; var apiUserEmailID= conv.data.apiUserEmailID; var apiUserKey= conv.data.apiUserKey; console.log("apiUserKey : "+apiUserKey); if (typeof (apiUserKey) == "undefined" || apiUserKey == "" || apiUserKey == null) {

Generating a card with button is shown successfully in Dialogflow but not in Facebook Messenger

左心房为你撑大大i 提交于 2020-08-10 18:55:23
问题 I have the following fulfillment message which is run success on Dialogflow platform: return {"fulfillmentMessages": [ { "platform": "FACEBOOK", "text": { "text": ['Great news! Grab a bowl of Pop-Corn and enjoy one of the two films!\n\n(Type "Thank you" to continue!)'] } }, { "platform": "FACEBOOK", "card": { "buttons": [ { "text": "Thank you" } ] } } ] } Output is this in Dialogflow: However, the same expected result is never accomplished in Facebook Messenger: I have found similar questions

Generating a card with button is shown successfully in Dialogflow but not in Facebook Messenger

China☆狼群 提交于 2020-08-10 18:55:19
问题 I have the following fulfillment message which is run success on Dialogflow platform: return {"fulfillmentMessages": [ { "platform": "FACEBOOK", "text": { "text": ['Great news! Grab a bowl of Pop-Corn and enjoy one of the two films!\n\n(Type "Thank you" to continue!)'] } }, { "platform": "FACEBOOK", "card": { "buttons": [ { "text": "Thank you" } ] } } ] } Output is this in Dialogflow: However, the same expected result is never accomplished in Facebook Messenger: I have found similar questions

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: {