Giter Club home page Giter Club logo

Comments (8)

jellyfang avatar jellyfang commented on August 16, 2024

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?

from messenger-bot-tutorial.

webtaculars avatar webtaculars commented on August 16, 2024

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

from messenger-bot-tutorial.

andreasbhansen avatar andreasbhansen commented on August 16, 2024

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.

from messenger-bot-tutorial.

webtaculars avatar webtaculars commented on August 16, 2024

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.

from messenger-bot-tutorial.

jellyfang avatar jellyfang commented on August 16, 2024

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.

from messenger-bot-tutorial.

RobertWSaunders avatar RobertWSaunders commented on August 16, 2024

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?

from messenger-bot-tutorial.

sujitkumarguru avatar sujitkumarguru commented on August 16, 2024

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!

from messenger-bot-tutorial.

RobertWSaunders avatar RobertWSaunders commented on August 16, 2024

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!

from messenger-bot-tutorial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.