🤖 Office Management Chatbot API
Welcome to the intelligent Office Management Assistant!
🚀 Chatbot Endpoints:
- POST /api/chat - Main chatbot conversation endpoint
- GET /api/chat/history/<session_id> - Get chat history
- DELETE /api/chat/clear/<session_id> - Clear chat history
- GET /api/download/<filename> - Download generated files
💬 How to Use:
Send a POST request to /api/chat with:
{
"message": "Your question or request here",
"session_id": "optional_session_id",
"email": "user@example.com"
}
🎯 What I Can Do:
- Answer questions about employees, salaries, departments
- Generate salary slips for employees
- Provide general office management assistance
- Maintain conversation context across messages
📝 Example Messages:
- "What is John Doe's salary?"
- "Generate salary slip for employee LWE103"
- "Show me all employees in IT department"
- "Create a salary slip for March 2025 for employee ADMIN1"
📊 API Documentation:
Interactive API Documentation (Swagger)
Alternative API Documentation (ReDoc)