Skip to content

AkashB29/campusbot

Repository files navigation

CampusBot

A rule-based chatbot built for college students. No AI, no API keys, no internet needed — just patterns and responses.

What it covers

  • Academics — essay writing, research tips, exam prep, citations, group projects, focus and motivation
  • Campus life — making friends, managing money, dorm life, time management, mental health
  • Bureaucracy — enrollment, student ID, transcripts, scholarships, visas, deferral
  • Jokes — 37 PG jokes cycling through knock knock, dad jokes, one-liners, and riddles

Getting started

1. Install dependencies

npm install

2. Run the development server

npm run dev

3. Open in browser

http://localhost:3000

Build for production

npm run build
npm start

Tech stack

  • Next.js 14 (App Router)
  • TypeScript
  • Tailwind CSS
  • 100% rule-based — no AI, no external APIs

Project structure

campusbot/
  app/
    page.tsx       ← the entire chatbot (rules + UI)
    layout.tsx     ← root layout
    globals.css    ← base styles
  package.json
  next.config.js
  tsconfig.json
  tailwind.config.js
  postcss.config.js

How the rule engine works

Every message you send is tested against a list of regular expressions. The first match returns the corresponding response. Chip buttons send exact strings that are guaranteed to match a pattern. If nothing matches, a fallback message is returned.

No neural networks. No training. No API calls. Just if-this-then-that at scale.

About

Basic Rule-Based Campus Chatbot – A simple rule-based campus assistant built with Next.js that answers student queries using predefined keywords and fixed responses.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors