How aspee12/gov-tech-chatbot works
This is a Next.js portal for selecting among five Bhutan government-agency chatbots. The user opens the home page, chooses an agency, and reaches its dedicated chatbot page. The source shows NLCS loading the Flowise embed script and configuring a hosted chatbot; the README and home-page copy describe the portal as Flowise-based, but the other chatbot implementations’ integration details are not shown here.
Main entry points: CommonHome.tsx Chatbot Home · NLCSChatbot.tsx NLCS Chatbot · app/page.tsx Home Route · govtech/page.tsx GovTech Route
Components 17
Portal and Routing
- Chatbot Home
src/components/common/CommonHome.tsx - Home Route
src/app/page.tsx - GovTech Route
src/app/govtech/page.tsx - MoAL Route
src/app/moal/page.tsx - MoH Route
src/app/moh/page.tsx - MoIT Route
src/app/moit/page.tsx - NLCS Route
src/app/nlcs/page.tsx
Agency Experiences
- GovTech Chatbot
src/components/sections/GovTechChatbot.tsx - MoAL Chatbot
src/components/sections/MoALChatbot.tsx - MoH Chatbot
src/components/sections/MOHChatbot.tsx - MoIT Chatbot
src/components/sections/MoITChatbot.tsx - NLCS Chatbot
src/components/sections/NLCSChatbot.tsx
Shared Chatbot Data
- Chatbot Catalog
src/constants/shared.ts - Chatbot Types
src/types/chatbot.ts
Other components
- Portal Visitor
- Flowise Embed CDN
- Hosted Chatbot Service
Connections 15
- Portal Visitor → Home Route: opens
src/app/page.tsx - Home Route → Chatbot Home: renders
src/app/page.tsx - Chatbot Home → Chatbot Catalog: lists choices
src/components/common/CommonHome.tsx - Chatbot Home → GovTech Route: navigates to
src/components/common/CommonHome.tsx - Chatbot Home → MoAL Route: navigates to
src/components/common/CommonHome.tsx - Chatbot Home → MoH Route: navigates to
src/components/common/CommonHome.tsx - Chatbot Home → MoIT Route: navigates to
src/components/common/CommonHome.tsx - Chatbot Home → NLCS Route: navigates to
src/components/common/CommonHome.tsx - GovTech Route → GovTech Chatbot: renders
src/app/govtech/page.tsx - MoAL Route → MoAL Chatbot: renders
src/app/moal/page.tsx - MoH Route → MoH Chatbot: renders
src/app/moh/page.tsx - MoIT Route → MoIT Chatbot: renders
src/app/moit/page.tsx - NLCS Route → NLCS Chatbot: renders
src/app/nlcs/page.tsx - NLCS Chatbot → Flowise Embed CDN: loads script
src/components/sections/NLCSChatbot.tsx - NLCS Chatbot → Hosted Chatbot Service: configures host
src/components/sections/NLCSChatbot.tsx