Create Dynamic HTML Tables from Google Sheets with n8n Webhooks

Learn how to automatically generate stylish HTML tables from Google Sheets data using n8n webhooks. This workflow simplifies presenting spreadsheet data on web pages without manual coding or exporting.
webhook
googleSheets
function
+1
Workflow Identifier: 1429
NODES in Use: Webhook, Google Sheets, Function, Respond to Webhook

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Automation Does

This workflow takes data from a Google Sheets file and makes it into a pretty HTML table with Bootstrap style.
It helps people who need to show fresh data on a website, without manually copying or coding each time.

The workflow is started by a webhook URL. When the URL is opened, it reads data from the selected Google Sheet, creates the full HTML page with the table, and sends that page back immediately.

This way, the webpage always shows live data pulled straight from the sheet.


Tools and Services Used

  • n8n Platform: Hosts the automation workflow.
  • Webhook node: Triggers workflow on demand.
  • Google Sheets node: Reads rows from a Google Sheets document.
  • Function node (Build HTML): Turns sheet data into a proper HTML page with a Bootstrap table.
  • Respond to Webhook node: Sends back the HTML as the HTTP response.

Inputs, Processing Steps, and Outputs

Input

  • A webhook request hits a special URL.
  • Google Sheets spreadsheet ID and OAuth2 credentials to access the data.

Processing Steps

  1. Webhook node receives the request.
  2. Google Sheets node reads live rows from the given spreadsheet.
  3. Function node builds an HTML page string with Bootstrap styling using the sheet data.
  4. Respond to Webhook node returns the HTML page as the HTTP response.

Output

The output is a fully formed HTML page showing the spreadsheet data as a styled table.
This can be shown directly in browsers or embedded in other web pages.


Beginner Step-by-Step: How to Use This Workflow in n8n

Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open the n8n editor where you want to run the workflow.
  3. Click on “Import from File” and select the downloaded workflow file.

Configure Credentials and IDs

  1. Add your Google Sheets OAuth2 credentials inside n8n if not already set.
  2. Find the Google Sheets node in the imported workflow.
  3. Replace the Sheet ID with your own Google Sheets document ID. This is the string found between “/d/” and “/edit” in the sheet URL.

Test the Workflow

  1. Run the workflow once by triggering the webhook URL in a browser or API tool like Postman.
  2. Check the response to see the live HTML table generated from your sheet data.

Activate the Workflow

  1. In the n8n editor, click “Activate” to make the workflow live.
  2. Use the webhook URL to fetch the table anytime from any system or browser.

If hosting n8n on your own server, consider self-host n8n for full control.


Common Issues and How to Fix Them

Google Sheets node returns no data or empty array

Check if the Sheet ID is exactly copied from the URL.
Make sure the Google Sheets document has data starting from the first row.

Webhook responds with empty content or HTML does not show

Ensure the Respond to Webhook node uses {{$json["html"]}} exactly as the response body.
Verify all node connections are correct and the workflow runs without errors.


Customization Ideas

  • Change Bootstrap classes in Build HTML Function node to adjust table style, like adding table-striped or table-bordered.
  • Switch the Google Sheets node to a different sheet to show other data.
  • Add pagination controls by editing the HTML building code if the sheet is very large.
  • Embed the webhook URL output in existing websites using an <iframe> tag.
  • Enable security on the Webhook node for Basic Auth or API key protection.

Summary

✓ Reads live data from Google Sheets.
✓ Creates a styled HTML table with Bootstrap.
✓ Sends the result back via webhook as a full HTML page.
✓ Saves time by removing manual export and formatting.
✓ Works instantly when called via webhook.
✓ Easy to configure and customize inside n8n.


Frequently Asked Questions

Yes, if the user provides the correct Google Sheets ID and has permission to access the spreadsheet.
The Respond to Webhook node sends the generated HTML page as the HTTP response to the webhook call.
The Bootstrap classes in the Function node can be edited to change visual styling easily.
Yes, security options like Basic Auth or API key protection can be enabled in the Webhook node settings.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation in n8n

A complete beginner guide to building an AI-powered SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free