Top Ranking Content Generator

Generate well-structured web page content based on the analysis of top-ranking Google pages for any keyword. This flow automates keyword research, extracts competitive content, and crafts new SEO-optimized copy designed to rank highly in search results.

How the AI Flow works - Top Ranking Content Generator

How the AI Flow works

Receive Keyword Input

Collect a keyword from the user, either by direct input or by selecting from suggested options.

Expand Keyword Queries

Generate alternative variations of the input keyword to capture a wider search intent.

Analyze Top Google Results

Search Google for the keyword variations and extract content from the top-ranking pages.

Create SEO-Optimized Content

Use the extracted competitor content to generate a new, well-structured web page draft tailored to rank highly.

Display Generated Content

Present the final SEO-optimized content to the user for review or further use.

Prompts used in this flow

Below is a complete list of all prompts used in this flow to achieve its functionality. Prompts are the instructions given to the AI model to generate responses or perform actions. They guide the AI in understanding user intent and generating relevant outputs.

Prompt for top pages content

Prompt template instructing an LLM to generate a well-structured web page based on content from the top 10 Google-ranking pages for a given keyword, emphasizing...

                You are professional copywriter writing web page about Keywords:
{input} 

Create content of web page based on the other pages ranking in top 10 on Google.
Your goal is to create well structured web page with good EEAT structure which will rank in top 10 on Google.
Focus on detailed information. Don't use phrases like "In todays fast changing world...", "In today's complex...", "is a crucial step", "plays significant role", "fast-paced...", "pivotal role", "In the ever-evolving landscape of" or "In the realm of ...", always cut to the point without useless conclusions or intros.

--- TOP PAGES
 {context} 
--- END of TOP PAGES

New web page:
This is a final line of content.

            

Components used in this flow

Below is a complete list of all components used in this flow to achieve its functionality. Components are the building blocks of every AI Flow. They allow you to create complex interactions and automate tasks by connecting various functionalities. Each component serves a specific purpose, such as handling user input, processing data, or integrating with external services.

Flow description

Purpose and benefits

Top Pages Content Generator – Human Readable Workflow Description

Overview

The “Top Pages Content Generator” workflow is designed to automate the creation of high-quality web page content based on the best-performing (top 10) Google search results for any target keyword. Its goal is to help users quickly generate well-structured, search engine optimized (SEO) content that matches or exceeds the quality and relevance of competing pages, making it an invaluable tool for content marketers, SEO professionals, and agencies aiming to scale web content production.

How the Workflow Operates

1. User Interaction & Input

  • Chat Interface & Welcome Message:
    The workflow greets users with a friendly welcome message and instructions, inviting them to enter a keyword for which they want to generate content (e.g., “affiliate software”).
  • Keyword Entry Options:
    Users can type in a custom keyword or select from pre-defined example buttons such as “Affiliate software”, “AI Tools”, or “Electric cars” for quick testing.

2. Query Expansion

  • Semantic Query Generation:
    Once the user submits a keyword, a Query Expansion module paraphrases or expands the input, generating multiple alternative but semantically similar queries. This step increases the breadth of the subsequent search, ensuring that results are comprehensive and relevant.

3. Google Search & Data Gathering

  • Automated Google Search:
    The workflow uses the expanded queries to perform a live Google search, retrieving up to 8 URLs that rank highly for the keyword.
  • Content Extraction:
    The system fetches and extracts the content from these URLs, collecting core information and structures from the best-performing pages.

4. Prompt Construction

  • Prompt Template Assembly:
    The extracted content is injected into a carefully crafted prompt template. The template instructs an AI copywriter to:
    • Focus on the provided keyword.
    • Use details from the top-ranking pages.
    • Avoid generic intros or conclusions and unnecessary filler phrases.
    • Maximize EEAT (Experience, Expertise, Authoritativeness, Trustworthiness) structure.
    • Deliver concise, information-rich, and SEO-optimized copy.

5. Content Generation

  • AI Content Generation:
    A state-of-the-art language model (LLM) is prompted with the above context and template, generating a fresh, unique web page draft that mirrors the strengths of the current top-ranking pages—without copying them.
  • Content Output:
    The generated content is then displayed back to the user in the chat interface, ready for review, editing, or direct publication.

Workflow Structure (Simplified Table)

StepComponentPurpose
User InputChat/Input WidgetsGet or select keyword
Query ExpansionQuery Expansion ModuleGenerate semantic variants of input
SearchGoogle SearchFind top-ranking pages for expanded queries
Content FetchURL RetrieverExtract relevant web content from URLs
PromptingPrompt TemplateCraft LLM-ready prompt using keyword & top content
GenerationAI GeneratorProduce new, optimized web page content
OutputChat OutputPresent result to user

Why This Workflow is Useful

  • Scalability:
    Enables rapid generation of high-quality, SEO-focused web content for any keyword, significantly reducing manual research and writing time.
  • Consistency:
    Ensures every generated page is structured to match or outperform current top search results, leveraging proven content patterns.
  • Automation:
    By automating keyword research, competitive analysis, and content drafting, teams can focus on higher-level strategy and editing.
  • Flexibility:
    Custom keywords and semantic expansion allow the tool to adapt to virtually any niche or topic.
  • SEO Best Practices:
    The prompt enforces strict guidelines to avoid fluff and maximize factual, actionable, and engaging copy—boosting Google rankings and user value.

Example Use Cases

  • Content Marketing Agencies: Produce dozens or hundreds of SEO-optimized pages for clients efficiently.
  • Niche Site Owners: Scale content production across multiple topics or sites.
  • In-House SEO Teams: Rapidly update or expand existing site sections to compete for new keywords.

Summary

The “Top Pages Content Generator” workflow provides a streamlined, intelligent solution for generating web content that rivals the best in any industry or niche. By combining live data gathering, semantic expansion, and advanced AI copywriting, it empowers users to automate and scale content creation with confidence and quality.

Let us build your own AI Team

We help companies like yours to develop smart chatbots, MCP Servers, AI tools or other types of AI automation to replace human in repetitive tasks in your organization.

Learn more