Skip to content

About

Agentic chatbot that builds a team of AI agents for each request with LangGraph and answers by text or voice. FastAPI, React, TypeScript.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GENESIS-AI

Overview

GENESIS-AI is an AI-powered workflow automation platform designed to streamline and enhance productivity by integrating intelligent agents, real-time statistics, and customizable workflows. The project features a Python backend and a modern React frontend, providing a seamless user experience for managing and automating complex tasks.


🧠 What is GenesisAI?

GenesisAI is a next-generation agentic chatbot system. Instead of being a traditional chatbot with fixed capabilities, it's designed to think like a manager:

  • It understands your request
  • Builds a team of AI agents to handle it
  • Coordinates them in real-time
  • Delivers the final answer in a smart, human-like way — via text or voice

🧩 How It Works (Step-by-Step):

1. User Input (Text or Voice)

  • You talk to GenesisAI — either by typing or speaking.

  • If you're using voice, it uses:

    • STT (Speech to Text) to transcribe your voice
    • VAD (Voice Activity Detection) to know when you start/stop talking

2. Core Engine & Intent Detection

  • The Genesis Core Engine processes what you said and figures out your goal.
  • Example: “Check this contract” → it recognizes you need legal analysis.

3. Agent Planner: Task Decomposer

  • This module breaks the goal into subtasks and decides which agents to create.

  • For a legal query, it might spawn:

    • ClauseAnalyzerAgent – reviews legal terms
    • RiskScorerAgent – identifies what's risky
    • SummaryAgent – explains it in plain English

4. Agent Creation & Execution (Using LangGraph/Agno)

  • GenesisAI instantiates these agents in real time — they didn’t exist before the query.

  • It connects them in a graph-like workflow (LangGraph):

    • One agent’s output can be used as another’s input
    • They can work in sequence or parallel
  • Agents are independent, so if one fails, it doesn’t crash the system. You can retry or reroute.


5. Memory & Session Management

  • GenesisAI keeps track of each user’s session using Zep or Redis.

  • That means:

    • It remembers what was said earlier
    • It supports multiple users at the same time
    • It can return to previous questions and build on them

6. Response Synthesis

  • Once all agents finish, GenesisAI collects and merges their output into one final message.

  • If the user is on voice mode:

    • It uses TTS (Text to Speech) to speak the response back

7. User Interface (UI/UX)

  • The frontend shows:

    • Chat messages (like a typical bot)
    • A live Agent Log Panel where you see which agents were created, what they're doing, and when they finish
    • A voice input mic with waveform display
    • Loading animations, retry buttons, and error messages if something fails

🎯 Why It’s Innovative

  • ✅ Zero-to-N agents: You don’t load unnecessary agents; they’re spawned dynamically
  • ✅ Modular and domain-adaptive: Works for legal, finance, health, education, etc.
  • ✅ Voice-first + accessible
  • ✅ Real agent orchestration — not just LLM prompts
  • ✅ Scalable: More users? More agents? No problem.

🌍 Real Example

User says: “Help me write and check a freelance contract”

GenesisAI does:

  1. Spawns 3 agents:

    • DraftingAgent
    • LegalCheckAgent
    • RiskSummaryAgent
  2. Each agent does its job using LLMs and logic

  3. Response is delivered back in one seamless message


Features

  • AI-driven workflow automation
  • Real-time agent status and statistics
  • Session management
  • Modular and extensible backend (Python)
  • Modern, responsive frontend (React + TypeScript)
  • Easy integration and customization

Folder Structure

GENESIS-AI/
├── backend/                # Python backend (core logic, session, workflow, stats)
│   ├── GenesisCore.py
│   ├── sessionManager.py
│   ├── workflow.py
│   ├── stats.json
│   ├── requirements.txt
│   └── .env
├── src/                    # React frontend (components, hooks, services, types)
│   ├── components/
│   ├── hooks/
│   ├── services/
│   ├── types/
│   ├── App.tsx
│   └── main.tsx
├── index.html              # Frontend entry point
├── package.json            # Frontend dependencies
├── README.md               # Project documentation
└── ...

Setup & Installation

Backend (Python)

  1. Navigate to the backend directory:
    cd backend
  2. (Optional) Create and activate a virtual environment:
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies:
    pip install -r requirements.txt
  4. Configure environment variables in .env as needed.
  5. Run the backend server:
    python GenesisCore.py

Frontend (React)

  1. Navigate to the project root:
    cd ..
  2. Install dependencies:
    npm install
  3. Start the development server:
    npm run dev
  4. Open http://localhost:5173 in your browser.

Usage

  • Access the frontend UI to interact with AI agents, manage workflows, and view statistics.
  • Backend endpoints handle workflow logic, session management, and statistics aggregation.
  • Customize workflows and agents by modifying backend Python modules.

Contribution Guidelines

  1. Fork the repository and create a new branch for your feature or bugfix.
  2. Follow code style guidelines for Python and TypeScript.
  3. Submit a pull request with a clear description of your changes.
  4. Ensure all tests pass and code is well-documented.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Agentic chatbot that builds a team of AI agents for each request with LangGraph and answers by text or voice. FastAPI, React, TypeScript.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages