I’ve been working around to let the bot start the greeting message first (example --> postback button) in Facebook Messenger or Slack, but I couldn’t find an exact way yet. Anyone experience such a thing ?
I do not think this is possible in messenger. You could do it using the Get Started
postback button. But other than this, I don’t think there are other ways.
As for slack, I don’t know. ¯\_(ツ)_/¯
I see, Get_Started from messenger Could you please advice, how we could use set up in bot to Trigger first get start message ? Thank you
You need to hit this API with your API token
https://graph.facebook.com/v2.6/me/messenger_profile?access_token=<token>
And the body would look something like this:
{
"get_started": {"payload": "/get_started"},
"persistent_menu":[
{
"locale":"default",
"composer_input_disabled": false,
"call_to_actions":[
{
"title":"Home",
"type":"postback",
"payload":"/home"
},
{
"title":"Change Language",
"type":"postback",
"payload":"/ask_languages"
},
{
"title":"Chat with Live Agent",
"type":"postback",
"payload":"PAYLOAD"
}
]
}
]
}
You can read more about the persistent menu here:
get_started - Messenger Platform - Documentation - Facebook for Developers ,
persistent_menu - Messenger Platform - Documentation - Facebook for Developers
Hope that helps.
@lahsuk So do we need to hit only for the fist time or every time the conversation start ?
You only need to set this up once (per facebook page).
@lahsuk I will try and see it Thank you alot