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
Create HTML tables with n8n and Google Sheets

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

Learn how to Build this Workflow with AI:

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.


Create HTML tables with n8n and Google Sheets

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.
manualTrigger
twist
twist
Free

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.
googleSheets
httpRequest
chainLlm
+8
Free

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.
RespondToWebhook
If
Slack
+5
Free

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.
agent
lmChatOpenAi
toolWorkflow
+3
Free

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.
gumroadTrigger
googleSheets
httpRequest
+3
Free

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
httpRequest
informationExtractor
wordpress
+9
Free
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.