Skip to content

sopgeo/SW11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SW11

Agent & Agent

An intelligent case dashboard powered by AI that automates customer support workflows with smart email generation and swipe-to-review suggestions. View, filter, and manage support cases in real-time, quickly accept or decline agent suggestions based on the AI agent's confidence score, and send tone-adapted emails based on case context.

AI Orchestrator Dashboard TypeScript MongoDB Gemini AI

Demo

Live Demo: [Add your deployment link here]

Video Walkthrough: [Add YouTube/Loom link here]

How to run / install

Prerequisites

  • Node.js 18+ and npm/yarn/pnpm
  • MongoDB Atlas account (free tier available)
  • Google AI Studio account for Gemini API key

Installation

  1. Clone the repository
git clone https://github.com/yourusername/ai-orchestrator.git
cd ai-orchestrator
  1. Install dependencies
npm install
# or
yarn install
# or
pnpm install
  1. Set up environment variables

Create a .env.local file in the root directory:

MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/ai-orchestrator?retryWrites=true&w=majority
GEMINI_API_KEY=your_gemini_api_key_here

See Environment Variables for detailed setup.

  1. Run the development server
npm run dev
# or
yarn dev
# or
pnpm dev
  1. Open your browser

Navigate to http://localhost:3000

Environment Variables

Required Variables

Variable Description Where to Get
MONGODB_URI MongoDB connection string MongoDB Atlas → Create Cluster → Connect
GEMINI_API_KEY Google Gemini API key Google AI Studio → Get API Key

MongoDB Setup

  1. Create a free account at MongoDB Atlas
  2. Create a new cluster (free tier M0)
  3. Create a database user (Database Access)
  4. Whitelist your IP or allow access from anywhere (Network Access)
  5. Get connection string: Cluster → Connect → Connect your application
  6. Replace <password> and <dbname> in connection string

Gemini API Setup

  1. Visit Google AI Studio
  2. Sign in with Google account
  3. Click "Get API Key"
  4. Create new API key or use existing
  5. Copy and paste into .env.local

Project Structure

ai-orchestrator/
├── app/
│   ├── api/
│   │   ├── cases/
│   │   │   ├── route.ts          # GET, POST cases
│   │   │   └── [id]/route.ts     # GET, PATCH, DELETE case by ID
│   │   ├── agents/
│   │   │   └── route.ts          # GET agents
│   │   ├── drafts/
│   │   │   ├── route.ts          # GET drafts
│   │   │   └── generate/route.ts # POST generate AI draft
│   │   └── gemini/
│   │       └── analyze/route.ts  # POST analyze case priority
│   ├── layout.tsx                # Root layout
│   ├── page.tsx                  # Main dashboard page
│   └── globals.css               # Global styles
├── lib/
│   ├── mongodb.ts                # MongoDB connection
│   └── gemini.ts                 # Gemini AI utilities
├── models/
│   ├── Case.ts                   # Case TypeScript interface
│   ├── Agent.ts                  # Agent TypeScript interface
│   └── Draft.ts                  # Draft TypeScript interface
├── public/                       # Static assets
├── .env.local                    # Environment variables (not in git)
├── .gitignore
├── package.json
├── tailwind.config.ts
├── tsconfig.json
└── README.md

Team

  • [Gabby] - @github - Frontend Developer
  • [Sophia] - @github - Frontend Developer
  • [Arwa] - @github - Backend Developer
  • [Shuncheng] - @github - Backend Developer

Acknowledgments

  • Google Gemini AI for powering intelligent agent automation
  • MongoDB Atlas for reliable cloud database hosting
  • Next.js for React framework
  • Tailwind CSS for responsive design
  • UI/UX design and initial component development assisted by Claude AI by Anthropic
  • Code editing and development workflow assisted by Cursor

Built with ❤️ for SwampHacks XI 2026

About

This is our app for SwampHacks XI!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages