messenger-bot-tutorial
messenger-bot-tutorial copied to clipboard
Send to messenger button in email
I want to send "send to messenger" button to my users in the mail. Is this possible? If yes then how can I achieve it? As "send to messenger" button is an iframe, will it be possible to send it? @jw84
I'm confused.
Are you saying you want a FB Message me button in an email sent to your user that they can click on?
Is linking to your chat bot not enough? Ie. https://m.me/chatbot?
I do not want to send "Message Me" button. I want to send "send to messenger" button in email.
Is this what you want? https://developers.facebook.com/docs/messenger-platform/plugin-reference#send_to_messenger
Hard to understand what you want to achieve.
Yes. I want to add that "send to messenger" button in my mail. Actually I am creating a feedback messenger bot. So I want to send my users who have taken service from me, a email which that will ask them for a the feedback of the service by clicking on the "send to messenger" button. The main reason I am pushing for that specific plugin is that I want to send a order ID to my server by using data-ref in the plugin.
I get it now. You want to pass user state data from messenger to email and back to messenger.
I haven't gotten to a problem that needed this yet so I don't know the answer. I'll give it some more thought.
My hot take is that you write your own nodemailer app that sits on the server and generates the emails.
Another way to think about it is that chat bots are just traditional server/app progressive systems with connectors to chat platforms. Therefore email just another connector endpoint.
Anything you can send/reply to in FB messenger you can achieve the same with email, SMS, kik, and so on.
Take a look at https://github.com/jw84/messenger-bot-witai-tutorial to see what I mean about coupling/decoupling the server to the bot to the connectors.
If I implement the "Send to Messenger" button on the page and my user successfully goes through the flow, my webhook receiver gets the sender_id and I store it in the database for that user, but when I reload the page my "Send to Messenger" button gets reset to the default state. How can I make the button show the checkmarked version for users that have already gone through it?
Hi Robert, How did you send the sender_id at run-time? I have tried to update data-ref property at run-time via "Send to Messenger" but no luck.
Can you please share solution or steps with me? Thanks!
Hey @sujitkumarguru! It's been a while since I've touched this so I'm not sure I remember the answer to your question! Unfortunately I don't even have my repo to send you! Sorry I'm not much help!