How neiljovianus/ramiel works
RAMIEL AI is a web-based company-support chatbot with account, session, and administration workflows. A signed-in user sends a message (optionally with files); the chat route checks access and tokens, persists conversation state, runs the AI tool loop, and stores the answer. The README is empty, so capabilities are inferred from the source index and excerpts; several substantial routes are indexed but not sampled, so their internal interactions are omitted.
Main entry points: database.py Application database · main.py API application · auth.py Authentication and profile · chat.py Chat endpoint
Components 21
Web experience
- Chat and account UI
frontend/script.js - Frontend delivery
backend/routers/static.py
Identity and administration
- Authentication and profile
backend/routers/auth.py - Admin operations
backend/routers/admin.py - Developer operations
backend/routers/dev.py - Access checks
backend/dependencies.py - Security utilities
backend/security.py - Email and OTP service
backend/email_service.py
Conversation and AI
- Chat sessions
backend/routers/sessions.py - Chat endpoint
backend/routers/chat.py - AI tool loop
backend/ai/pipeline.py - Gemini client
backend/ai/client.py - Data and document tools
backend/ai/tools.py
Shared platform
- API application
backend/main.py - Request schemas
backend/schemas.py - Application database
backend/database.py - Runtime configuration
backend/config.py
Other components
- User
- Google Gemini
- MySQL
- SMTP service
Connections 36
- User → Chat and account UI: uses
frontend/script.js - Chat and account UI → API application: requests API
- API application → Frontend delivery: mounts
backend/main.py - API application → Chat endpoint: registers
backend/main.py - API application → Authentication and profile: registers
backend/main.py - API application → Chat sessions: registers
backend/main.py - API application → Admin operations: registers
backend/main.py - API application → Developer operations: registers
backend/main.py - API application → Runtime configuration: loads paths
backend/main.py - Chat endpoint → Request schemas: validates
backend/routers/chat.py - Authentication and profile → Request schemas: validates
backend/routers/auth.py - Chat sessions → Request schemas: validates
backend/routers/sessions.py - Admin operations → Access checks: checks access
backend/routers/admin.py - Developer operations → Access checks: checks access
backend/routers/dev.py - Authentication and profile → Access checks: checks access
backend/routers/auth.py - Authentication and profile → Security utilities: uses
backend/routers/auth.py - Authentication and profile → Email and OTP service: issues OTP
backend/routers/auth.py - Access checks → Application database: checks users
backend/dependencies.py - Authentication and profile → Application database: reads and writes
backend/routers/auth.py - Chat sessions → Application database: reads and writes
backend/routers/sessions.py - Admin operations → Application database: queries
backend/routers/admin.py - Developer operations → Application database: queries
backend/routers/dev.py - Chat endpoint → Application database: stores messages
backend/routers/chat.py - Chat endpoint → Gemini client: generates title
backend/routers/chat.py - Chat endpoint → AI tool loop: processes message
backend/routers/chat.py - AI tool loop → Gemini client: sends prompts
backend/ai/pipeline.py - AI tool loop → Data and document tools: dispatches tools
backend/ai/pipeline.py - Gemini client → Google Gemini: calls API
backend/ai/client.py - Data and document tools → Application database: queries tables
backend/ai/tools.py - Application database → MySQL: connects
backend/database.py - Email and OTP service → Application database: manages challenges
backend/email_service.py - Email and OTP service → SMTP service: sends mail
backend/email_service.py - Access checks → Runtime configuration: uses auth settings
backend/dependencies.py - Application database → Runtime configuration: uses DB settings
backend/database.py - Gemini client → Runtime configuration: uses AI settings
backend/ai/client.py - Data and document tools → Runtime configuration: uses file settings
backend/ai/tools.py