How ramk90/llm_complaint_workflow works
This is a complaint-document processing product with CLI and FastAPI entry points. Users submit one file or a directory; orchestration extracts document text, creates validated complaint analysis, drafts a customer email and internal executive summary, then persists per-case artifacts and a consolidated CSV for batches. The graph separates access, workflow, analysis, and outputs. Source excerpts support the main calls and persistence; README documents capabilities and endpoint behavior, while unsampled details are not expanded.
Main entry points: orchestrator.py Workflow orchestrator · chains.py Structured complaint analysis · schemas.py Validated result schemas · main.py CLI entry
Components 13
User access
- CLI entry
main.py - FastAPI service
app.py
Workflow control
- Workflow orchestrator
src/orchestrator.py - File text extraction
src/ingest.py - Runtime configuration
src/config.py
Complaint analysis
- Structured complaint analysis
src/chains.py - Customer email drafting
src/chains.py - Executive summary
src/chains.py - Validated result schemas
src/schemas.py
Case outputs
- Per-case artifacts
src/orchestrator.py - Batch CSV report
src/orchestrator.py
Other components
- CLI / API user
- Google Gemini
Connections 17
- CLI / API user → CLI entry: runs
README.md - CLI / API user → FastAPI service: calls
README.md - CLI entry → Workflow orchestrator: dispatches
main.py - FastAPI service → Workflow orchestrator: dispatches
app.py - Workflow orchestrator → File text extraction: extracts text
src/orchestrator.py - Workflow orchestrator → Structured complaint analysis: analyzes text
src/orchestrator.py - Workflow orchestrator → Customer email drafting: requests draft
src/orchestrator.py - Workflow orchestrator → Executive summary: requests summary
src/orchestrator.py - Workflow orchestrator → Per-case artifacts: writes files
src/orchestrator.py - Workflow orchestrator → Batch CSV report: writes report
src/orchestrator.py - Workflow orchestrator → Runtime configuration: uses settings
src/orchestrator.py - Structured complaint analysis → Google Gemini: sends prompt
src/chains.py - Customer email drafting → Google Gemini: sends prompt
src/chains.py - Executive summary → Google Gemini: sends prompt
src/chains.py - Structured complaint analysis → Validated result schemas: validates as
src/chains.py - Customer email drafting → Validated result schemas: validates as
src/chains.py - Executive summary → Validated result schemas: validates as
src/chains.py