dialogflow / dialogflow-fulfillment-nodejs

Dialogflow agent fulfillment library supporting v1&v2, 8 platforms, and text, card, image, suggestion, custom responses
Apache License 2.0
597 stars 282 forks source link

In-intent quick replies not working for facebook #310

Open jerry-s3739 opened 3 years ago

jerry-s3739 commented 3 years ago

My bot stopped showing quick replies on messenger which I showed using inside intent response. Now I am using payload to show quick replies buttons.

AHMED3T commented 3 years ago

Same problem with me. My messenger bot was working perfectly but now it doesn't send quick replies. Any coder written after Suggestion doesn't get sent to messenger

TedLLH commented 3 years ago

Yup this happens on me too, I thought the integration should be fairly straight forward but it wasn't, nothing get sent with agent.add(new Suggestion()) for facebook messenger.

mauli9530 commented 3 years ago

This is happening with me too. I tried to agent.add(new suggestion) & custom payload but nothing is showing on facebook messanger. I can only see image there. I can not see any buttons & quick replies. I saw youtube videos but for them it was working.

Did you all try custom payload for quick replies? Was it working for you all on facebook messanger?

abhishekgupta-99 commented 3 years ago

I'm stuck with the same issue. Anyone who got the solution? Need it urgently. Please help.

jerry-s3739 commented 3 years ago

We need to send quick replies json from fulfilment. New Suggestion is not working anymore.

On Thu, 10 Jun, 2021, 6:11 pm abhishekgupta-99, @.***> wrote:

I'm stuck with the same issue. Anyone who got the solution? Need it urgently. Please help.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dialogflow/dialogflow-fulfillment-nodejs/issues/310#issuecomment-858587441, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN2CTYIG72MXES4OQOQG3VDTSCXIPANCNFSM4PS2UN7A .

abhishekgupta-99 commented 3 years ago

Can you please explain it more? With some code snippet or example. I'll be really thankful. I did try custom payloads and a lot of workaround but to no avail.

jerry-s3739 commented 3 years ago

Require "Payload" from "dialogflow-fullfillment".

Try this.

agent.add(new Payload(agent.FACEBOOK,{

"text": "Welcome to my agent!",
"quick_replies": [
  {
    "title": "reply 1",
    "content_type": "text",
    "payload": "reply1"
  }
]

}));

On Thu, 10 Jun, 2021, 8:30 pm abhishekgupta-99, @.***> wrote:

Can you please explain it more? With some code snippet or example. I'll be really thankful.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dialogflow/dialogflow-fulfillment-nodejs/issues/310#issuecomment-858698023, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN2CTYLZSDFXK4MWO3K5F43TSDHRVANCNFSM4PS2UN7A .

abhishekgupta-99 commented 3 years ago

Require "Payload" from "dialogflow-fullfillment". Try this. agent.add(new Payload(agent.FACEBOOK,{ "text": "Welcome to my agent!", "quick_replies": [ { "title": "reply 1", "content_type": "text", "payload": "reply1" } ] })); On Thu, 10 Jun, 2021, 8:30 pm abhishekgupta-99, @.***> wrote: Can you please explain it more? With some code snippet or example. I'll be really thankful. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#310 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN2CTYLZSDFXK4MWO3K5F43TSDHRVANCNFSM4PS2UN7A .

Did this work for you? I tried this though but didn't work.

jerry-s3739 commented 3 years ago

If you are using direct integration then it's not working. It only works if you are using middleware like Respond.io.

On Thu, Jun 10, 2021 at 9:57 PM abhishekgupta-99 @.***> wrote:

Require "Payload" from "dialogflow-fullfillment". Try this. agent.add(new Payload(agent.FACEBOOK,{ "text": "Welcome to my agent!", "quick_replies": [ { "title": "reply 1", "content_type": "text", "payload": "reply1" } ] })); … <#m7197606988010237081> On Thu, 10 Jun, 2021, 8:30 pm abhishekgupta-99, @.***> wrote: Can you please explain it more? With some code snippet or example. I'll be really thankful. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#310 (comment) https://github.com/dialogflow/dialogflow-fulfillment-nodejs/issues/310#issuecomment-858698023>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN2CTYLZSDFXK4MWO3K5F43TSDHRVANCNFSM4PS2UN7A .

Did this work for you? I tried this though but didn't work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dialogflow/dialogflow-fulfillment-nodejs/issues/310#issuecomment-858766499, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN2CTYPA2TWMFF7SHCHDFNLTSDRWJANCNFSM4PS2UN7A .

abhishekgupta-99 commented 3 years ago

Thanks for guiding me. I'm glad, you replied. Any documentation or blog you would like me to refer? It's kinda urgent.

jerry-s3739 commented 3 years ago

Well, in-intent custom payload is working in direct integration as well.

