Analyze website page gaps with GPT-4.1-mini, Perplexity, and Google Docs
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (7)
- n8n Form Trigger
n8n-nodes-base.formTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Perplexity Tool
n8n-nodes-base.perplexityTool - Google Docs
n8n-nodes-base.googleDocs
What it does
Description An AI-powered workflow that analyzes any website to identify missing pages that would improve user experience and business performance. Submit a URL, and the system detects existing pages, researches competitors using Perplexity, and generates a professional gap analysis report with prioritized recommendations—saved directly to Google Docs. --- What this workflow does This automation delivers a complete website page gap analysis: - Smart page detection: Automatically scans website HTML and identifies 15 common page types (About, Contact, Services, Blog, Portfolio, Pricing, FAQ, Testimonials, Team, Careers, Privacy, Terms, etc.) - Business type classification: Determines if the site is ecommerce, portfolio/agency, blog, SaaS, or service-based to tailor recommendations - Competitor research: Uses Perplexity to research 5-7 top competitors in the same industry and identify their page structures - AI gap analysis: GPT-4.1-mini with web search compares the website against industry standards and competitor best practices - Prioritized recommendations: Generates High/Medium/Low priority suggestions with business value explanations and actionable content ideas - Google Docs report: Saves a professional gap analysis report ready to share with clients or stakeholders --- Setup requirements Tools you'll need: - Active n8n instance (self-hosted or n8n Cloud) - Google Docs with OAuth access - OpenAI API key (GPT-4.1-mini access with web search) - Perplexity API key (for competitor research) Estimated setup time: 15–20 minutes --- Step-by-step setup 1. Connect Google Docs - In n8n: Credentials → Add credential → Google Docs OAuth2 API - Complete OAuth authentication - Create a new Google Doc for storing reports (or use an existing one) - Open "Save Report to Google Docs" node - Paste the Google Doc URL in the documentURL field 2. Add OpenAI API credentials - Get API key: https://platform.openai.com/api-keys - In n8n: Credentials → Add credential → OpenAI API - Paste your API key - Open "OpenAI GPT-4.1 Mini with Web Search" node - Select your OpenAI credential - Ensure model is set to gpt-4.1-mini - Verify Web Search is enabled in the built-in tools section 3. Add Perplexity API credentials - Get API key: https://www.perplexity.ai/settings/api - In n8n: Credentials → Add credential → Perplexity API - Paste your API key - Open "Perplexity Competitor Research Tool" node - Select your Perplexity credential 4. Share the form URL - Open "Submit Website URL for Analysis" node - Copy the Form URL from the node settings - Share this URL with anyone who needs to run website audits - The form accepts a single field: Website URL 5. Test the workflow - Open the Form URL in your browser - Enter a test website: https://example.com - Submit the form - Wait 30-60 seconds for the analysis to complete - Check your Google Docs—the gap analysis report should appear - Verify that: - Existing pages are correctly detected - Business type is identified - Competitor research is included - Recommendations are prioritized and actionable 6. Activate the workflow - Toggle the workflow to Active at the top - The form will now accept submissions 24/7 - Each submission generates a new report appended to your Google Doc --- How it works 1. URL submission via form User opens the form link and submits a website URL they want to analyze. The form triggers the workflow immediately. 2. HTML fetch and extraction The workflow sends an HTTP request to the submitted URL and retrieves the complete HTML source code of the website's homepage. 3. Automated page detection A code node analyzes the HTML to detect 15 common page types: - Navigation pages: Home, About, Contact, Services, Products - Content pages: Blog, Portfolio, Pricing, FAQ - Social proof pages: Testimonials, Team, Careers - Legal pages: Privacy Policy, Terms of Service The detection works by: - Scanning all internal links in the HTML - Matching URL patterns (e.g., /about, /contact-us, /services) - Searching fo