Google chatbot: Response cards are suddenly not showing up in chatbot - chatbot

I have created a chatbot with bot url(API Gateway API using a lambda function). Response messages/cards are correctly returned to the bot. But today response messages are working as expected but suddenly cards are not showing up in the response to Bot , its blank (API logs are fine, I can see that api has returned the card ).
After a while I am able to see the response cards are showing up for the previous requests also.
After refreshing chatbot page, the response cards renders properly

I think this is a bug.
I normally send messages to my hangouts groups with reminders and they are not working since 2 days ago.
As far as i can see, if i have a button with a url link, the card dosent show.
Card without the link work fine.
As you said, if i close and reopen hangouts, the cards show.

I have opened an issue on the chat api tracker about that https://issuetracker.google.com/issues/153412841
Edit: I was putting a textParagraph and buttons in the same widget. It was working before but now it doesn't. See the doc .

Related

Images not loading on Facebook chatbot

I developed a Facebook chatbot for displaying a carousel of images based on what the user entered in the chat. The images are hosted on my own website and belong to me. Initially, the carousel was loading the images properly from my website but since yesterday when the query is sent the following error message appears-
Attachment Unavailable - This attachment may have been removed or the person who shared it may not have permission to it wit...
This message is coming even after I have whitelisted my domain to my Facebook page as explained here
What is further unusual is that the images get loaded when I refresh my chat window or use the Messenger app on Android. I am guessing on refresh it loads from the cached in the browser and hence it is able to load.
I am not sure what is causing this issue. Any help or suggestion would be great. Thanks
This is currently happening for many Chatbot Apps it seems. Hopefully they fix it soon. It is already reported to facebook: https://developers.facebook.com/bugs/643964919115135

How to make response card buttons working in facebook chat for Lex?

I have configured response cards for prompt message on Lex console, I am able to get the card on messenger as well but when I click on any button it's not working.
It sends the value attached to the button, but I get no response. If I enter the response manually then I get the results immediately.
Do we need to configure something else to get buttons in the response cards working?
I got it working by checking/ticking the "messaging_postbacks" events in the Webhooks in messenger settings in the Facebook app.

Multiple Bots per FB app

I am running into a problem with FB messenger bot. Here is what is happening:
I have one app ( I want to use the same APP_SECRET)
I have two pages with different names
I have two different bots - one per page
I have one server / webhook
When I send messages to each of them, they work fine. I am using Generic template for both - with buttons.
When I select any button on the first bot, it works - gets post back event
When I select any button the second bot, webhook doesn't even gets called
If I swap the bots (first with second), I see the same behavior, new first bot gets post back events and the new second doesn't.
Any idea if this is a problem with FB Messenger framework? Or any suggestions.
Can you please provide the snippet in which you handle the postback events?
I think I can help since I've managed to run 5 bots on the same webhook.

Facebook Messenger Postback without user sending values: how to detect user has entered chat?

It's not very clear to me and perhaps other devs as well. I've read the Facebook Messenger docs maybe 5 times and I can't understand how bots detect when a user enters their chat window.
I started by looking for a postback, when users entered the bot experience. No Postbacks. I looked to see if it was Messenger Greeting, and that seems to only apply the first time a user arrives in your bot experience. This also seems a little different.
It's possible this functionality is not available to everyone. But Poncho has done this several times when I enter their experience and don't type anything.
Anyone seen this or have any ideas?
The postbacks are something completely different. The postbacks are received only when a user clicks on a button which contains a payload mentioned in the payload element of your button template or structured message. Facebook chat bot API sends this payload back to let you know that the user has clicked on a particular button.
What you're looking for is called Welcome Screen and you're right, the default behavior was not clearly listed in the documentation. But one of the Facebook engineers cleared the doubts for me and now they have edited the documentation. The welcome screen appears once and only once for a user on the messenger app i.e the first time when the user interacts with your chat bot even if the user deletes the conversation. From the docs:
The Welcome Screen only appears for new conversations. On mobile,
deleting conversations will not cause the Welcome Screen to appear
again. On desktop web, if you delete the conversation, you can make
the Welcome Screen appear again.
Where as, the behavior is different for the regular Facebook chat in a web browser. A user can see the Welcome Screen in the regular chat if he/she deletes the conversation.
There's no way to detect that the user has just entered the bot experience. I've tested Poncho bot before and I don't get any message when I enter the bot experience after the first conversation.
There's a possibility that you're experiencing this because of Watermarks. Watermarks are received on our webhook when a message is delivered and read by the user. May be they are handling watermarks in such a way that if the timestamp that comes with the watermark is few hours late than the current time, they send the message. You can read further about watermarks in the official documentation here and here.

Facebook app invite immediately deleted from notifications

I have a website where we use the request dialog to allow users to invite their friends to check us out. From the inviters side everything works as expected. The person being invited does get the notification, but it is immediately deleted. So they would see the red 1 over the globe for only a half a second, but it immediately dissapears and the message does not stay in their list of notifications. They do get the invite in the apps and games section. This used to work, but for some reason it has stopped. Is this possibly a config thing with the app settings within facebook? Any insight would be appreciated.
SOLVED
A little more detail on this. I created this as a web app in facebook apps. It looks like it also needs to have the App on Facebook setting checked with values added for the canvas url. It works as expected now. Heres a link to what pointed me in the right direction
Notification for facebook app requests not showing up