How princeverma73/rider-payout-ai-desk works
QuickDrop is a rider payout-dispute support desk. A rider submits a message to the service; the agent uses conversation context and investigative tools to check identity, trip and payout records, then either requests a guarded payout or creates an Ops review item and replies. PaySwift handles automated transfers, while the service also exposes an Ops dashboard. The source excerpts show agent/tool and persistence relationships; the API entry point was not sampled, so its dispatch to the agent is marked unverified.
Main entry points: core.py Agent orchestrator · session.py PostgreSQL · tools.py Payout decision · main.py Service API
Components 15
Service and conversations
- Service API
app/main.py - Ops dashboard
ops-ui/index.html
Agent and investigation
- Agent orchestrator
app/agent/core.py - Conversation prompts
app/agent/prompts.py - Rider lookup
app/agent/tools.py - Trip and date audit
app/agent/tools.py - Payout history
app/agent/tools.py - Refund policy
app/agent/policy.py
Payout and operations
- Payout decision
app/agent/tools.py - Payment and trace services
app/agent/services.py - Ops dispute queue
app/agent/tools.py - PaySwift sandbox
payswift
Persistence
- Domain records
app/db/models.py - PostgreSQL
app/db/session.py
Other components
- Rider
Connections 19
- Rider → Service API: submits message
README.md - Service API → Agent orchestrator: dispatches message
- Service API → Ops dashboard: serves dashboard
README.md - Agent orchestrator → Conversation prompts: uses prompt
app/agent/core.py - Agent orchestrator → Rider lookup: routes tool call
app/agent/core.py - Agent orchestrator → Trip and date audit: routes tool call
app/agent/core.py - Agent orchestrator → Payout history: routes tool call
app/agent/core.py - Agent orchestrator → Payout decision: routes tool call
app/agent/core.py - Agent orchestrator → Ops dispute queue: routes tool call
app/agent/core.py - Rider lookup → PostgreSQL: reads rider
app/agent/tools.py - Trip and date audit → PostgreSQL: reads trip records
app/agent/tools.py - Payout history → PostgreSQL: reads payout lines
app/agent/tools.py - Payout decision → PostgreSQL: checks disputes
app/agent/tools.py - Payout decision → Payment and trace services: requests transfer
app/agent/tools.py - Payout decision → Ops dispute queue: queues approval
app/agent/tools.py - Ops dispute queue → PostgreSQL: writes dispute
app/agent/tools.py - Payment and trace services → PaySwift sandbox: posts payout
app/agent/services.py - Payment and trace services → PostgreSQL: records trace
app/agent/services.py - Domain records → PostgreSQL: defines tables
app/db/models.py