Beginner template: HTML form to Webhook to Google Sheets (with import-ready JSON)

Hi everyone,
I’m new to n8n and just finished my first real project, so I turned it into a
beginner-friendly repo in case it helps other people learning.
What it does
A visitor submits an HTML form → n8n receives it through a Webhook → the
Google Sheets node appends a new row → the sender gets a JSON success response.
Flow: Webhook → Google Sheets (Append Row) → Respond to Webhook
What’s in the repo

  • Import-ready workflow JSON (personal IDs removed)
  • A sample form.html to test with
  • A step-by-step README with the Google Sheet headers and expressions used
    Mistakes I ran into (hopefully saves you some time)
  • Test URL (/webhook-test/) only works while “Listen for test event” is active.
    The Production URL (/webhook/) only works when the workflow is Active.
  • Webhook data arrives under body, so the expression is
    {{ $json.body.name }}, not {{ $json.name }}.
  • Spaces in the webhook path cause trouble. Use something like form-submit.
  • Column headers in the sheet must match the mapping exactly, or cells stay empty.
  • The webhook URL is public, so don’t share your real one. Consider Header Auth.
    Repo: GitHub - codewithghani/n8n-webhook-form-to-google-sheets: Beginner n8n workflow: receive HTML form submissions via webhook and save them to Google Sheets. · GitHub
    Feedback is welcome, especially on how to add spam protection and validation
    to a public form. Thanks!

Thank you for sharing this, the note about the test URL versus the production URL is something that catches many people out on their first project. Since you asked about spam protection and validation, here are a few options that work well with this setup. A hidden honeypot field in the form, checked by an IF node right after the Webhook, filters out most basic bots at no cost. For stronger protection, a Cloudflare Turnstile or reCAPTCHA token can be sent with the form and verified with an HTTP Request node before anything is written to the sheet. For validation, an IF node that checks the email format and required fields can route invalid submissions to a Respond to Webhook node returning a 400 status code, so the front end can show a proper error instead of a false success message. It is also worth setting the Allowed Origins (CORS) option on the Webhook node to the domain that hosts the form. Finally, if duplicate submissions are a concern, the Append or Update Row operation in the Google Sheets node, matched on an email column, avoids creating repeated rows.

thanks for your guidance