How islammasry/hr-notify-agent works
HR Notify Agent is a bilingual HR assistant for turning text or voice instructions into employee campaigns. The main flow is: an HR manager submits a command, the app resolves recipients and proposes a plan, the manager approves it, and the app sends email and/or starts calls. Monitoring tracks campaigns and employee replies, enabling routine answers or escalation to HR. Settings manage the employee directory and policy knowledge base. The graph reflects documented capabilities; some app-to-subsystem connections are supported by the README rather than sampled endpoint code.
Main entry points: app.py Web app and API · claude_client.py Claude client · employee_store.py Employee directory · knowledge_base.py HR knowledge base
Components 19
HR interaction
- Web app and API
app.py - Command planner
orchestrator.py - Audio transcription
tools/transcribe_tool.py
Campaign delivery
- Claude client
claude_client.py - Email delivery
tools/email_sender.py - Voice calls
tools/call_tool.py
Monitoring and follow-up
- Inbox checker
tools/inbox_checker.py - Follow-up scheduler
scheduler.py - Audit and campaigns
audit_log.py
Domain data
- Employee directory
tools/employee_store.py - Default task
task_definition.py - HR knowledge base
tools/knowledge_base.py - Runtime configuration
config.py
Other components
- HR Manager
- Web interface
- Anthropic API
- Mail services
- Vapi service
- Employees
Connections 34
- HR Manager → Web interface: submits commands
README.md - Web interface → Web app and API: sends requests
README.md - Web app and API → Audio transcription: transcribes audio
README.md - Web app and API → Command planner: requests a plan
README.md - Web app and API → Employee directory: loads directory
app.py - Command planner → Anthropic API: requests tool plan
orchestrator.py - Command planner → Employee directory: resolves recipients
README.md - Web app and API → Default task: uses default task
app.py - Web app and API → Claude client: generates drafts
app.py - Claude client → Anthropic API: requests completions
claude_client.py - HR Manager → Web app and API: approves plan
README.md - Web app and API → Email delivery: sends campaign
README.md - Web app and API → Voice calls: starts calls
app.py - Email delivery → Mail services: sends mail
tools/email_sender.py - Voice calls → Vapi service: places calls
tools/call_tool.py - Employees → Mail services: sends replies
- Web app and API → Inbox checker: checks replies
README.md - Inbox checker → Mail services: reads inbox
tools/inbox_checker.py - Web app and API → Voice calls: polls call results
app.py - Web app and API → Claude client: classifies replies
app.py - Web app and API → HR knowledge base: loads policies
app.py - Claude client → HR knowledge base: uses policy text
README.md - Web app and API → Email delivery: sends auto replies
README.md - Web app and API → HR Manager: escalates replies
README.md - HR Manager → Web app and API: submits manager reply
README.md - Web app and API → Follow-up scheduler: configures checks
README.md - Follow-up scheduler → Web app and API: runs follow-up checks
app.py - Web app and API → Audit and campaigns: records actions
app.py - Web app and API → Audit and campaigns: reads campaign history
app.py - Web app and API → Employee directory: edits directory
README.md - Web app and API → HR knowledge base: edits policies
README.md - Employee directory → Runtime configuration: gets data path
tools/employee_store.py - HR knowledge base → Runtime configuration: gets data path
tools/knowledge_base.py - Audit and campaigns → Runtime configuration: gets database path
audit_log.py