See llms.txt for all machine-readable content.

Back to Templates

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

Created by

Created by: Dr. Firas || drfiras
Dr. Firas

Last update

Last update 5 hours ago

Categories

Share


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

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

Setup

  1. 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).
  2. Add a Gmail OAuth2 credential and set it on the Gmail step used to send the audit email.
  3. Add a Google Sheets OAuth2 credential, then select the target spreadsheet (document ID) and worksheet/tab (sheet name) for lead logging.
  4. Review the configuration values (output language, number of recommendations, max HTML characters, and email subject prefix) and adjust them to your needs.
  5. 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.

The AI Doctor