Skip to content

Anglesvar/AI-Agents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 AI Multi-Agent Research & Content Creation System

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.


🚀 Why This Project Exists

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

✨ Key Highlights

  • 🤖 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

🏗️ System Architecture

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.


🛠️ Tech Stack

  • Python 3.9+
  • OpenAI API
    • Text generation
    • Image generation
  • python-dotenv for secure environment configuration
  • Modular, agent-based design pattern

📂 Project Structure

.
├── 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

🔐 Setup & Installation

1. Clone the Repository

git clone https://github.com/your-username/your-repo-name.git
cd your-repo-name

2. Create a Virtual Environment (Recommended)

python -m venv venv
source venv/bin/activate   # Windows: venv\Scripts\activate

3. Install Dependencies

pip install -r requirements.txt

🔑 Environment Variables

Create a .env file in the project root:

OPENAI_API_KEY=your_api_key_here

⚠️ Never commit API keys to source control.


▶️ Running the Applications

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

💡 Example Use Cases

  • Automated research & article drafting
  • AI-assisted blogging or content pipelines
  • Experimenting with agent-based LLM systems
  • Prototyping AI workflows for startups or internal tools

🔮 Future Enhancements

  • 🧠 Editor / Reviewer Agent
  • ✅ Fact-Checking Agent
  • 📈 SEO Optimization Agent
  • 🗂️ Persistent memory between runs
  • 🌐 Web UI or API interface

📌 What This Project Demonstrates

  • Strong understanding of LLM workflows
  • Practical agent orchestration patterns
  • Clean, readable Python architecture
  • Awareness of production concerns (security, modularity, extensibility)

📄 License

This project is licensed under the MIT License — free to use, modify, and build upon.

About

This repository showcases a Python application that uses OpenAI’s API to generate images from text prompts and orchestrate a multi-agent workflow for research and content creation. A Research Agent gathers and synthesizes web-based information, while a Writer Agent converts the research into professionally formatted written output.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages