An intelligent AI-powered chatbot built using the MERN stack, integrating OpenAIβs API for natural language understanding and Tavily Web Search API for real-time web information retrieval.
The bot maintains chat context using the node-cache package, allowing seamless and memory-efficient multi-turn conversations.
- π§ Generative AI Responses β powered by OpenAI API for human-like replies.
- π Web Search Integration β uses Tavily API to fetch up-to-date web results.
- π¬ Chat Context Memory β managed using NodeCache for personalized and coherent conversations.
- β‘ MERN Stack Architecture β React frontend, Node.js/Express backend, MongoDB database.
- π Environment-based Configuration β secure API key storage via
.envfiles. - π CORS Configured β supports cross-origin requests between frontend and backend.
- π§© Scalable & Extensible β modular backend with controller routes and easy API expansion.
| Layer | Technology |
|---|---|
| Frontend | React + Vite + Tailwind CSS |
| Backend | Node.js + Express.js |
| Database | MongoDB |
| AI/ML APIs | OpenAI API |
| Web Search API | Tavily Web Search |
| Caching | NodeCache |
| Environment Management | dotenv |
| Deployment | Vercel (Frontend & Backend) |