How dexhorthy/mailcrew works
Main Components
a) External Services Layer:
• Email Interface (Humanlayer)
• Stripe API
• Coinbase API
• User Email Client
b) Application Core:
• FastAPI Server
• CrewAI Agent System
• Webhook Handler
• Task Processing Pipeline
[External Services/Interfaces]
• ↕
[Application Core Components]
• ↕
[External APIs/Integrations]
Key Flows
a) Primary Flow:
• User → Email → Humanlayer → Webhook → FastAPI Server → Agent Processing → Response Chain
b) Secondary Flows:
• Agent → Stripe/Coinbase API Interactions
• Approval/Feedback Loop with Users
Detailed Component Breakdown
FastAPI Server:
• Webhook endpoint (/api/v1/webhook/email)
• Agent initialization
• Request processing
Agent System:
• Task interpretation
• API interaction planning
• Response generation
• Approval workflow management
Important Relationships
• Bidirectional communication between Agent and User via email
• One-way authentication flows to external APIs
• Webhook routing path
• Approval/confirmation loops
Additional Elements
• Component types
• Authentication points
Implementation Notes
• Clear component separation
• Logical flow direction (typically top to bottom or left to right)
• Proper spacing for readability
• Consistent styling throughout
Remember to include environment configuration points and the security boundary between public-facing components and protected API interactions.
This level of detail will provide a clear understanding of the system while maintaining practical usability for development and deployment discussions.