Skip to content

ddihora1604/Agenix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

39 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Agenix - An AI Agent Marketplace

Prototype Demo: https://youtu.be/sq5AJ2MbMgY?si=hHuUwBSU3L0Kaa_1

πŸš€ Project Overview

Agenix is an advanced AI-powered marketplace platform that integrates multiple specialized AI agents to provide comprehensive marketing solutions. The platform combines a modern React frontend with a powerful Python backend, enabling users to create, configure, and execute complex marketing workflows seamlessly.

🎯 Key Features

Workflow Management

  • Drag-and-Drop Interface: Intuitive workflow builder with visual drag-and-drop functionality
  • Sequential Processing: Agents execute in user-defined order with real-time progress tracking
  • Dynamic Forms: Automatically generated input forms based on selected agents
  • Real-time Results: Instant visualization of agent outputs with markdown support
  • Multi-Agent Support: Integration with various specialized AI agents

AI-Powered Agents

  1. Email Generator Agent

    • Automated email content generation
    • Personalized email campaigns
    • A/B testing support
  2. Blog Writer Agent

    • AI-powered blog content generation
    • SEO-optimized blog posts
    • Multi-section structured content
  3. Case Study Agent

    • Automated case study generation
    • Data-driven insights
    • Visual report generation
  4. Document Summarizer Agent

    • Intelligent document summarization
    • Key point extraction
    • Content analysis
  5. Web Crawler Agent

    • Automated web data collection
    • Content scraping
    • Data analysis
  6. YouTube Summarizer Agent

    • YouTube video analysis
    • Content summarization
    • Trend identification
  7. Image Generator Agent

    • AI-powered image generation using Pollinations AI (free)
    • Custom visual content creation
    • Multiple model options (flux, flux-realism, flux-anime, flux-3d, turbo)
    • No API key required
  8. Job Agent

    • Automated job posting analysis
    • Candidate matching
    • Market trend analysis

πŸ› οΈ Installation Guide

Prerequisites

  • Node.js (v18 or higher)
  • Python 3.9+
  • npm (Node Package Manager)
  • Git

Installation Steps

1. Clone and Setup Main Project

git clone https://github.com/ddihora1604/Agenix.git
cd Agenix
npm install

2. Create Individual Virtual Environments for Each Agent

Each agent requires its own virtual environment to avoid dependency conflicts:

Email Generator Agent:

cd Email_Generator_Agent
python -m venv venv
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
pip install -r requirements.txt
deactivate
cd ..

Blog Writer Agent:

cd blog
python -m venv venv
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
pip install -r requirements.txt
deactivate
cd ..

Case Study Agent:

cd CaseStudyAgent
python -m venv venv
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
pip install -r requirements.txt
deactivate
cd ..

Web Crawler Agent:

cd webcrawler
python -m venv venv
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
pip install -r requirements.txt
deactivate
cd ..

Job Agent:

cd JobAgent
python -m venv venv
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
pip install -r requirements.txt
deactivate
cd ..

Document Summarizer Agent:

cd DocSummarizer
python -m venv venv
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
pip install -r requirements.txt
deactivate
cd ..

YouTube Summarizer Agent:

cd YTSummarizer
python -m venv venv
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
pip install -r requirements.txt
deactivate
cd ..

Image Generator Agent:

cd Fluxai/Fluxai
python -m venv venv
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
pip install -r requirements.txt
deactivate
cd ../..

3. Configure API Keys

Create a single .env file in the root directory with all required API keys:

Root .env file (Agenix/.env):

# Google API Key (required for most agents)
GOOGLE_API_KEY=your_google_api_key_here

# Groq API Key (required for Blog Writer Agent)
GROQ_API_KEY=your_groq_api_key_here

# FAL API Key (optional - for legacy Image Generator compatibility)
FAL_API_KEY=your_fal_api_key_here

# HuggingFace Token (optional - for advanced NLP features)
HUGGINGFACE_API_TOKEN=your_huggingface_token_here

Note: The Image Generator Agent now uses Pollinations AI by default, which is completely free and requires no API key. The FAL API configuration is maintained for backward compatibility but is no longer used due to payment requirements.

4. Start the Development Server

npm run dev

The application will be available at http://localhost:3000

Agent-Specific Requirements

Agent Key Dependencies LangChain Version
Email Generator langchain==0.1.14, langchain-google-genai==0.0.11 0.1.14 (Legacy)
Blog Writer langchain>=0.3.0, langchain-groq 0.3.x (Modern)
Case Study langchain>=0.3.0, langchain-google-genai 0.3.x (Modern)
Web Crawler langchain>=0.3.0, beautifulsoup4, faiss-cpu 0.3.x (Modern)
Job Agent langchain>=0.3.0, PyPDF2 0.3.x (Modern)
Document Summarizer langchain>=0.3.0, PyPDF2, python-dotenv 0.3.x (Modern)
YouTube Summarizer langchain>=0.3.0, youtube-transcript-api 0.3.x (Modern)
Image Generator requests, fal-client, python-dotenv N/A (Uses Pollinations AI - Free)

