0

I have set up a welcome message to my chat bot on Facebook Messenger platform. Now I want to know when the user sends it's first ever message and handle this special case (typically by getting some more info about the user and storing it for future use and not query facebook graph API on every message).

Is there a special event when the user clicks the "Get started" CTA on messenger ? Any other easy way (except storing some data identifying the user myself) ?

j0k
  • 22,600
  • 28
  • 79
  • 90
Shaish
  • 714
  • 2
  • 10
  • 21
  • I never said that I want to query my storage every time I get a message. – Shaish Jun 09 '16 at 15:02
  • don't know if the bot would send the message delivery callbacks for the welcome messages when registering the `message_deliveries` event in your webhook, try it! – Hui-Yu Lee Jun 09 '16 at 16:23
  • There's a difference between sending the very first message and pressing the "Get Started" button. You don't get any notification for the "Get Started" button. It will directly show your welcome screen to the user. – Mukarram Khalid Jun 24 '16 at 04:51

1 Answers1

0

This seems to be solved now with the latest additions from facebook: https://developers.facebook.com/docs/messenger-platform/thread-settings/get-started-button

So you can just enter the specific payload for the "Get Started button" and act accordingly.

Shaish
  • 714
  • 2
  • 10
  • 21