Welcome to the Chatbot Service documentation. This service is the AI orchestration layer of the TFG-Chatbot platform, implementing a LangGraph-powered conversational agent.
Quick Navigation
flowchart LR
subgraph Start["Getting Started"]
README[README]
Arch[Architecture]
end
subgraph Core["Core Concepts"]
LG[LangGraph Agent]
Tools[Tools]
API[API Endpoints]
end
subgraph Setup["Setup & Operations"]
Config[Configuration]
Dev[Development]
Deploy[Deployment]
end
README --> Arch
Arch --> LG
LG --> Tools
Tools --> API
API --> Config
Config --> Dev
Dev --> Deploy
# Send message
POST /chat
{"query": "¿Qué es Docker?",
"id": "session-123",
"asignatura": "iv"}# Resume test
POST /resume_chat
{"id": "session-123",
"user_response": "Un contenedor es..."}# Get history
GET /history/{session_id}
Tool Endpoints
# Scrape teaching guide
POST /scrape_guia
{"html_content": "<html>...</html>",
"subject_override": "iv"}
Analytics Endpoints
# Get student profile
GET /profiles/{user_id}# Get conversations
GET /conversations?user_id=student123&limit=100
# Get statistics
GET /conversations/stats?subject=iv