Google Workspace Webhooks
Hello, the organization that I am working with as a contractor is deep into Google Workspace for all chat. Has anyone successfully sent webhook alerts to a space?
twendlingats
Posted 3 years ago·Last reply 3 years ago
5 comments
LM User
·3 years agoYep, you just need to specify the JSON you want to send in your payload. You can insert any token from the alert into the JSON. What you can’t do is gracefully handle null values or missing tokens (because of different alert types).
Have you mocked up the POST in postman? That would let you get the JSON payload fine tuned and working, then you can move that into LM and replace the values with tokens.
tswisdom
·3 years agoFrom the information available, it would appear the issue here is that alert metadata is being passed as JSON tokens, which aren’t natively recognized by Google. Instead it would likely need to be passed as the value of one or more widgets per Google’s card message structure.
twendlingats
OP3 years agoI’ll be 100% honest I am at square one and was just trying to make sure the listener was receiving data. In the docs it looks like I can write my own JSON to deliver and use the variables? Ideally would like to send in native card format like what is shown here: https://developers.google.com/chat/api/guides/message-formats/cards
LM User
·3 years agoWhat does the payload of your integration look like?
twendlingats
OP3 years agoRegardless of the method I am getting the following error: