Talk to the minds behind Scaler — AI-powered conversations with Anshuman Singh, Abhimanyu Saxena, and Kshitij Mishra.
Live Demo: https://YOUR_DEPLOYED_URL_HERE.vercel.app
(Replace with your live Vercel/Netlify URL after deployment)
| Persona Switcher | Chat in Action |
|---|---|
- 3 Distinct Personas — Anshuman Singh, Abhimanyu Saxena, Kshitij Mishra
- Well-Researched System Prompts — with few-shot examples, Chain-of-Thought instructions, and strict constraints
- Persona Switcher — Switching personas instantly resets the conversation and changes the entire UI theme
- Suggestion Chips — 6 quick-start questions per persona to get conversations going
- Typing Indicator — Animated dots while the AI processes your message
- Conversation History — Multi-turn memory within a session
- Error Handling — Friendly error messages for invalid keys, quota limits, network issues
- Mobile Responsive — Works seamlessly on phones and desktops
- API Key Security — Key stored only in browser
localStorage, never committed to code
| Layer | Technology |
|---|---|
| Frontend | HTML5, Vanilla CSS, Vanilla JavaScript |
| AI API | Groq API — Llama 3.3 70B (llama-3.3-70b-versatile) |
| Deployment | Vercel / Netlify (static site) |
No build step required — this is a pure static site.
- A modern browser (Chrome, Firefox, Safari, Edge)
- A Groq API key (free tier available — no credit card needed)
# 1. Clone the repository
git clone https://github.com/YOUR_USERNAME/scaler-chatbot.git
cd scaler-chatbot
# 2. Open directly in browser (no build step needed)
# On macOS:
open index.html
# On Windows:
start index.html
# Or use VS Code Live Server extension- Open the app in your browser
- In the sidebar footer, enter your Groq API key
- Click Save — the key is stored in
localStorageonly (never sent anywhere except Groq's API)
Get a free Groq key: Go to console.groq.com/keys, sign up, and create an API key. The free tier is generous with fast inference.
# Install Vercel CLI
npm i -g vercel
# Deploy from project root
vercel
# Follow prompts — it's a static site, so no build settings neededOr drag-and-drop the project folder at vercel.com/new.
scaler-chatbot/
├── index.html # App shell — structure and layout
├── style.css # All styles — dark theme, personas, responsive
├── prompts.js # System prompts + persona metadata + chips
├── app.js # Application logic — API calls, state, UI
├── .env.example # Environment variable reference
├── README.md # This file
├── prompts.md # Annotated system prompts document
└── reflection.md # Project reflection (300–500 words)
- ✅ No API keys are hardcoded anywhere in the source code
- ✅
.env.examplecontains only placeholder values - ✅ API key is stored in browser
localStorage— never committed to git - ✅
.gitignoreexcludes any.envfiles
- prompts.md — All three system prompts with inline annotations explaining each design decision
- reflection.md — Project reflection on what worked, GIGO lessons, and future improvements
Prompt Engineering Assignment — Scaler Academy
Course: Prompt Engineering | Instructor: Scaler Team