I'm developing a bot for FB Messenger and want to set a greeting text for the first time a user interacts with the bot.
I followed what the docs say on setting the greeting text. Now I would like to test it and view the greeting message. However, I am stuck because I have already sent the bot messages and hence am not able to view the bot as a new user.
How is it possible to viewing the greeting message UI as if you were a new user?
Unfortunately there is no "official" way to see the greeting message UI as if you were a new user.
But, a workaround for this is to delete the conversation (from your messenger application or from Facebook's chat) and reinitiate it.
Related
We are running a chatbot based on the Facebook Messenger Platform. To introduce the bot to new users we have enabled the get started button: https://developers.facebook.com/docs/messenger-platform/discovery/welcome-screen#set_postback
Everything works fine from within the messenger. After starting a conversation our application receives a messaging_postbacks event. Trying the same from the customer chat plugin triggers nothing at all. According to the documentation this should work though: https://developers.facebook.com/docs/messenger-platform/discovery/customer-chat-plugin#steps
If a new conversation is started via the plugin, and your bot has set
up the get started button, we will send a messaging_postbacks webhook
event to your webhook when the user clicks the get started button.
Do we miss something? Is there something else we have to do? Is this a bug?
If you are not getting any postback, you can check if you white-listed your domain where your customer chat plugin is added.
Also, you can use messaging_referrals for old users.
I have created a page private reply app and its working as expected . I have the page subscription with feeds to the webhook on this app.
Now, I have created another app for Chat bot , but the app is not working. I want to know if both of them can work at the same time or I have to crate a single app which will handle both of these ?
I'm new to Messenger platform and I'm developing a help desk BOT integrated with Facebook Messenger (on a Facebook Page).
I'm wondering on the best practice to fallback/redirect a conversation to a "real agent/operator" (when the BOT is unable to undestand or help the user).
Is it possible to redirect to another page? alert an operator? ...
I was only considering the various possibilities and best practices .... any advice is welcome!
Thank you!
What I did in my chatbot, is that when a user wants to talk to a real agent, he presses on a button called "Talk to Support". (I'll not talk about when this button is sent, you can make your own criteria)
Now in my database, there's a column "Chatting with Support", it becomes "true" when the user presses on the "Talk to Support" button, and as long as it's true, the chatbot script will ignore every message from this user.
Now the important part: when the user wants to go back to the chatbot?
I gave my agents a string like "Cancel Chat Session". And whenever a user wants to go back to the chatbot, my agents type "Cancel Chat Session".
What happens is that I subscribed my webhook to messaging_echoes event, which simply sends every message my agents send to any user to my chatbot aswell.
You know the rest, I'll check every request in my chatbot if it's an Echo, the check the text, if it's "Cancel Chat Session", I'll set the column "Chatting with Support" to false for the user, and he's back to the chatbot.
Check Facebook documentation for messaging_echoes events:
messaging_echoes
I hope you could make use of this :)
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.
I'm developing my own website and I would like to integrate it with my facebook page.
I would like to have small button or widget in my site that in case user wants to send feedback on my site he's clicking it and write down his message. This message is automatically sent to my facebook private messages (inbox) and I can reply to it.
Let me know if there is option like this? Do I need to develop new FB app for this?
Thank you,
Moshe