messenger-bot-tutorial icon indicating copy to clipboard operation
messenger-bot-tutorial copied to clipboard

Send to messenger button in email

Open webtaculars opened this issue 8 years ago • 8 comments

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

webtaculars avatar Jun 22 '16 11:06 webtaculars

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?

jellyfangs avatar Jun 25 '16 22:06 jellyfangs

I do not want to send "Message Me" button. I want to send "send to messenger" button in email.

webtaculars avatar Jun 28 '16 15:06 webtaculars

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.

andreasbhansen avatar Jun 30 '16 07:06 andreasbhansen

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.

webtaculars avatar Jun 30 '16 09:06 webtaculars

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.

jellyfangs avatar Jul 08 '16 22:07 jellyfangs

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?

RobertWSaunders avatar Jan 26 '17 03:01 RobertWSaunders

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!

sujitkumarguru avatar Dec 10 '18 13:12 sujitkumarguru

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!

RobertWSaunders avatar Dec 10 '18 16:12 RobertWSaunders