On Fri, 11 Jun, 2021, 12:09 am abhishekgupta-99, @.***> wrote:

Thanks for guiding me. I'm glad, you replied. Any documentation or blog you would like me to refer? It's kinda urgent.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dialogflow/dialogflow-fulfillment-nodejs/issues/310#issuecomment-858892431, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN2CTYIVKKJFICOR7VAUHZTTSEBHPANCNFSM4PS2UN7A .

abhishekgupta-99 commented 3 years ago

Yeah, it's working in intent custom payload. But in my use-case, I want to dynamically send suggestion chips or buttons to the facebook messenger user using Dialogflow fulfillment. Any hack or alternate in your mind.

jerry-s3739 commented 3 years ago

Need to think about it. Its depend on your use case. Please tell me your use case personally so I can try it on my end as well.

On Fri, 11 Jun, 2021, 12:16 am abhishekgupta-99, @.***> wrote:

Yeah, it's working in intent custom payload. But in my use-case, I want to dynamically send suggestion chips or buttons to the facebook messenger user using Dialogflow fulfillment. Any hack or alternate in your mind.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dialogflow/dialogflow-fulfillment-nodejs/issues/310#issuecomment-858900175, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN2CTYK3JJX5P6EUB6XZNQDTSEB6TANCNFSM4PS2UN7A .

abhishekgupta-99 commented 3 years ago

Can I have your email id? Thanks in advance

jerry-s3739 commented 3 years ago

Sure, here it is. @.***

On Fri, 11 Jun, 2021, 12:55 am abhishekgupta-99, @.***> wrote:

Can I have your email id? Thanks in advance

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dialogflow/dialogflow-fulfillment-nodejs/issues/310#issuecomment-858951174, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN2CTYOYGRAMYZXNOD5F22LTSEGQZANCNFSM4PS2UN7A .

abhishekgupta-99 commented 3 years ago

It's not readable. I guess you can't share your email id here. What I can see is @.***

jerry-s3739 commented 3 years ago

Try this "pranav{dot}rathi{put at}axlewebtech {dot}com

On Fri, 11 Jun, 2021, 1:01 am abhishekgupta-99, @.***> wrote:

It's not readable. I guess you can't share your email id here. What I can see is @.***

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dialogflow/dialogflow-fulfillment-nodejs/issues/310#issuecomment-858960286, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN2CTYNTDPKBAAMDYJLVCH3TSEHJDANCNFSM4PS2UN7A .

mauli95 commented 3 years ago

Yeah, it's working in intent custom payload. But in my use-case, I want to dynamically send suggestion chips or buttons to the facebook messenger user using Dialogflow fulfillment. Any hack or alternate in your mind.

Hey abhishek,

I had the same issue as you have right now. I had this kind of usecase and i had to send quick replies dynamically through dialogflow fulfillment. My issue got solved. And i have saved that code. If you want i can send you that whole code. Let me know if you want it.

jerry-s3739 commented 3 years ago

Yes, please do. Please send it to me.

On Fri, 11 Jun, 2021, 3:31 am mauli95, @.***> wrote:

Yeah, it's working in intent custom payload. But in my use-case, I want to dynamically send suggestion chips or buttons to the facebook messenger user using Dialogflow fulfillment. Any hack or alternate in your mind.

Hey abhishek,

I had the same issue as you have right now. I had this kind of usecase and i had to send quick replies dynamically through dialogflow fulfillment. My issue got solved. And i have saved that code. If you want i can send you that whole code. Let me know if you want it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dialogflow/dialogflow-fulfillment-nodejs/issues/310#issuecomment-859107953, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN2CTYOKQJAYBTNOLH4QBTTTSEY2ZANCNFSM4PS2UN7A .

abhishekgupta-99 commented 3 years ago

Yeah, it's working in intent custom payload. But in my use-case, I want to dynamically send suggestion chips or buttons to the facebook messenger user using Dialogflow fulfillment. Any hack or alternate in your mind.

Hey abhishek,

I had the same issue as you have right now. I had this kind of usecase and i had to send quick replies dynamically through dialogflow fulfillment. My issue got solved. And i have saved that code. If you want i can send you that whole code. Let me know if you want it.

Yes, please do. Thanks in advance. abhishekgupta97023{at the rate} gmail {dot} com

AutInD commented 2 years ago

Yeah, it's working in intent custom payload. But in my use-case, I want to dynamically send suggestion chips or buttons to the facebook messenger user using Dialogflow fulfillment. Any hack or alternate in your mind.

Hey abhishek,

I had the same issue as you have right now. I had this kind of usecase and i had to send quick replies dynamically through dialogflow fulfillment. My issue got solved. And i have saved that code. If you want i can send you that whole code. Let me know if you want it.

Please send it to me too.