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