An AI-powered blog content generation system that uses multiple specialized agents to research, outline, write, and humanize blog posts.
- Web research using Tavily API
- Automated content outline generation
- AI-powered blog post writing
- Content humanization
- Markdown file output
- Multi-agent collaboration system
- Python 3.8+
- OpenAI API key
- Tavily API key
- Clone the repository:
git clone https://github.com/yourusername/Blog-writer-agent.git
cd Blog-writer-agent- Create and activate virtual environment:
python -m venv myenv
source myenv/bin/activate # For Unix/MacOS
myenv\Scripts\activate # For Windows- Install dependencies:
pip install python-dotenv openai tavily-python swarm-agent- Create a
.envfile with your API keys:
OPENAI_API_KEY=your-openai-api-key-here
TAVILY_API_KEY=your-tavily-api-key-hereRun the script:
python app.pyThe script will:
- Research your topic using Tavily
- Generate a content outline
- Write a blog post
- Humanize the content
- Save the result to
output.md
Blog-writer-agent/
├── app.py # Main application file
├── .env # API keys and configuration
├── .gitignore # Git ignore rules
├── output.md # Generated blog post
└── README.md # Project documentation
- Web Researcher: Searches and summarizes web content
- Content Outliner: Creates structured content outlines
- Blog Writer: Transforms outlines into blog posts
- Humanizer: Makes content more engaging and conversational
Required environment variables in .env:
OPENAI_API_KEY: Your OpenAI API keyTAVILY_API_KEY: Your Tavily API key
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for the GPT API
- Tavily for the search API
- Swarm for the agent framework