博客生成引擎

一个使用OpenAI Agents SDK和MCP服务器的博客文章生成引擎,适用于自动化内容创作和SEO优化。

  • by mustafabutt-dev
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 mustafabutt-dev/autonomous-blog-agent

使用说明

博客代理后端

使用OpenAI代理SDK和MCP服务器的博客帖子创建引擎。

快速开始

1.设置

# Clone the repository
git clone <repo-url>
cd blog-agent-backend

# Run setup script
chmod +x setup.sh
./setup.sh

2.配置

更新 agent_engine/.env:

3.跑步

python3 main.py --topic "Create a Pie Chart" --product "Aspose.Slides" --platform "Java" --brand "aspose.com"  --keyword_source "auto (using SerpApi)" --author "Muhammad Mustafa"   

或

Google关键字规划表

python3 main.py --topic "Convert PPTX to PDF" --product "Aspose.Slides" --platform "Java" --brand "aspose.com"  --keyword_source "manual (using Google Keyword Planner Sheet)" --author "Muhammad Mustafa"

目前支持以下品牌:

  • aspose.com
  • Groupdocs.com
  • conholdate.cloud
  • conholdate.com

项目结构

blog-agent-backend/
├── agent_engine/
│   ├── main.py                 # Main file
│   ├── config.py               # Configuration
│   ├── agent_logic/
│   │   └── orchestrator.py     # Main orchestration layer
│   ├── services/
│   │   └── serpapi_keyword_service.py  # External service to fetch keywords from Google SERP       
│   ├── tools/
│   │   └── mcp_tools.py        # Wrapper functions for MCP tools
│   ├── utils/
│   │   └── helpers.py          # Contains helper functions
│   │   └── prompts.py          # Returns prompts for LLM
│   ├── requirements.txt
│   └── .env
│
├── mcp-servers/
│   ├── file-generator/   
│   │   └── server.py           
│   └── requirements.txt
│   ├── keywords_auto/          # Keyword research tool using SERPAPI
│   │   └── server.py           # MD file generation tools
│   ├── keywords_manual/.       # Keyword research tool using Keyword.csv file
│   │   └── server.py  
│   ├── outline_generator/      # Generates blog post outline
│   │   └── server.py  
│   ├── related-topics/         # Fetch relevant articles from the relevant category  
│   │   └── server.py  
│   ├── title_generator/        # Generates SEO-optimized title for blog post 
│   │   └── server.py  
│   └── requirements.txt
│── data/
│   │   └── aspose.json          # Contains source products data for aspose
│   │   └── groupdocs.json       # Contains source products data for groupdocs
│   │   └── conholdate.json      # Contains source products data for conholdate
│── output/
│   │   └── blogs               # Contains generated MD files of blog post
└── setup.sh                    # Initial setup

部署

使用Docker(即将推出)

docker-compose up