How pava-max/ai-enterprise-automation works
The repository implements an API gateway that accepts user requests, resolves intent, and dispatches supported work to agents. The visible end-to-end branches cover HR leave requests and employee onboarding, plus report requests sent to a Data Agent. The HR agent validates requests and handles leave calculations or delegates onboarding to an HRMS adapter. The README also describes workflow automation and customer support, but their implementations are not present in the supplied tree. Evidence is limited to the README, source index, and sampled files.
Main entry points: router_service.py Intent router · orchestration.py Request handler · hr_agent_client.py HR client · data_agent_client.py Data client
Components 25
Gateway orchestration
- Gateway API
gateway_orchestrator/app/main.py - Gateway health
gateway_orchestrator/app/routes/health.py - Request handler
gateway_orchestrator/app/routes/orchestration.py - Request schema
gateway_orchestrator/app/schemas/request_schemas.py - Response schema
gateway_orchestrator/app/schemas/response_schemas.py - Intent router
gateway_orchestrator/app/services/router_service.py - Intent resolver
gateway_orchestrator/app/services/intent_service.py - HR client
gateway_orchestrator/app/clients/hr_agent_client.py - Data client
gateway_orchestrator/app/clients/data_agent_client.py
HR agent
- HR API
agents/hr_agent/app/main.py - HR health
agents/hr_agent/app/routes/health.py - HR operations
agents/hr_agent/app/routes/hr_ops.py - HR models
agents/hr_agent/app/schemas/hr_models.py - Leave service
agents/hr_agent/app/services/leave_service.py - Onboarding service
agents/hr_agent/app/services/onboarding_service.py - HRMS adapter
agents/hr_agent/app/integrators/hrms_adapter.py
Shared runtime
- Runtime settings
common/config.py - Logging utility
common/logging_utils.py - API key security
common/security.py - Messaging utility
common/messaging.py
Agent integrations
- HRMS service
- Data Analysis Agent
- Workflow Automation Agent
- Customer Support Agent
Other components
- Requesting user
Connections 29
- Requesting user → Request handler: submits request
gateway_orchestrator/app/routes/orchestration.py - Gateway API → Gateway health: mounts routes
gateway_orchestrator/app/main.py - Gateway API → Request handler: mounts routes
gateway_orchestrator/app/main.py - Request handler → Request schema: accepts request
gateway_orchestrator/app/routes/orchestration.py - Request handler → API key security: checks API key
gateway_orchestrator/app/routes/orchestration.py - Request handler → Intent router: dispatches request
gateway_orchestrator/app/routes/orchestration.py - Request handler → Response schema: returns response
gateway_orchestrator/app/routes/orchestration.py - Intent router → Intent resolver: resolves intent
gateway_orchestrator/app/services/router_service.py - Intent router → HR client: calls HR
gateway_orchestrator/app/services/router_service.py - Intent router → Data client: calls reports
gateway_orchestrator/app/services/router_service.py - HR client → HR API: posts HR request
gateway_orchestrator/app/clients/hr_agent_client.py - Data client → Data Analysis Agent: posts report request
gateway_orchestrator/app/clients/data_agent_client.py - HR API → HR health: mounts routes
agents/hr_agent/app/main.py - HR API → HR operations: mounts routes
agents/hr_agent/app/main.py - HR operations → HR models: uses request models
agents/hr_agent/app/routes/hr_ops.py - HR operations → Leave service: calls leave service
agents/hr_agent/app/routes/hr_ops.py - HR operations → Onboarding service: calls onboarding
agents/hr_agent/app/routes/hr_ops.py - Leave service → HR models: uses request and response
agents/hr_agent/app/services/leave_service.py - Onboarding service → HR models: uses request and response
agents/hr_agent/app/services/onboarding_service.py - Onboarding service → HRMS adapter: creates employee
agents/hr_agent/app/services/onboarding_service.py - HRMS adapter → HRMS service: writes employee data
- HR client → Runtime settings: reads HR URL
gateway_orchestrator/app/clients/hr_agent_client.py - Data client → Runtime settings: reads Data URL
gateway_orchestrator/app/clients/data_agent_client.py - Gateway API → Logging utility: sets up logging
gateway_orchestrator/app/main.py - HR API → Logging utility: sets up logging
agents/hr_agent/app/main.py - HR client → Logging utility: sets up logging
gateway_orchestrator/app/clients/hr_agent_client.py - Data client → Logging utility: sets up logging
gateway_orchestrator/app/clients/data_agent_client.py - Intent router → Workflow Automation Agent: planned routing
gateway_orchestrator/app/services/router_service.py - Intent router → Customer Support Agent: planned routing
gateway_orchestrator/app/services/router_service.py