Automate On-Page SEO Audits with n8n and OpenAI

Discover how this unique n8n workflow combines web scraping, OpenAI-powered SEO analysis, and Gmail to automate detailed on-page SEO audits, saving hours and boosting your website’s search ranking potential.
formTrigger
httpRequest
lmChatOpenAi
+5
Workflow Identifier: 1777
NODES in Use: Form Trigger, HTTP Request, OpenAI Chat Model, Langchain Agent, Merge, Aggregate, Markdown, Gmail
Automate SEO audits with n8n and OpenAI

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

Learn how to Build this Workflow with AI:

What the Workflow Does

This workflow audits website landing pages for SEO problems fast and clearly.
It uses AI to check both page technical parts and written content.
You get a full report by email automatically.


Who Should Use This Workflow

Marketers or website owners who want to find SEO errors quickly.
Anyone tired of manually checking pages and wants good advice fast.
Users who want reports emailed without extra work.


Tools and Services Used


How the Workflow Works

Input

  • User enters a landing page URL in the form.

Processing Steps

  • Form Trigger receives the page URL.
  • HTTP Request downloads the page HTML content.
  • Two Langchain Agent nodes analyze the HTML:
    one checks technical SEO issues,
    the other checks content and keywords.
  • Merge node combines both AI audit results.
  • Aggregate joins audit texts into one report.
  • Markdown node turns report into easy-to-read HTML.
  • Gmail sends the report by email.

Output

A detailed SEO audit report arrives in email.
It shows technical fixes and content tips clearly.


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

Download and Import

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor where you want to add the workflow.
  3. Use Import from File option in n8n to load the workflow JSON.

Configure Credentials and Settings

  1. Add OpenAI API Key in the Langchain Agent nodes.
  2. Add Gmail OAuth2 credentials in the Gmail node.
  3. Check and update any emails, IDs, or URLs if needed to fit your setup.
  4. Verify the prompts in the Langchain Agent include {{$json.data}} expressions exactly as shown.

Test and Activate

  1. Run a test by submitting a URL to the form endpoint.
  2. Check if the email report sends and looks correct.
  3. Fix any errors from logs or node messages.
  4. Activate workflow in n8n for continuous use.

For more control or privacy, consider self-host n8n to run workflows on your server.


Inputs, Processing, and Outputs Explained

Inputs

  • User input URL through Form Trigger.
  • Page HTML fetched with HTTP Request.

Processing

  • Technical SEO and content SEO checked by two Langchain Agent nodes.
  • The audits are merged and combined using Merge and Aggregate nodes.
  • Report formatting with Markdown node.

Outputs

  • Final SEO audit report sent via Gmail node.

Customizations Ideas

  • Edit Langchain Agent prompts to focus on local SEO or e-commerce specifics.
  • Set Gmail node to send to multiple emails separated by commas for teamwork.
  • Add Slack node after Merge to alert SEO team instantly.
  • Insert HTML to PDF conversion node before Gmail to send PDF reports.

Common Problems and Fixes

OpenAI API rate limit or no response

Check OpenAI API keys in credentials.
Upgrade plan or add retries to handle limits.

HTTP Request returns 404 or empty page

Verify URL format and availability.
Use headers or proxy if site blocks requests.

Gmail node authentication fails

Reauthorize Gmail OAuth2 credentials.
Allow n8n access in Google security settings.


Pre-Production Checklist

  • Submit test URL in form to check webhook trigger.
  • Confirm HTTP Request gets page HTML.
  • Verify prompts contain the {{$json.data}} placeholder.
  • Make sure AI nodes produce clear audits.
  • Check Merge and Aggregate nodes combine outputs correctly.
  • Preview markdown output in HTML.
  • Test Gmail sends email properly.
  • Run full end-to-end test before going live.

Deployment Guide

Activate the workflow after confirming setup and tests.
It runs when the form URL is submitted.
Enable error logging in n8n for monitoring.
You may secure the form webhook with authentication.
Scale or split audits if API costs grow.


Summary

✓ Automates SEO audits by URL input.
✓ Uses AI models for technical and content checks.
✓ Sends clear reports by email automatically.
✓ Saves hours and avoids manual errors.
✓ Easy to import, configure, test, and launch in n8n.


Automate SEO audits with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow processes one URL per form submission. To audit multiple URLs, submit separately or change the workflow for batch processing.
Yes, each audit calls OpenAI GPT-4o Mini model and costs about 30 cents per page.
Yes, data is securely processed by OpenAI and not stored long term. Secure the n8n instance properly.
Yes, replace the Gmail node with SMTP or other n8n email nodes.
Author
Written By
Ritu Sanjali

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.

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.

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.

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.

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.

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.
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.