I was working with Dialogflow V1 and decided to change to the V2 beta. The API has changed and I cannot recover my previous facebook templates I was sending to Messenger. With V1 I used:
{
'speech': speech,
"data": {
"facebook": {
"attachment": {
"type": "template",
"payload": {
"template_type": "button",
"text": "What do you want to do next?",
"buttons": [{
"type": "web_url",
"url": "https://www.messenger.com",
"title": "Visit Messenger"
}]
}
}
}
}
}
My problem is that I do not know where the data
entry should go in V2. Could somebody provide me with a working example or a link in the Dialogflow Docs where the data
field is explained?