Bottom line: a webhook is a URL that gets called when something happens. One tool "rings the doorbell" by sending a message to the URL; the tool that owns the URL does something in response. If you can paste a link into a settings page, you can use webhooks.
The doorbell analogy
An API is a door. You knock, ask a question, get an answer. A webhook is a doorbell on your house that someone else rings when there is news. You don't have to keep checking the door; the bell tells you.
In software terms: a payment processor has news ("someone paid"). You give it a URL. When someone pays, it sends a short message to that URL. Whatever lives at the URL reacts.
Sending versus receiving
Every webhook has two sides and the words get confusing:
- The sender is the tool that has the event. It has a settings box called "webhook URL", "notification URL" or "callback URL". You paste a URL in.
- The receiver is the tool that owns the URL and reacts when it is called.
Flow Automator can be either. A workflow with a webhook trigger is a receiver: it gives you a URL to paste elsewhere. A workflow with a webhook action is a sender: it posts to a URL you provide.
The message
The sender includes a payload, usually a block of JSON describing what happened: the order number, the customer email, the amount. The receiver can use it or ignore it. In Flow Automator, the payload is appended to the email or Slack message so you see exactly what arrived.
Testing safely
- Create a workflow with a webhook trigger and an email action. Save it and copy the URL.
- Paste the URL into the sending tool and trigger a test event (most tools have a "send test" button).
- Check your inbox. If the email arrives with the payload, the plumbing works.
Do the test with the action set to email before you point anything at Slack or a production URL. It is the cheapest way to see what the payload actually looks like.
The three things that go wrong
- Wrong event. The sending tool is subscribed to "order created" when you wanted "order paid". Read the event list carefully.
- Paused workflow. A paused receiver returns a "workflow is paused" response and does nothing. Flip it on.
- Changed payload. The sending tool updated and the fields moved. The run log in Flow Automator shows the last error, which usually names the missing field.
Keeping it safe
A webhook URL is a secret. Anyone who has it can trigger your workflow. Ours are long random tokens, rate-limited, and the actions they can take are bounded: email goes only to you, outbound posts go only to public HTTPS addresses. If a URL leaks, switch the trigger to manual and back to webhook and you get a fresh one.