In this guide, I’ll show you how to create an AI-powered SEO agent that automatically scrapes any website, analyzes its on-page SEO, and sends you a detailed audit report—completely for free.
This tool uses:
✅ N8N (free workflow automation)
✅ Google Gemini 1.5 Pro (latest AI model)
✅ No coding required
Let’s get started!
Step 1: Set Up N8N (Self-Hosted or Cloud)
N8N is a powerful automation tool. You can either:
- Use N8N Cloud (paid, but has a free trial)
- Self-host for free (recommended)
Self-Hosting N8N on Google Cloud (Free Tier)
- Sign up for Google Cloud (Free $300 credit for new users).
- Create a VM instance (Compute Engine → VM Instances → Deploy a small instance).
- Install N8N using Docker:
Step 2: Get a Free Google Gemini API Key
- Go to Google AI Studio.
- Click “Get API Key” (sign in with Google if needed).
- Copy your API key (keep it secure).
⚠️ Note: The free tier allows 200K tokens/month (enough for ~100 audits).
Step 3: Import the SEO AI Agent Workflow
- Download the pre-made JSON workflow (link in resources).
- In N8N, click “Workflows” → “Import” and upload the JSON file.
- The workflow will load with pre-configured nodes.
Step 4: Configure the AI & Email Settings
A. Connect Google Gemini
- Double-click the “Gemini Chat Model” node.
- Paste your API key and select:
- Model:
gemini-1.5-pro-latest
(or latest available).
- Click “Save”.
B. Set Up Gmail for Reports
- Double-click the “Gmail” node.
- Connect your Google account (OAuth2).
- Enter the recipient email (where reports will be sent).
(Need help? Watch my Gmail-N8N setup guide).
Step 5: Test the SEO AI Agent
- Click “Test Workflow” in N8N.
- Enter a website URL (e.g.,
https://example.com
). - Click “Submit” and wait (~30 sec).
📧 You’ll receive an email with:
✔ Critical SEO issues (missing meta tags, slow load speed)
✔ Quick wins (alt text, schema markup)
✔ Actionable recommendations
Step 6: Automate Regular Audits (Optional)
To run weekly/monthly audits:
- Add a “Schedule Trigger” node in N8N.
- Set frequency (e.g., every 7 days).
- Save & let it run automatically!
Final Thoughts
You’ve just built a free AI-powered SEO auditor that:
🔹 Scrapes & analyzes any website
🔹 Generates detailed reports
🔹 Helps fix ranking issues
{
"name": "SEO AI Agent by WebSensePro",
"nodes": [
{
"parameters": {
"formTitle": "Conversion Rate Optimizer",
"formDescription": "Your Landing Page is Leaking Sales—Fix It Now",
"formFields": {
"values": [
{
"fieldLabel": "Landing Page Url",
"placeholder": "https://websensepro.com",
"requiredField": true
}
]
},
"options": {}
},
"id": "78445fa7-6748-4d48-850f-482c54eadc20",
"name": "Landing Page Url",
"type": "n8n-nodes-base.formTrigger",
"position": [
-360,
120
],
"webhookId": "afe067a5-4878-4c9d-b746-691f77190f54",
"typeVersion": 2.2
},
{
"parameters": {
"url": "={{ $json['Landing Page Url'] }}",
"options": {}
},
"id": "2c179720-6e61-42e8-8979-bf5b58439e24",
"name": "Scrape Website",
"type": "n8n-nodes-base.httpRequest",
"position": [
-160,
120
],
"typeVersion": 4.2
},
{
"parameters": {
"promptType": "define",
"text": "=You are a top-tier SEO Manager with deep expertise in technical SEO and a proven track record of optimizing websites for high performance in Google search rankings.\n\nYour task is to conduct a comprehensive On-Page Technical SEO Audit of a webpage by analyzing its HTML code.\n\nAudit Guidelines:\nReview all technical SEO elements, including but not limited to meta tags, headings, structured data, internal linking, page speed, mobile-friendliness, and indexability.\n\nIdentify any issues that may be impacting the page's ability to rank effectively in search engines.\n\nDeliverables:\nPresent your findings in well-organized bullet points, categorized under the following sections:\n\nCritical Issues – High-priority problems that must be addressed immediately.\n\nQuick Wins – Simple, actionable changes that can lead to significant improvements.\n\nOpportunities for Improvement – Areas that require more effort but offer long-term SEO benefits.\n\nOutput Requirements:\n\nKeep the output professional, concise, and clearly formatted.\n\nUse only bullet points—no introductory or explanatory text before or after the audit.\n\nEnsure readability and clarity throughout the response.\n\nHere is the content of my landing page: {{ $json.data }}",
"options": {}
},
"id": "c403eb14-427f-4761-b23e-5d2760cc2bdc",
"name": "Content Audit",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
200,
320
],
"typeVersion": 1.7
},
{
"parameters": {
"promptType": "define",
"text": "=You are a top-tier SEO Manager with deep expertise in technical SEO and a proven track record of optimizing websites for high performance in Google search rankings.\n\nYour task is to conduct a comprehensive On-Page Technical SEO Audit of a webpage by analyzing its HTML code.\n\nAudit Guidelines:\nReview all technical SEO elements, including but not limited to meta tags, headings, structured data, internal linking, page speed, mobile-friendliness, and indexability.\n\nIdentify any issues that may be impacting the page's ability to rank effectively in search engines.\n\nDeliverables:\nPresent your findings in well-organized bullet points, categorized under the following sections:\n\nCritical Issues – High-priority problems that must be addressed immediately.\n\nQuick Wins – Simple, actionable changes that can lead to significant improvements.\n\nOpportunities for Improvement – Areas that require more effort but offer long-term SEO benefits.\n\nOutput Requirements:\n\nKeep the output professional, concise, and clearly formatted.\n\nUse only bullet points—no introductory or explanatory text before or after the audit.\n\nEnsure readability and clarity throughout the response.\n\nHere is the content of my landing page: {{ $json.data }}",
"options": {}
},
"id": "8b250551-189d-4219-ad17-0448811e70f5",
"name": "Technical Audit",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
200,
-80
],
"typeVersion": 1.7
},
{
"parameters": {},
"id": "d61d8475-49e5-4749-8d5a-dcb96a7c352e",
"name": "Merge",
"type": "n8n-nodes-base.merge",
"position": [
700,
120
],
"typeVersion": 3,
"alwaysOutputData": true
},
{
"parameters": {
"fieldsToAggregate": {
"fieldToAggregate": [
{
"fieldToAggregate": "output"
}
]
},
"options": {}
},
"id": "071bd32c-eb19-4169-b58a-f3f52c8e1d84",
"name": "Aggregate",
"type": "n8n-nodes-base.aggregate",
"position": [
900,
120
],
"typeVersion": 1
},
{
"parameters": {
"mode": "markdownToHtml",
"markdown": "=# On-Page Technical Audit\n{{ $json.output[0] }}\n\n# On-Page SEO Content Audit\n{{ $json.output[1] }}",
"options": {}
},
"id": "288d5440-2183-4434-bce4-ffbc34cd7d40",
"name": "Markdown",
"type": "n8n-nodes-base.markdown",
"position": [
1100,
120
],
"typeVersion": 1
},
{
"parameters": {
"content": "## Send Email \nConnect your credentials & Easily send emails from a Gmail address. ",
"height": 100,
"width": 360,
"color": 3
},
"id": "c77b69e3-9d75-445e-ba15-8bcb513c0c48",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
1180,
-40
],
"typeVersion": 1
},
{
"parameters": {
"sendTo": "websensepro@gmail.com",
"subject": "=On-Page SEO Audit - {{ $('Landing Page Url').item.json['Landing Page Url'] }}",
"message": "={{ $json.data }}",
"options": {}
},
"id": "50903d5a-9726-4738-b341-4b4303238333",
"name": "Gmail",
"type": "n8n-nodes-base.gmail",
"position": [
1300,
120
],
"webhookId": "2979e4dc-1689-447e-8cd4-eb907b4eedf4",
"typeVersion": 2.1,
"credentials": {
"gmailOAuth2": {
"id": "lFEZiGEaEJNxM34P",
"name": "Gmail account 2"
}
}
},
{
"parameters": {
"modelName": "models/gemini-2.5-pro-exp-03-25",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"typeVersion": 1,
"position": [
160,
120
],
"id": "62725e38-16ed-4253-b442-210c1713c024",
"name": "Google Gemini Chat Model",
"credentials": {
"googlePalmApi": {
"id": "XQbMZq099HNN7XQT",
"name": "Google Gemini(PaLM) Api account"
}
}
},
{
"parameters": {
"modelName": "models/gemini-2.5-pro-exp-03-25",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"typeVersion": 1,
"position": [
240,
540
],
"id": "eff041b2-6243-4ef4-8dd3-71bb2a4a016e",
"name": "Google Gemini Chat Model1",
"credentials": {
"googlePalmApi": {
"id": "XQbMZq099HNN7XQT",
"name": "Google Gemini(PaLM) Api account"
}
}
}
],
"pinData": {},
"connections": {
"Merge": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
}
]
]
},
"Markdown": {
"main": [
[
{
"node": "Gmail",
"type": "main",
"index": 0
}
]
]
},
"Aggregate": {
"main": [
[
{
"node": "Markdown",
"type": "main",
"index": 0
}
]
]
},
"Content Audit": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Scrape Website": {
"main": [
[
{
"node": "Content Audit",
"type": "main",
"index": 0
},
{
"node": "Technical Audit",
"type": "main",
"index": 0
}
]
]
},
"Technical Audit": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"Landing Page Url": {
"main": [
[
{
"node": "Scrape Website",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "Technical Audit",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Google Gemini Chat Model1": {
"ai_languageModel": [
[
{
"node": "Content Audit",
"type": "ai_languageModel",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "926877d9-bf06-4bd7-9e56-de12374be6cf",
"meta": {
"instanceId": "a9517f5ba57d660a6f5624e171e6df9f39b579017c85e1cc9274a03c95ce8901"
},
"id": "HZwfD46zXq3jddK9",
"tags": []
}