Templates in Facebook Messenger

Hi

I’ve checked the documentation for facebook templates. However, couldn’t figure out how to send those templates from message node. If I paste the template as text message, the json body is getting displayed on the messenger.

If I send through javascript, nothing is getting displayed. Could you please help on this? Below is the template I’m using.

{
“message”: {“attachment”:{
“type”:“template”,
“payload”:{
“template_type”:“generic”,
“elements”:[
{
“title”:“Welcome”,
“image_url”:image_url,
“subtitle”:“South Indian Recipies”,
“default_action”: {
“type”: “web_url”,
“url”: url,
“webview_height_ratio”: “tall”
},
“buttons”:[
{
“type”:“web_url”,
“url”:“url”,
“title”:“View Our Channel”
}
]
}
]
}
}
}
}

Hi

Can someone please help on this?