Templates / Capture and clean inbound web form leads with an authenticated webhook

Capture and clean inbound web form leads with an authenticated webhook

Ready for 3.0

by PERLY · 19 views · created 2026-07-16 · Lead Generation

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 11 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Sheets.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Refuse anything unsigned (Code): runs custom JavaScript code
  2. Spot the junk, with a reason (Code): runs custom JavaScript code
  3. Junk? (If): checks a condition and branches into true / false
  4. Keep three fields, safely (Code): runs custom JavaScript code
  5. Normalise the lead (Code): runs custom JavaScript code
  6. Write it down anyway (Google Sheets): append
  7. Make it safe for a spreadsheet (Code): runs custom JavaScript code
  8. Answer 200, say nothing (Respond to Webhook): sends the response back to the webhook caller
  9. Append to the leads sheet (Google Sheets): append
  10. Answer with the clean lead (Respond to Webhook): sends the response back to the webhook caller

Services it uses

Google Sheets

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (5)

From the author

Quick overview This workflow receives inbound web form submissions via an n8n webhook, validates requests using a shared secret header, and cleans and standardizes lead fields (name, email, message, timestamps) so you can reliably pass a structured record…

Excerpt from PERLY's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.