How dev-atri/projeto_oficina works
RPA Atri consolidates repair orders (OSs), supports human review and insurer validation, and prepares OS closure through the Conference API. The principal workflow runs from Conference data and required documents through AI extraction, validation, persistence, and dashboard curation; the README describes closure as a later third step. The graph also includes the web dashboard and its authentication, plus the documented portal-credential and execution-management capabilities. Some relationships rely on SOURCE INDEX references or README statements; unsampled route and worker internals are not inferred.
Main entry points: triagem.py OS triage · route.js Dashboard routes · executar.py Step 1 runner · client.py Conference client
Components 25
Dashboard
- Dashboard UI
app/page.jsx - Login page
app/login/page.jsx
API and access
- Authentication routes
app/api/auth/login/route.js - Auth and permissions
lib/auth/permissions.js - Dashboard routes
app/api/dashboard/consolidacoes/route.js - Dashboard utilities
lib/dashboard.js - Prisma database client
lib/prisma.js - Python service API
client.py
Order consolidation
- Conference client
integrations/conference/client.py - Step 1 runner
steps/passo_1_consolidacao/executar.py - OS triage
steps/passo_1_consolidacao/triagem.py - Document reader
services/ia/document_reader.py - Document and data checks
services/validacoes/anexos.py - Insurer CNPJ validation
services/validacoes/cnpj.py - Budget validation
services/validacoes/orcamento.py - Validation classification
services/validacoes/classificador.py - Insurer CNPJ registry
modules/seguradora/cnpjs.py
Human review
- Consolidation and review store
repositories/mysql_consolidacao_repository.py - SQLite result store
repositories/consolidacao_repository.py - Human curation
client.py - Portal credentials
app/api/dashboard/portais-senhas/route.js
Conference closure
- Step 3 closure
steps/passo_3_fechamento/executar.py
Other components
- Operator
- Conference service
- Document AI provider
Connections 30
- Operator → Login page: signs in
app/login/page.jsx - Operator → Dashboard UI: uses
README.md - Login page → Authentication routes: authenticates
- Authentication routes → Auth and permissions: uses sessions
app/api/auth/login/route.js - Dashboard routes → Auth and permissions: checks access
app/api/dashboard/consolidacoes/route.js - Dashboard routes → Dashboard utilities: uses
app/api/dashboard/consolidacoes/route.js - Dashboard routes → Python service API: requests data
- Dashboard routes → Prisma database client: queries
- Dashboard UI → Dashboard routes: requests data
- Operator → Step 1 runner: runs triage
README.md - Step 1 runner → Conference client: gets OS data
apps/passo_1_consolidacao/main.py - Step 1 runner → OS triage: runs triage
- Step 1 runner → SQLite result store: persists results
apps/passo_1_consolidacao/main.py - OS triage → Conference client: reads OS and documents
steps/passo_1_consolidacao/triagem.py - OS triage → Document reader: extracts documents
steps/passo_1_consolidacao/triagem.py - Document reader → Document AI provider: delegates reading
services/ia/document_reader.py - OS triage → Document and data checks: checks attachments
steps/passo_1_consolidacao/triagem.py - OS triage → Insurer CNPJ validation: checks CNPJ
steps/passo_1_consolidacao/triagem.py - Insurer CNPJ validation → Insurer CNPJ registry: looks up insurer
services/validacoes/cnpj.py - OS triage → Budget validation: checks budget
steps/passo_1_consolidacao/triagem.py - OS triage → Validation classification: classifies result
steps/passo_1_consolidacao/triagem.py - OS triage → Consolidation and review store: persists triage
- Python service API → Consolidation and review store: reads and writes
client.py - Operator → Human curation: curates OSs
README.md - Human curation → Consolidation and review store: updates review
client.py - Operator → Portal credentials: manages portals
app/api/dashboard/portais-senhas/route.js - Portal credentials → Prisma database client: stores credentials
app/api/dashboard/portais-senhas/route.js - Operator → Step 3 closure: runs closure
- Step 3 closure → Conference service: closes OS
- Conference client → Conference service: queries and downloads
integrations/conference/client.py