botserver/src/basic/keywords
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
..
arrays - Split into botui. 2025-12-02 21:09:43 -03:00
crm Implement real database functions, remove TODOs and placeholders 2025-12-03 22:23:30 -03:00
datetime Looking at this diff, I need to summarize the significant documentation 2025-11-30 12:20:48 -03:00
errors feat: unified keywords with spaces, ON ERROR RESUME NEXT, unified DELETE 2025-12-05 09:55:13 -03:00
math - Split into botui. 2025-12-02 21:09:43 -03:00
messaging - Split into botui. 2025-12-02 21:09:43 -03:00
social - Split into botui. 2025-12-02 21:09:43 -03:00
validation - Split into botui. 2025-12-02 21:09:43 -03:00
a2a_protocol.rs Update dependencies and remove problematic crates 2025-12-03 16:05:30 -03:00
add_bot.rs - Split into botui. 2025-12-02 21:09:43 -03:00
add_member.rs - Even more keywords. 2025-11-22 12:26:16 -03:00
add_suggestion.rs - Split into botui. 2025-12-02 21:09:43 -03:00
agent_reflection.rs - Split into botui. 2025-12-02 21:09:43 -03:00
api_tool_generator.rs - Split into botui. 2025-12-02 21:09:43 -03:00
book.rs Add metadata and refactor BASIC compiler 2025-11-27 15:19:17 -03:00
bot_memory.rs Looking at this diff, I can see it's a comprehensive documentation 2025-11-30 10:53:59 -03:00
card.rs Update dependencies and remove problematic crates 2025-12-03 16:05:30 -03:00
clear_kb.rs Looking at this diff, I can see it's a comprehensive documentation 2025-11-30 10:53:59 -03:00
clear_tools.rs Looking at this diff, I can see it's a comprehensive documentation 2025-11-30 10:53:59 -03:00
code_sandbox.rs Update dependencies and remove problematic crates 2025-12-03 16:05:30 -03:00
core_functions.rs Add documentation and core BASIC language functions 2025-11-30 11:09:16 -03:00
create_draft.rs Remove unused sqlx dependency and related code 2025-11-28 09:27:29 -03:00
create_site.rs - Screen manuals. 2025-11-30 22:33:54 -03:00
create_task.rs - New templates. 2025-11-22 01:27:29 -03:00
data_operations.rs feat: unified keywords with spaces, ON ERROR RESUME NEXT, unified DELETE 2025-12-05 09:55:13 -03:00
episodic_memory.rs feat(email): implement email read tracking with pixel support 2025-12-04 18:15:09 -03:00
file_operations.rs feat: unified keywords with spaces, ON ERROR RESUME NEXT, unified DELETE 2025-12-05 09:55:13 -03:00
find.rs refactor: simplify UI panels, use pooled DB, add --noui flag 2025-11-11 09:42:52 -03:00
first.rs refactor: simplify UI panels, use pooled DB, add --noui flag 2025-11-11 09:42:52 -03:00
for_next.rs , dt.month, dt.hour, dt.is_weekend, etc.) 2025-11-30 15:07:29 -03:00
format.rs refactor: simplify UI panels, use pooled DB, add --noui flag 2025-11-11 09:42:52 -03:00
get.rs refactor: simplify UI panels, use pooled DB, add --noui flag 2025-11-11 09:42:52 -03:00
hear_talk.rs - Split into botui. 2025-12-02 21:09:43 -03:00
http_operations.rs feat: unified keywords with spaces, ON ERROR RESUME NEXT, unified DELETE 2025-12-05 09:55:13 -03:00
human_approval.rs - Split into botui. 2025-12-02 21:09:43 -03:00
import_export.rs - Split into botui. 2025-12-02 21:09:43 -03:00
kb_statistics.rs - Split into botui. 2025-12-02 21:09:43 -03:00
knowledge_graph.rs - Split into botui. 2025-12-02 21:09:43 -03:00
last.rs refactor: simplify UI panels, use pooled DB, add --noui flag 2025-11-11 09:42:52 -03:00
lead_scoring.rs - Screen manuals. 2025-11-30 22:33:54 -03:00
llm_keyword.rs - Removing warnings. 2025-11-22 22:54:45 -03:00
llm_macros.rs - Split into botui. 2025-12-02 21:09:43 -03:00
mod.rs feat(attendance): Add LLM-assisted attendant features 2025-12-05 13:47:15 -03:00
model_routing.rs - Split into botui. 2025-12-02 21:09:43 -03:00
multimodal.rs Add multimodal module for botmodels integration 2025-11-29 20:40:08 -03:00
on.rs refactor: simplify UI panels, use pooled DB, add --noui flag 2025-11-11 09:42:52 -03:00
on_form_submit.rs - Split into botui. 2025-12-02 21:09:43 -03:00
play.rs - Split into botui. 2025-12-02 21:09:43 -03:00
print.rs refactor: simplify UI panels, use pooled DB, add --noui flag 2025-11-11 09:42:52 -03:00
procedures.rs Looking at this diff, I can see it's a comprehensive documentation 2025-11-30 10:53:59 -03:00
qrcode.rs Update dependencies and remove problematic crates 2025-12-03 16:05:30 -03:00
remember.rs - New templates. 2025-11-22 01:27:29 -03:00
save_from_unstructured.rs Looking at this diff, I can see it's a comprehensive documentation 2025-11-30 10:53:59 -03:00
send_mail.rs feat: unified keywords with spaces, ON ERROR RESUME NEXT, unified DELETE 2025-12-05 09:55:13 -03:00
send_template.rs Add documentation and core BASIC language functions 2025-11-30 11:09:16 -03:00
set.rs refactor: simplify UI panels, use pooled DB, add --noui flag 2025-11-11 09:42:52 -03:00
set_context.rs Looking at this diff, I can see it's a comprehensive documentation 2025-11-30 10:53:59 -03:00
set_schedule.rs - Split into botui. 2025-12-02 21:09:43 -03:00
set_user.rs - Screen manuals. 2025-11-30 22:33:54 -03:00
sms.rs - Split into botui. 2025-12-02 21:09:43 -03:00
social_media.rs Add documentation and core BASIC language functions 2025-11-30 11:09:16 -03:00
string_functions.rs - Split into botui. 2025-12-02 21:09:43 -03:00
switch_case.rs - Split into botui. 2025-12-02 21:09:43 -03:00
table_definition.rs Update dependencies and remove problematic crates 2025-12-03 16:05:30 -03:00
transfer_to_human.rs feat(attendance): Add LLM-assisted attendant features 2025-12-05 13:47:15 -03:00
universal_messaging.rs Replace magic numbers with MessageType constants 2025-11-28 18:15:09 -03:00
use_kb.rs Looking at this diff, I can see it's a comprehensive documentation 2025-11-30 10:53:59 -03:00
use_tool.rs Looking at this diff, I can see it's a comprehensive documentation 2025-11-30 10:53:59 -03:00
use_website.rs - Screen manuals. 2025-11-30 22:33:54 -03:00
user_memory.rs Add implementation plan and multi-agent features 2025-11-30 19:18:23 -03:00
wait.rs refactor: simplify UI panels, use pooled DB, add --noui flag 2025-11-11 09:42:52 -03:00
weather.rs Add .env.example with comprehensive configuration template 2025-11-28 13:19:03 -03:00
webhook.rs - Split into botui. 2025-12-02 21:09:43 -03:00