πŸ“ Project Structure

Agenix/
β”œβ”€β”€ .env                     # Centralized environment configuration (all API keys)
β”œβ”€β”€ .eslintrc.json          # ESLint configuration
β”œβ”€β”€ .git/                    # Git repository files
β”œβ”€β”€ .gitignore              # Git ignore rules (includes all .env files)
β”œβ”€β”€ .next/                   # Next.js build output
β”œβ”€β”€ CaseStudyAgent/         # Case study generation agent
β”‚   β”œβ”€β”€ venv/              # Isolated Python virtual environment
β”‚   β”œβ”€β”€ requirements.txt   # Agent-specific Python dependencies
β”‚   └── CaseStudyAgent/    # Agent source code
β”‚       └── casestudy.py   # Main case study script
β”œβ”€β”€ DocSummarizer/          # Document summarization agent
β”‚   β”œβ”€β”€ venv/              # Isolated Python virtual environment
β”‚   β”œβ”€β”€ requirements.txt   # Agent-specific Python dependencies
β”‚   └── DocSummarizer/     # Agent source code
β”‚       └── pdf_summarizer.py # Main PDF summarizer script
β”œβ”€β”€ Email_Generator_Agent/  # Email generation agent
β”‚   β”œβ”€β”€ venv/              # Isolated Python virtual environment
β”‚   β”œβ”€β”€ requirements.txt   # Agent-specific Python dependencies
β”‚   └── email_generator.py # Main email generation script
β”œβ”€β”€ Fluxai/                 # AI image generation agent
β”‚   └── Fluxai/            # Agent source code
β”‚       β”œβ”€β”€ venv/              # Isolated Python virtual environment
β”‚       β”œβ”€β”€ flux_ai.py     # Original FAL API implementation (deprecated)
β”‚       β”œβ”€β”€ pollinations.py # New Pollinations AI implementation
β”‚       └── requirements.txt # Agent-specific Python dependencies           
β”œβ”€β”€ JobAgent/               # Job analysis agent
β”‚   β”œβ”€β”€ venv/              # Isolated Python virtual environment
β”‚   β”œβ”€β”€ requirements.txt   # Agent-specific Python dependencies
β”‚   β”œβ”€β”€ JobAgent.py        # Main job agent script
β”‚   └── JobAgent_lite.py   # Lightweight version
β”œβ”€β”€ YTSummarizer/          # YouTube video analysis agent
β”‚   β”œβ”€β”€ venv/              # Isolated Python virtual environment
β”‚   β”œβ”€β”€ requirements.txt   # Agent-specific Python dependencies
β”‚   └── YTSummarizer/      # Agent source code
β”‚       └── ytsummarizer.py # Main YouTube summarizer script
β”œβ”€β”€ blog/                   # Blog generation agent
β”‚   β”œβ”€β”€ venv/              # Isolated Python virtual environment
β”‚   β”œβ”€β”€ requirements.txt   # Agent-specific Python dependencies
β”‚   β”œβ”€β”€ blog.py            # Main blog generation script
β”‚   β”œβ”€β”€ check_api_key.py   # API key validation script
β”‚   └── generated_blogs/   # Generated blog outputs
β”œβ”€β”€ webcrawler/            # Web scraping agent
β”‚   β”œβ”€β”€ venv/              # Isolated Python virtual environment
β”‚   β”œβ”€β”€ requirements.txt   # Agent-specific Python dependencies
β”‚   └── webcrawler/        # Agent source code
β”‚       └── website_agent.py # Main web crawler script
β”œβ”€β”€ public/                # Static assets
β”‚   β”œβ”€β”€ images/           # Project images
β”‚   β”œβ”€β”€ fonts/            # Web fonts
β”‚   └── icons/            # UI icons
β”œβ”€β”€ scripts/               # Utility scripts
β”‚   └── create-sample-markdown.js  # Sample markdown generator
β”œβ”€β”€ src/                   # Frontend source code (Next.js)
β”‚   β”œβ”€β”€ app/              # Next.js app directory
β”‚   β”‚   β”œβ”€β”€ api/          # API routes for each agent
β”‚   β”‚   β”‚   β”œβ”€β”€ blog-generator/route.ts      # Blog agent API
β”‚   β”‚   β”‚   β”œβ”€β”€ case-study-agent/route.ts    # Case study API
β”‚   β”‚   β”‚   β”œβ”€β”€ doc-summarizer/route.ts      # Document summarizer API
β”‚   β”‚   β”‚   β”œβ”€β”€ email-generator/route.ts     # Email agent API
β”‚   β”‚   β”‚   β”œβ”€β”€ image-generator/route.ts     # Image generator API (Pollinations)
β”‚   β”‚   β”‚   β”œβ”€β”€ job-agent/route.ts           # Job agent API
β”‚   β”‚   β”‚   β”œβ”€β”€ web-crawler/route.ts         # Web crawler API
β”‚   β”‚   β”‚   β”œβ”€β”€ youtube-summarizer/route.ts  # YouTube summarizer API
β”‚   β”‚   β”‚   └── check-api-key/route.ts       # Centralized API key validation
β”‚   β”‚   β”œβ”€β”€ agents/       # Agent-specific frontend pages
β”‚   β”‚   β”œβ”€β”€ dashboard/    # Main dashboard
β”‚   β”‚   └── workflows/    # Workflow management
β”‚   β”œβ”€β”€ components/       # React components
β”‚   β”œβ”€β”€ hooks/           # Custom React hooks
β”‚   β”œβ”€β”€ lib/             # Utility libraries
β”‚   β”œβ”€β”€ store/           # State management (Zustand)
β”‚   └── styles/          # CSS/SCSS files
β”œβ”€β”€ eslint.config.js     # ESLint configuration
β”œβ”€β”€ next-env.d.ts       # Next.js TypeScript configuration
β”œβ”€β”€ next.config.js      # Next.js configuration
β”œβ”€β”€ package-lock.json   # Node package dependencies
β”œβ”€β”€ package.json        # Frontend dependencies
β”œβ”€β”€ postcss.config.js   # PostCSS configuration
β”œβ”€β”€ tailwind.config.js  # Tailwind CSS configuration
β”œβ”€β”€ tsconfig.json       # TypeScript configuration
└── README.md          # Project documentation

