Skip to main content

An AI-powered library that orchestrates a team of agents to generate SEO-optimized, easy-to-read, story-based blog posts

Project description

Blog Agent Framework

📖 También disponible en Español

An advanced framework for building AI-powered content generation pipelines. This project uses a multi-agent system, powered by Microsoft Autogen, to autonomously write, critique, and review articles for quality, compliance, and SEO. Create smarter, better blogs—autonomously.

The Blog Agent Framework is a plug-and-play Python library that helps you generate high-quality blog posts using a team of AI agents. Built on top of Microsoft’s powerful Autogen system, this framework mimics a professional content team: a writer, a critic, and multiple expert reviewers work together to craft concise, SEO-optimized, story-driven articles, designed to engage readers and rank well in search engines. Applies best practices in digital marketing to improve the reach, structure, and impact of each post.

Whether you're a solo blogger, content marketer, or developer, you can use this library to automate content creation or integrate it into your own API.


🔧 Features

🧩 Modular Agent Architecture
Includes specialized agents for: - Writer – Crafts story-driven blog posts using simple, clear language
- Content Marketing Reviewer – Improves structure, flow, and engagement
- Clarity & Ethics Reviewer – Ensures content is easy to understand and free from misleading claims
- SEO Reviewer – Optimizes for discoverability on search engines like Google and AI tools

💬 Intelligent Agent Collaboration
Each agent plays a focused role in a structured review loop, and a meta-agent brings everything together into one polished result.

📦 Use As a Library or API
- Use the library directly in your Python projects
- Or build an API on top to serve real-time blog generation for your website or content service

✅ SEO-Friendly & Reader-Focused
Designed to help your content perform well on search engines and connect with real people—especially readers with a basic or general reading level.

📁 Project Structure

The project is structured as a standard Python package, making it easy to install and use.

```
.
├── blog_agent_framework/    # The main library source code
│   ├── agents/              # Contains the logic for individual AI agents
│   ├── utils/               # Utility functions and helpers
│   ├── __init__.py          # Exposes the main generation function
│   └── config.py            # Handles model client configuration
│
├── examples/                # Self-contained examples for users
│   ├── .env.example         # Template for environment variables
│   └── run_example.py       # Main script to demonstrate library usage
│
├── .gitignore               # Specifies which files Git should ignore
├── LICENSE                  # The open-source license for the project
├── pyproject.toml           # The modern configuration file for the package
└── README.md                # This file!

```

🚀 Installation

PyPI version

Install from PyPI:

pip install blog-agent-framework

Requires Python 3.11+

Install the Blog Agent Framework directly from GitHub using pip:

pip install git+https://github.com/edilma/AI-Agent-Orchestrator.git

✍️ Basic Usage

Here's how to quickly get started with the built-in example.

Running the Example

  1. Navigate into the examples directory:

    cd examples
    
  2. Create your own .env file by copying the template.

    # On Windows
    copy .env.example .env
    
    # On macOS or Linux
    cp .env.example .env
    
  3. Add your OpenAi credentials to the new .env file

    OPENAI_API_KEY=your_openai_key_here
    OPENAI_PROJECT_ID=your_project_id_here
    
  4. Run the example script:

    python run_example.py
    

🧠 How It Works

The Blog Agent Framework simulates a collaborative writing and editing process using a team of specialized AI agents. Each agent plays a unique role in refining the blog post.

  1. Writer Agent
    Creates an initial blog post based on a topic prompt. The post is designed to be simple, engaging, and story-driven.

  2. Critic Agent
    Reviews the writer's draft and offers direct, actionable feedback. This agent evaluates story structure, clarity, tone, and flow—and helps polish the final version by incorporating all key reviewer suggestions.

  3. SEO Reviewer
    Ensures the blog includes relevant keywords, strong headings, and other on-page SEO elements to improve visibility on AI and search engines like Google and attracts organic traffic.

  4. Content Marketing Reviewer
    Analyzes structure, engagement, and presentation. Helps make sure the blog is clear, logically organized, and engaging for readers.

  5. Clarity and Ethics Reviewer
    Checks that the writing is easy to understand for a general audience, free of confusing or problematic language, and appropriate for public consumption.

The agents communicate intelligently to revise and refine the blog post until it meets quality standards for readability, SEO, and flow.

📜 License

This project is licensed under the MIT License.
You are free to use, modify, and distribute this software for personal or commercial use, with attribution.

✨ Author

Created with 💻 by Edilma Riano
Helping businesses and creators use AI to work smarter and scale faster.

🐙 Follow me on GitHub

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blog_agent_framework-1.0.1.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blog_agent_framework-1.0.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file blog_agent_framework-1.0.1.tar.gz.

File metadata

  • Download URL: blog_agent_framework-1.0.1.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for blog_agent_framework-1.0.1.tar.gz
Algorithm Hash digest
SHA256 bb61e3920729ab89a0830df893b94a3f2ed940257db763dc09f4d7b3ecfaea0a
MD5 89aeb5f1c200920935bb367fdb27ca8a
BLAKE2b-256 8fb71c24d2c7c430805561b7fe1274dcaa73530e12aa5edf94cbfe1d7f0e3a72

See more details on using hashes here.

File details

Details for the file blog_agent_framework-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for blog_agent_framework-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f86dfec7cfbb45a0170fa838d6b40302c76735bd97735a2e1d6445a4c221c021
MD5 3c33bb99e1b77024171fd9ee98a41074
BLAKE2b-256 7bcb4253cbcede2cb81d94cfa7a7613190a4de522dc52fdfeac94211fc1b1e6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page