Skip to content

Instantly share code, notes, and snippets.

@savelee
Created February 21, 2020 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save savelee/612450be03f64a69cc2d4b2b4a5b9d32 to your computer and use it in GitHub Desktop.
Save savelee/612450be03f64a69cc2d4b2b4a5b9d32 to your computer and use it in GitHub Desktop.
Custom Payload Hangouts example
{
"hangouts": {
"header": {
"title": "Pizza Bot Customer Support",
"subtitle": "pizzabot@example.com",
"imageUrl": "https://goo.gl/aeDtrS"
},
"sections": [
{
"widgets": [
{
"keyValue": {
"icon": "TRAIN",
"topLabel": "Order No.",
"content": "12345"
}
},
{
"keyValue": {
"topLabel": "Status",
"content": "In Delivery"
}
}
]
},
{
"header": "Location",
"widgets": [
{
"image": {
"imageUrl": "https://dummyimage.com/600x400/000/fff"
}
}
]
},
{
"header": "Buttons - i could leave the header out",
"widgets": [
{
"buttons": [
{
"textButton": {
"text": "OPEN ORDER",
"onClick": {
"openLink": {
"url": "https://example.com/orders/..."
}
}
}
}
]
}]
}
]
}
}
@AlejoGomezDavivienda
Copy link

Good example!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment