Documentation Index
Fetch the complete documentation index at: https://docs-chat.die-coaching-akademie.de/llms.txt
Use this file to discover all available pages before exploring further.
Module reference
| Path | Responsibility |
|---|---|
app.py | FastAPI app, public routes, admin routes, static files, analytics hook |
models.py | Pydantic models for chat, history, state, and health responses |
core/config.py | Paths, environment helpers, system prompt, constants |
services/chat_service.py | Chat answer logic, knowledge-base search, deterministic rules, OpenAI calls |
services/analytics_service.py | JSONL analytics, scrubbing, summaries |
sync_website_content.py | Website content sync into data/website_knowledge_base.json |
static/chatbot.js | Embeddable widget behavior |
static/chatbot.css | Widget styling |
templates/admin_dashboard.html | Protected admin dashboard page |
Change guidance
Add or fix answer logic
Add or fix answer logic
Prefer
services/chat_service.py. Keep app.py as the HTTP entrypoint and
add focused regression tests in tests/test_app.py.Add content
Add content
Prefer
data/knowledge_base.json for curated content. Use
data/CONTENT_GUIDE.md for field expectations.Change widget UI
Change widget UI
Use
static/chatbot.js for behavior and static/chatbot.css for styling.
The customer site only embeds the script.Change admin analytics
Change admin analytics
Use
services/analytics_service.py for stored event shape and summary
functions. Keep privacy constraints intact.Example: deterministic answer order
answer_chat currently tries deterministic handlers before OpenAI: