Generate on-page SEO audit reports from a web form with GPT-5 mini and Gmail

Go to Workflow
2 views
Built by Dr. Firas Dr. Firas
Created on July 28, 2026

Description

Quick overview
This workflow collects a landing page URL and email via an n8n form, fetches and analyzes the page with OpenAI (gpt-5-mini) to generate technical and content SEO audits, emails the combined report through Gmail, and logs each request to Google Sheets.

How it works
Receives a submission from an n8n-hosted form containing a landing page URL and the requester’s email address.
Fetches the landing page HTML via an HTTP request and extracts key elements (title, meta description, H1s, and cleaned body text).
Sends the raw HTML to OpenAI to generate a structured technical on-page SEO audit in Markdown with prioritized recommendations.
Sends the extracted page text and metadata to OpenAI to generate a structured content and keyword SEO audit in Markdown with prioritized recommendations.
Combines both audit sections and converts the combined Markdown into an HTML report.
Emails the HTML audit report to the requester using Gmail and then appends the lead details to a Google Sheets spreadsheet.

Setup
Add an OpenAI API credential and select it for both OpenAI chat model steps, ensuring the model is set to gpt-5-mini (or update it in the configuration values).
Add a Gmail OAuth2 credential and set it on the Gmail step used to send the audit email.
Add a Google Sheets OAuth2 credential, then select the target spreadsheet (document ID) and worksheet/tab (sheet name) for lead logging.
Review the configuration values (output language, number of recommendations, max HTML characters, and email subject prefix) and adjust them to your needs.
Activate the workflow and share the n8n form URL so visitors can submit audit requests.

Additional info
Generate SEO audit reports from a web form with GPT-5 mini and Gmail
📥 Open full documentation on Notion

Need help customizing?
Contact me for consulting and support : Linkedin

MY NEW YOUTUBE CHANNEL
👉 Subscribe to my new YouTube channel. Here I'll share videos and Shorts with practical tutorials and FREE templates for n8n.

Nodes Used (6)

Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Gmail
n8n-nodes-base.gmail
Google Sheets
n8n-nodes-base.googleSheets
HTML
n8n-nodes-base.html
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi