How andrezzac/otica-renew-chatbot works
Ótica Renew is a Django institutional site with a browser-based, menu-driven chatbot for visitor pre-attendance. Visitors browse the home, about, products and contact pages, or explore chatbot categories and nested answers served from Django’s SQLite-backed models; visitors seeking a quote are directed to WhatsApp, not an online checkout. The documented chatbot topics include lens types, treatments, materials, field of vision, eye exams and company information. Those content areas are grouped rather than inferred as separate runtime modules; some are documented in the README but not individually verified in sampled source.
Main entry points: chatbot.js Chat interface · urls.py Site and API routes · templates Institutional pages · views.py Chat API
Components 11
Institutional site
- Project routes
config/urls.py - Site and API routes
chatbot/urls.py - Page views
chatbot/views.py - Institutional pages
templates - Site styling
static/css/style.css
Chat experience
- Chat interface
static/js/chatbot.js - Chat API
chatbot/views.py
Chat content and storage
- Content registration
chatbot/management/commands/cadastrar_dados.py - Chat content store
chatbot/models.py
Other components
- Visitor
Connections 12
- Visitor → Project routes: requests pages
README.md - Project routes → Site and API routes: includes routes
config/urls.py - Site and API routes → Page views: dispatches pages
chatbot/urls.py - Page views → Institutional pages: renders
chatbot/views.py - Visitor → Chat interface: uses chat
README.md - Chat interface → Chat API: fetches categories
static/js/chatbot.js - Site and API routes → Chat API: dispatches API
chatbot/urls.py - Chat API → Chat content store: queries
chatbot/views.py - Content registration → Chat content store: creates or updates
chatbot/management/commands/cadastrar_dados.py - Chat interface → WhatsApp: opens contact
static/js/chatbot.js - Institutional pages → Site styling: uses styling
README.md - Institutional pages → Chat interface: integrates chatbot
README.md