How sahbimlesh007/ai-powered-website-with-q-a-insurebot works
Devansh Insurance is an insurance information website with a React frontend and FastAPI Q&A backend. Visitors browse company and insurance-product information, contact details, and a demo login; they can also ask questions in the floating chatbot. Chat questions go to the backend, which adds company context and calls Groq; if that request fails, the frontend answers from local company data. The README documents the backend flow; the backend implementation excerpt was not included, so its internal details are limited to that evidence.
Main entry points: App.jsx App shell and routes · companyData.js Company and product data · Chatbot.jsx Chat UI and fallback · Home.jsx Home page
Components 16
Website experience
- App shell and routes
chatbot/src/App.jsx - Home page
chatbot/src/pages/Home.jsx - About page
chatbot/src/pages/About.jsx - Services page
chatbot/src/pages/Services.jsx - Contact page
chatbot/src/pages/Contact.jsx - Demo login
chatbot/src/pages/Login.jsx - Navigation
chatbot/src/components/Navbar.jsx - Site footer
chatbot/src/components/Footer.jsx - Company metric card
chatbot/src/components/CompanyCard.jsx
Insurance content
- Company and product data
chatbot/src/data/companyData.js
Chat service
- Floating chat control
chatbot/src/components/ChatWidget.jsx - Chat UI and fallback
chatbot/src/components/Chatbot.jsx - Chat API and prompt
backend/main.py
Other components
- Visitor
- Groq API
- Google Maps
Connections 22
- Visitor → App shell and routes: browses
README.md - App shell and routes → Home page: routes to
chatbot/src/App.jsx - App shell and routes → About page: routes to
chatbot/src/App.jsx - App shell and routes → Services page: routes to
chatbot/src/App.jsx - App shell and routes → Contact page: routes to
chatbot/src/App.jsx - App shell and routes → Demo login: routes to
chatbot/src/App.jsx - App shell and routes → Navigation: renders
chatbot/src/App.jsx - App shell and routes → Site footer: renders
chatbot/src/App.jsx - App shell and routes → Floating chat control: renders
chatbot/src/App.jsx - Home page → Company and product data: reads
chatbot/src/pages/Home.jsx - Home page → Company metric card: renders
chatbot/src/pages/Home.jsx - About page → Company and product data: reads
chatbot/src/pages/About.jsx - Services page → Company and product data: reads
chatbot/src/pages/Services.jsx - Contact page → Company and product data: reads
chatbot/src/pages/Contact.jsx - Contact page → Google Maps: embeds location
chatbot/src/pages/Contact.jsx - Site footer → Company and product data: reads
chatbot/src/components/Footer.jsx - Floating chat control → Chat UI and fallback: renders
chatbot/src/components/ChatWidget.jsx - Chat UI and fallback → Company and product data: reads
chatbot/src/components/Chatbot.jsx - Visitor → Chat UI and fallback: asks question
README.md - Chat UI and fallback → Chat API and prompt: posts chat
README.md - Chat API and prompt → Groq API: requests answer
README.md - Chat API and prompt → Chat UI and fallback: returns reply
README.md