function onMessage(e) { var bot = e.message.annotations[0].userMention.user.displayName; var loc = encodeURI(e.message.text.substring(bot.length+2)); var mapClick = { "openLink": { "url": "https://google.com/maps/search/?api=1&query=" + loc } }; return { // see JSON payload in the documentation link above }; } Finally, this function returns everything Hangouts Chat needs to render a UI card assumi
{{#tags}}- {{label}}
{{/tags}}