How dj28p/doctor-bot works
Doctor Bot is a Next.js health-chat interface. Users sign in through Auth0, then the home page routes authenticated users to a chat where they can submit text or choose suggested health topics. The sampled chat page only adds user messages to local state; it does not show AI responses or a backend request. The README describes OpenAI-powered advice, but that integration is not visible in the sampled source, so it is shown as unverified.
Main entry points: app/page.js Sign-in page · chat/page.js Chat interface · AuthProvider.js Auth provider · layout.js Root layout
Components 7
App shell
- Root layout
app/layout.js
Sign-in flow
- Auth provider
app/AuthProvider.js - Auth0
- Sign-in page
app/page.js
Health chat
- Chat interface
app/chat/page.js - OpenAI
Other components
- User
Connections 7
- Root layout → Auth provider: wraps children
app/layout.js - Auth provider → Auth0: configures provider
app/AuthProvider.js - User → Sign-in page: signs in
app/page.js - Sign-in page → Auth0: starts login
app/page.js - Sign-in page → Chat interface: routes authenticated users
app/page.js - User → Chat interface: submits health query
app/chat/page.js - Chat interface → OpenAI: AI response integration