I’m attempting to set up a workflow that is triggered when inventory quantity changed, and if the total inventory is less than 1, Send HTTP Request to Google Chat.
The step I’m having difficulty with is the last “Send HTTP Request”.
In Google Chat, I go to the space where I want the message posted > Manage Webhooks > Create webhook. I give it a name, and Google Chat only provides the below URL (I’ve edited some of the characters, so this is not the exact URL).
I’m unsure if I need to include something else in the headers (i.e. the token value in the URL, the key value in the URL, etc.). If I include the token and/or key value in the headers, should they be removed from the URL?
Shopify Flow Action details:
Send HTTP Request
HTTP method: POST
HEADERS
Key: Content-Type
Value: application/json; charset=UTF-8
Body:
Zero Inventory - {{productVariant.product.title}} {{productVariant.sku}}
{{productVariant.inventoryItem.inventoryHistoryUrl}}