botserver/src/core/shared
Rodrigo Rodriguez (Pragmatismo) 5d93505012 feat(attendance): Add LLM-assisted attendant features
- Real-time tips when customer messages arrive
- Message polishing with one click
- Smart reply generation (3 contextual suggestions)
- Auto-summary when attendant takes conversation
- LLM-powered sentiment analysis with escalation warnings

WhatsApp Attendant Commands:
- /queue, /take, /status, /transfer, /resolve
- /tips, /polish, /replies, /summary, /help
- Portuguese versions: /fila, /pegar, /dicas, /polir, /respostas, /resumo

Config options (config.csv):
- attendant-llm-tips
- attendant-polish-message
- attendant-smart-replies
- attendant-auto-summary
- attendant-sentiment-analysis

API Endpoints:
- POST /api/attendance/llm/tips
- POST /api/attendance/llm/polish
- POST /api/attendance/llm/smart-replies
- GET /api/attendance/llm/summary/{session_id}
- POST /api/attendance/llm/sentiment
- GET /api/attendance/llm/config/{bot_id}

Uses bot's system prompt for consistency between bot and human-assisted responses.
2025-12-05 13:47:15 -03:00
..
admin.rs Fix compiler warnings and improve code consistency 2025-11-27 08:34:24 -03:00
analytics.rs Implement real database functions, remove TODOs and placeholders 2025-12-03 22:23:30 -03:00
mod.rs - botbook extracted from. 2025-12-03 19:59:27 -03:00
models.rs feat(auth): Add OAuth login for Google, Discord, Reddit, Twitter, Microsoft, Facebook 2025-12-04 22:53:40 -03:00
schema.rs feat(auth): Add OAuth login for Google, Discord, Reddit, Twitter, Microsoft, Facebook 2025-12-04 22:53:40 -03:00
state.rs feat(attendance): Add LLM-assisted attendant features 2025-12-05 13:47:15 -03:00
utils.rs Update default features and add quick start guide 2025-11-28 13:50:28 -03:00