πŸ› οΈ Technical Stack

Frontend

  • Framework: Next.js 14 with App Directory
  • Styling: Tailwind CSS
  • State Management: Zustand
  • UI Components: Custom components with Tailwind + Lucide Icons
  • Form Handling: React Hook Form
  • Animations: Framer Motion
  • Linting: ESLint
  • Type Checking: TypeScript

Backend Architecture

  • API Layer: Next.js API Routes (TypeScript)
  • Agent Execution: Individual Python virtual environments
  • Process Management: Node.js spawn for Python execution
  • Environment Isolation: Separate venv for each agent to handle dependency conflicts

AI Agents & Dependencies

  • Language Models:
    • Google Gemini (via LangChain Google GenAI)
    • Groq (via LangChain Groq)
  • LangChain Versions:
    • Email Generator: LangChain 0.1.14 (legacy compatibility)
    • All other agents: LangChain 0.3.x (modern)
  • Document Processing: PyPDF2, BeautifulSoup4
  • Vector Storage: FAISS (for web crawler)
  • Data Processing: Pandas, Rich (for CLI output)

πŸ§ͺUsing Individual Agents

  1. Email Generator

    • Navigate to /agents/email-generator
    • Enter email topic and context
    • Click "Generate Email" - the system automatically:
      • Activates the Email Generator's Python venv
      • Checks for existing dependencies (LangChain 0.1.14)
      • Executes the email generation script
      • Returns formatted email content
  2. Blog Writer

    • Navigate to /agents/blog-writer
    • Enter blog topic
    • Click "Generate Blog" - the system automatically:
      • Activates the Blog Writer's Python venv
      • Uses modern LangChain 0.3.x with Groq API
      • Generates structured blog post with multiple sections
  3. Case Study Agent

    • Navigate to /agents/case-study-agent
    • Enter case study topic and optional context URL
    • Click "Generate Case Study" - creates comprehensive case studies
  4. Web Crawler

    • Navigate to /agents/web-crawler
    • Enter website URL and analysis question
    • The crawler analyzes content and provides insights
  5. Job Agent

    • Navigate to /agents/job-agent
    • Upload job descriptions or enter job criteria
    • Get automated job analysis and recommendations
  6. Document Summarizer Agent

    • Navigate to /agents/doc-summarizer
    • Upload PDF documents or text files
    • Click "Summarize" - the system automatically:
      • Activates the Document Summarizer's Python venv
      • Extracts and processes document content
      • Generates key points and comprehensive summaries
  7. YouTube Summarizer Agent

    • Navigate to /agents/youtube-summarizer
    • Enter YouTube video URL
    • Click "Summarize Video" - the system automatically:
      • Activates the YouTube Summarizer's Python venv
      • Extracts video transcript
      • Generates video summary and key insights
  8. Image Generator Agent

    • Navigate to /agents/image-generator
    • Enter image description prompt
    • Select style preferences (optional)
    • Click "Generate Image" - the system automatically:
      • Activates the Image Generator's Python venv
      • Uses Pollinations AI for free image generation
      • Returns high-quality generated images
    • Note: Previously used FAL API, now switched to Pollinations AI due to FAL's payment requirements

About

Developed an AI marketplace that integrates various agents, including modular, independent agents like Professional Email Writer, Document Summarizer, YouTube Summarizer, Web Crawler, Image Generator, and Blog Writer along with a Job Agent, Case Study Agent and a Deep Research Agent, which can be combined with other agents in custom workflows.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors