Closed Source

Campa AI

Next.js React TypeScript OpenAI API Chakra UI Tailwind CSS

Campa AI — University AI Assistant

A focused AI assistant for universities, built with Next.js, React, and the OpenAI Assistants API. Campa AI helps students and staff get instant, accurate answers directly from uploaded university documentation, policies, handbooks, and syllabi.

✨ Features

  • Document-Grounded Q&A: Utilizes OpenAI’s File Search tool to answer questions based strictly on university documents.
  • Real-Time Streaming: Instant streaming responses for a natural chat experience.
  • Modern UI: Clean, responsive, dark/light mode supported interface built with Chakra UI and Tailwind CSS.
  • Full Type Safety: Developed entirely in TypeScript.

🧩 Tech Stack

  • Frontend: React 19, Next.js 15 (App Router), Chakra UI, CSS Modules
  • AI: OpenAI Assistants API (gpt-4o / gpt-4-turbo)
  • Language: TypeScript

🛠️ Run Locally

# Clone the repository
git clone [https://github.com/abduelmorsi/campa-ai.git](https://github.com/abduelmorsi/campa-ai.git)
cd campa-ai

# Install dependencies
npm install

# Setup environment variables
cp .env.example .env.local
# Add your OPENAI_API_KEY and OPENAI_ASSISTANT_ID to .env.local

# Start the development server
npm run dev

⚙️ OpenAI Setup

To enable document retrieval, create an Assistant on the OpenAI platform, enable the “File Search” tool, upload your university PDFs/documents, and link the Assistant ID in your environment variables.

📄 License

MIT License. Copyright 2025 Campa AI.