Competitor Blog Analysis & Idea Generator

Automatically analyze top-ranking competitor blogs from the past week and generate new blog ideas for your website. This AI workflow researches competitor content, formats keyword data into reports, and suggests fresh, SEO-friendly blog topics tailored to your niche.

How the AI Flow works - Competitor Blog Analysis & Idea Generator

How the AI Flow works

Collect Keywords & Website Data

Gathers input keywords and site information needed for research.

Format Keywords & Prepare Report

AI processes and structures the provided keywords into a well-organized markdown report.

Research Competitor Blogs

AI agent searches Google for top competitor blog posts published within the last 7 days, using dynamic date filtering.

Generate Blog Ideas

AI analyzes competitor blog URLs and creates a list of five tailored blog ideas, each with a main keyword and suggested title.

Present Results

Displays the competitor analysis and new blog suggestions in an easy-to-read format.

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.

AI Agent: Competitor Blog Finder

Agent with a prompt to find blog titles from competitor websites uploaded in the past 7 days, using Google search with a dynamic date prefix.

                Role: Professional researcher
Goal: find the blog titles that were uploaded to these websites in the past 7 days and give the URLs in a nice format. WHEN SEARCHING IN GOOGLE, PREFIX "after:[YYYY-MM-DD]" THE DATE SHOULD BE 1 WEEK BEFORE TODAYS DATE. current date is given in the context.



Example of how you should search on google:xa0

"AI agents tutorial after:2025-01-01"
            

Sequential Task: Find Competitor Blogs from Last 7 Days

Task prompt instructing to find blogs uploaded by competitors in the past 7 days using a dynamic Google date prefix.

                BASED ON THE keywords FIND OUT WHAT BLOGS [YOUR WEBSITE] COMPETITORS UPLOADED ONLY IN THE PAST 7 DAYS TO DO THIS USE A DYNAMIC PREFIX WHEN SEARCHING IN GOOGLE, PREFIX "after:[YYYY-MM-DD]" THE DATE SHOULD BE 1 WEEK BEFORE TODAYS DATE AND PRESENT THE BLOG URLs

Example of how you should search on google:xa0

"AI agents tutorial after:2025-01-01"
            

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

Workflow Overview: Competitor Analysis and Blog Idea Generator

This workflow is designed to automate the process of analyzing top-ranking competitor blogs and generating new blog post ideas tailored to your business’s focus keywords. By leveraging AI agents, live search, and automated formatting, the workflow streamlines a sequence that would otherwise require manual research, content analysis, and creative brainstorming.

Step-by-Step Workflow Process

1. User Engagement and Input Collection

  • Welcome and Input Prompt: As soon as a user opens the chat, they are greeted with a message asking them to enter keywords that their business or blog should focus on.
  • User Input Capture: The system collects these keywords via a chat input interface, which serves as the foundation for all subsequent research and ideation.

2. Keyword Formatting and Reporting

  • Prompt Preparation: The entered keywords are injected into a dynamic prompt template that contextualizes them for further processing.
  • AI Formatting Agent: An AI agent, powered by Anthropic’s large language model (e.g., Claude 3.5 Sonnet), receives the prompt and is tasked with formatting the keywords into a well-structured markdown table. This table is intended to provide an organized overview of the keywords and any related metadata.

3. Competitor Blog Discovery (Last 7 Days)

  • Current Date Retrieval: The system uses a date tool to fetch the current date, ensuring searches are always up-to-date.
  • Google Search Integration: Using the provided keywords, the system constructs Google search queries tailored to surface competitor blog posts published within the last 7 days (using the after:[YYYY-MM-DD] search operator).
  • URL Content Extraction: For each search result, the system retrieves content from the resulting URLs to gather data for analysis.

4. AI-Driven Research Agents

  • Professional Research Agent: An AI agent acts as a skilled researcher, equipped with tools for web search, date awareness, and content extraction. Its goal is to:
    • Find recent competitor blog post titles.
    • Collect URLs and format the findings in a user-friendly way.
  • Multi-Agent Collaboration: The workflow is designed so that multiple agents can collaborate and pass data between sequential tasks for more robust automation and coverage.

5. Blog Idea Generation

  • Ideation Agent: Another AI agent uses the collected links and data to generate 5 unique blog post ideas. Each idea includes a main keyword and a suggested title, tailored to differentiate your content from competitors while aligning with your focus.

6. Output Presentation

  • Sequential Task and Crew Management: The workflow employs sequential task management, meaning that agents’ outputs feed directly into the next step in the chain, automating the entire research-to-ideation pipeline.
  • Final Outputs: Results are displayed in chat outputs, including the formatted keyword table, a list of competitor blogs published in the last week, and a curated list of new blog post ideas.

Visual Workflow Structure

StepComponentFunctionality
1Chat Input/Welcome MessageCollects focus keywords from user
2Prompt Template & AI FormatterFormats and presents keywords in markdown table
3Current Date ToolEnsures up-to-date time context for searches
4Google Search & URL RetrieverFinds competitor posts from last 7 days, extracts content
5Research AI AgentIdentifies recent competitor blog titles and URLs
6Ideation AI AgentSuggests 5 blog ideas with main keywords and titles
7Sequential CrewManages stepwise execution and data flow
8Chat OutputPresents all results to the user

Why This Workflow is Useful

  • Scalability: By automating labor-intensive research and ideation, this workflow can handle multiple keyword sets, search iterations, and content analyses without requiring manual intervention.
  • Freshness and Relevance: Ensuring that only the latest competitor blogs (from the past 7 days) are considered keeps your ideation pipeline relevant and competitive.
  • Structured Reporting: Automated formatting and markdown output provide immediate, organized insight for marketing teams or content creators.
  • Reduced Manual Effort: The process eliminates the need to manually comb through search results, extract blog ideas, and format reports, saving hours per research cycle.
  • Creative Jumpstart: By analyzing what’s trending among competitors and instantly generating new ideas, your content team can stay ahead of industry trends and maintain a fresh blog pipeline.

Who Can Benefit

  • Content Marketers: Quickly identify competitive topics and fill content gaps.
  • SEO Specialists: Keep keyword targeting aligned with current industry trends.
  • Bloggers & Small Businesses: Efficiently plan content calendars with minimal research load.

Potential Customizations

  • Modify search timeframes (e.g., last month instead of last week)
  • Adjust the number of blog ideas generated
  • Include additional data points in the markdown report (e.g., estimated traffic, social shares)
  • Integrate with publishing platforms for end-to-end automation

With this workflow, you can consistently generate relevant, data-backed blog ideas based on real-time competitor activity, all with minimal manual effort and maximum automation.

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