If Messenger greeting is turned on on your Facebook Page, the bot's Welcome message will not be triggered, so in order for your bot to work properly Messenger Greeting needs to be turned off.

How to turn it off?

Go to your Facebook Page Settings:

Click on Messaging and scroll down to Starting a Messenger Conversation to turn the Show a greeting option on:

Did this answer your question?