Recipe: Inbound Webhook
Goal: An external system POSTs an event; WorkHub24 validates, stores, and optionally acknowledges via HTTP.
Build the flow
Section titled “Build the flow”- Create a GENERIC automation.
- Add a Webhook trigger.
- Set Content Type (usually
application/json). - Define webhook inputs matching payload fields (
eventType,recordId, …). - Add Decision on
eventType(or similar). - Yes / primary path: Database
CREATEorUPDATE, and/or Sub WorkflowCREATEfor human follow-up. - Other path: Send Email or discard via a no-op path you document.
- Optionally HTTP Request back to the caller’s callback URL.
- Save and enable.
- Copy the webhook URL from the product UI after save/enable.
- Send a
curlrequest with a known JSON body. - Open Executions and verify Decision path and Database writes.
Example request shape:
curl -X POST "$WEBHOOK_URL" \ -H "Content-Type: application/json" \ -d '{"eventType":"created","recordId":"abc-123"}'Variations
Section titled “Variations”- Replace Decision with Split Branches for more than two event types.
- Loop when the payload contains an array of items.
Related: Webhook, Decision & Split Branches.