Series 01 is done, time for practice. Let's start with the Webhook: it works in testing, but when the form on your website sends a real submission, nothing happens or the page keeps waiting forever. Here's what to check before you hook it up in production.
- Test URL and Production URL: the Test URL (with /webhook-test/ in the address) only works when you click “Listen for test event” in the editor. The Production URL (with /webhook/) works when the workflow is active. The second one is what you paste into your form or another app.
- Where the data lives: you'll find the request body in
{{ $json.body.email }}, URL parameters in{{ $json.query.id }}, and headers in{{ $json.headers }}. - Authentication: the default is None, which means anyone who knows the URL can trigger your workflow. Pick e.g. Header Auth and keep the secret in Credentials (remember episode 07?).
- Respond: the Immediately option responds right away, before the workflow does anything. When the sender needs to get a result, choose Using 'Respond to Webhook' Node and place that node where the result is ready. In it you set Respond With, e.g. JSON, and under Options — Response Code.
Watch out for:
- A Test URL pasted into a form only works while you're testing. In production, submissions simply get lost.
- Changing the Path or HTTP Method changes how the webhook is called. Every app that uses the old address stops working.
- Long processing before the response keeps the sender waiting and can end in a timeout. Respond fast, and do the heavy lifting after Respond to Webhook.
Rule of thumb: in production, use only the Production URL, always with Authentication and a deliberately chosen response mode.
Upcoming meetups and workshops are listed in the Events section.