A Python-based AI application demonstrating how multiple autonomous agents collaborate to perform research, generate images, and produce high-quality written content using OpenAI’s API.
Many AI demos stop at “call the API, get a response.” This project goes further by modelling how intelligent agents can collaborate, each with a clear responsibility, similar to real-world production AI systems.
- Research Agent — gathers and synthesizes web-based information
- Writer Agent — converts research into structured, professional writing
- Extensible design — additional agents can be added with minimal changes
- 🤖 Multi-Agent Architecture
Clear separation of concerns between independent agents - 🔍 Research Agent
Produces synthesized research instead of raw information dumps - ✍️ Writer Agent
Generates polished, publication-ready content - 🎨 Text-to-Image Generation
Uses OpenAI’s image API to generate visuals from natural language prompts - 🧩 Production-Minded Design
Environment-based configuration and clean project structure
User Prompt
│
▼
Research Agent
(Web research & synthesis)
│
▼
Writer Agent
(Structured, professional writing)
│
▼
Final Output
(Text content + generated images)
Each agent operates independently, making the system easy to reason about, test, and extend.
- Python 3.9+
- OpenAI API
- Text generation
- Image generation
- python-dotenv for secure environment configuration
- Modular, agent-based design pattern
. ├── agents/ │ ├── research_agent.py # Information gathering & synthesis │ └── writer_agent.py # Content generation & formatting ├── main.py # Agent orchestration ├── requirements.txt ├── .env # API keys (not committed) └── README.md
git clone https://github.com/your-username/your-repo-name.git cd your-repo-name
python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
Create a .env file in the project root:
OPENAI_API_KEY=your_api_key_here
python research_and_write_agent.py python image_generation.py
You can:
- Provide a topic or prompt
- Trigger automated research
- Generate professional written content
- Create images from text prompts
- Automated research & article drafting
- AI-assisted blogging or content pipelines
- Experimenting with agent-based LLM systems
- Prototyping AI workflows for startups or internal tools
- 🧠 Editor / Reviewer Agent
- ✅ Fact-Checking Agent
- 📈 SEO Optimization Agent
- 🗂️ Persistent memory between runs
- 🌐 Web UI or API interface
- Strong understanding of LLM workflows
- Practical agent orchestration patterns
- Clean, readable Python architecture
- Awareness of production concerns (security, modularity, extensibility)
This project is licensed under the MIT License — free to use, modify, and build upon.