π Live Demo
Built using LangChain, OpenAI GPT-4, FastAPI, and React, Footprints Bot is an AI-powered assistant that helps parents explore preschool programs, ask questions, and schedule visits β all through natural multi-turn conversation.
- π€ Conversational AI using LangChain Agents + OpenAI GPT
- π Multi-turn reasoning with context tracking
- π§ Intent classification for program, fee, visit, and safety queries
- π Center recommendations via city and locality filtering
- π FAQ routing through a structured knowledge base
- π API key protection via
.envfile - π JSON-based data store (extensible to MongoDB)
footprints-chat/
βββ backend/
β βββ bot.py # Core logic and prompt orchestration
β βββ centers.json # Data for all Footprints centers
β βββ knowledge_base.py # Structured FAQs
β βββ .env # API key config
β βββ test.py # Bot testing script
βββ frontend/
β βββ public/
β βββ src/ # Basic UI (optional)
git clone https://github.com/priyanshusinghal12/Footprints-Bot.git
cd footprints-chat/backendpip install -r requirements.txtCreate a .env file in the backend folder:
OPENAI_API_KEY=your-openai-api-key-herepython bot.pyπ€ Hi! I want to know about daycare programs.
π€ Sure! We offer:
- Pre-School: 9 AM β 12 PM
- Full Day Care: 9 AM β 6:30 PM
- After School: 3:30 PM β 6:30 PM
All programs run MonβFri.
- Frontend: Hosted on Vercel
- Backend API: Hosted on Render
- Optional Docker support for future deployment
Priyanshu Singhal
BSc Mathematics, University of Waterloo
π« psinghal@uwaterloo.ca Β· π LinkedIn