Skip to content

Instantly share code, notes, and snippets.

@freakeinstein
Last active Feb 23, 2018
Embed
What would you like to do?
json test data
{
"greet": [
{
"text": "Hello welcome."
},
{
"text": "I can help you to search for resturents."
}
],
"restaurant_search": [
{
"attachment": {
"type": "template",
"payload": {
"template_type": "generic",
"elements": [
{
"title": "Can Pollastre",
"image_url": "https://media-cdn.tripadvisor.com/media/photo-s/0f/70/e9/61/elaborando-nuestros-pollos.jpg",
"subtitle": "Sushi"
},
{
"title": "iKibana",
"image_url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSlV2BH3i2uhS4PO8CfedHluVlciiOvyLMiq0PMBVzFsEK-Ot_p9Q",
"subtitle": "Sushi"
},
{
"title": "La Burguesa",
"image_url": "https://media-cdn.tripadvisor.com/media/photo-o/08/e2/b5/fc/la-burguesa.jpg",
"subtitle": "Hamburguers"
},
{
"title": "Poké Si",
"image_url": "https://media-cdn.tripadvisor.com/media/photo-s/0f/a0/9a/db/poke-si.jpg",
"subtitle": "Pokes"
},
{
"title": "La Taquería",
"image_url": "https://s3-media4.fl.yelpcdn.com/bphoto/Xxn8S9QZO9pfO2qj2tXynA/348s.jpg",
"subtitle": "Mexican food"
},
{
"title": "Wok Show",
"image_url": "https://s3-media4.fl.yelpcdn.com/bphoto/C2Qak8-dU4RpdGeOwBJf4g/348s.jpg",
"subtitle": "Asian food"
}
]
}
}
},
{
"attachment": {
"type": "template",
"payload": {
"template_type": "generic",
"elements": [
{
"title": "Ashoka West End",
"image_url": "https://files.list.co.uk/images/a/ashoka-west-end-lst171069.jpg",
"subtitle": "indian"
},
{
"title": "Slumdog Delivered",
"image_url": "https://files.list.co.uk/images/s/slumdog-delivered-lst193463.jpg",
"subtitle": "curry"
},
{
"title": "Masala Twist",
"image_url": "https://files.list.co.uk/images/m/masala-twist-helensburgh-1-1320943271-lst209281_thumb.jpg",
"subtitle": "masala"
},
{
"title": "Khazaana Indian Restaurant",
"image_url": "https://media-cdn.tripadvisor.com/media/photo-o/0d/dc/21/01/20161205-211122-largejpg.jpg",
"subtitle": "spice"
},
{
"title": "Namaste Hanoi",
"image_url": "https://media-cdn.tripadvisor.com/media/photo-o/11/ab/51/e7/the-south-indian-veg.jpg",
"subtitle": "rice curry"
}
]
}
}
}
],
"goodbye": [
{
"text": "thanks for visiting.."
},
{
"text": "have a great day!"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment