botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
80 stars 90 forks source link

Webchat: implement "Say something" action support #329

Closed Ankit-Gupta-1511 closed 5 years ago

Ankit-Gupta-1511 commented 6 years ago

Botpress version: 10.19.0

Channels: facebook

Hi, I am facing the issue with the builtin carousel in botpress. The builtin carousel treats even the facebook channel as webchat due to which action = "say something" is not working. Also when I am building a custom renderer for the same using generic_template in facebook messenger the carousel is showing up but when the button for postback is pressed I am not receiving any response on server. I tried using web_url which is working fine. I would really appreciate it if you can fix the builtin carousel and you can help me solve this postback button issue.

epaminond commented 6 years ago

@Ankit-Gupta-1511 , from what I can see in the code builting carousel renderers has handlers for facebook channel. Are you sure it's using webchat renderers?

Ankit-Gupta-1511 commented 6 years ago

Yes, currently I don't have the stack trace let me see if I can get you one

Ankit-Gupta-1511 commented 6 years ago

Here is the stack trace for it... carousel issue I sent the message from fb messenger and this is what I received on the server. I also saw the code in the builtins and it seemed fine to me too... not sure why this is happening for carousel only. For other builtins it works fine 👍

Ankit-Gupta-1511 commented 6 years ago

Also postback buttons are not working on fb messenger properly while web_url are. What happens in post back is that on clicking the button the text is displayed but the bot doesn't read it. For the bot to read it either I have to press quick_button or type in the text. Any help will be appreciated to solve this issue. Here is my code: code_for_image

This works fine if I change the button to web_url then it redirects to the url specified.

elinguiuriel commented 6 years ago

me too

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.