Skip to main content

Automated web form data collection and storage to Google Sheets

Workflow preview

Workflow preview
100%
Automated web form data collection and storage to Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automated Web Form Data Collection and Storage to Google Sheets Overview This n8n workflow allows you to collect data from a web form and automatically store it in a Google Sheet. It includes data ...

Best for

  • Document Extraction automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.splitinbatches, n8n-nodes-base.webhook, n8n-nodes-base.googlesheets, n8n-nodes-base.code, n8n-nodes-base.stickynote, n8n-nodes-base.wait

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by SpaGreen Creative.

Original n8n.io source

1.1 Workflow description

Title
Automated web form data collection and storage to Google Sheets
Workflow name
Automated web form data collection and storage to Google Sheets

Automated Web Form Data Collection and Storage to Google Sheets

Overview

This n8n workflow allows you to collect data from a web form and automatically store it in a Google Sheet. It includes data cleanup, date stamping, optional batching, and throttling for smooth handling of single or bulk submissions.


What It Does

  • Accepts data submitted from a frontend form via HTTP POST
  • Cleans and structures the incoming JSON data
  • Adds the current date automatically
  • Appends structured data into a predefined Google Sheet
  • Supports optional batch processing and a wait/delay mechanism to control data flow

Features

  • Webhook trigger for external form submissions
  • JavaScript-based data cleaning and formatting
  • Looping and delay nodes to manage bulk submissions
  • Direct integration with Google Sheets via OAuth2
  • Fully mapped columns to match sheet structure
  • Custom date field (submitted_date) auto-generated per entry

Who’s It For

This workflow is perfect for:

  • Developers or marketers collecting lead data via online forms
  • Small businesses tracking submissions from landing pages or contact forms
  • Event organizers managing RSVP or booking forms
  • Anyone needing to collect and store structured data in Google Sheets automatically

Prerequisites

Make sure the following are ready before use:

  • An n8n instance (self-hosted or cloud)
  • A Google account with edit access to the target Google Sheet
  • Google Sheets OAuth2 API credentials configured in n8n
  • A web form or app capable of sending POST requests with the following fields:
    • business_name
    • location
    • whatsapp
    • email
    • name

Google Sheet Format

Ensure your Google Sheet contains the following exact column names (case-sensitive):

Business Name Location WhatsApp Number Email Name Date
SpaGreen Bangladesh 8801322827753 [email protected] Abdul Mannan 2025-09-14
Dev Code Journey Bangladesh 8801322827753 [email protected] Shakil Ahammed 2025-09-14

> Note: The "Email" column includes a trailing space — this must match exactly in both the sheet and column mapping settings.


Setup Instructions

1. Configure Webhook

  • Use the Webhook node with path:
    /93a81ced-e52c-4d31-96d2-c91a20bd7453
  • Accepts POST requests from a frontend form or application

2. Clean Incoming Data

  • The JavaScript (Code) node extracts the submitted fields
  • Adds a submitted_date in YYYY-MM-DD format

3. Loop Over Items (Optional for Batches)

  • The Split In Batches node allows handling bulk form submissions
  • For single entries, the workflow still works without adjustment

4. Append to Google Sheet

  • The Google Sheets node appends each submission as a new row
  • Mapped fields include:
    • Business Name
    • Location
    • WhatsApp Number
    • Email
    • Name
    • Date (auto-filled)

5. Add Delay (Optional)

  • The Wait node adds a 5-second delay per loop
  • Helps throttle requests when handling large batches

How to Use It

  1. Clone or import the workflow into your n8n instance
  2. Update the Webhook URL in your frontend form’s POST action
  3. Connect your Google Sheets account in the Google Sheets node
  4. Confirm that your target sheet matches the required column structure
  5. Start sending data from your form — new entries will appear in your sheet automatically

> This setup ensures form submissions are received, cleaned, stored efficiently, and processed in a controlled manner.

Notes

  • Use the Sticky Notes in the workflow to understand each node’s purpose
  • You can modify the delay duration or disable looping for single submissions
  • For added security, consider securing your webhook with headers or tokens

Ideal Use Cases

  • Contact forms
  • Lead capture pages
  • Event signups or bookings
  • Newsletter or email list opt-ins
  • Surveys or feedback forms

Support

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 2 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 3 - Store Data in Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 4 - Clean response data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

3. Summary Table

Workflow Automated web form data collection and storage to Google Sheets
Complexity intermediate
Nodes 11
Categories Document Extraction
Author SpaGreen Creative
Published 14 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8574/8574.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automated web form data collection and storage to Google Sheets do?

Automated Web Form Data Collection and Storage to Google Sheets Overview This n8n workflow allows you to collect data from a web form and automatically store it in a Google Sheet. It includes data ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction use case.