An AI-powered freight brokerage automation system that handles inbound carrier calls for load booking, using the HappyRobot platform for intelligent call management.
This system automates the entire carrier-broker interaction flow:
- Carrier Authentication: Verify MC numbers via FMCSA API
- Load Matching: Intelligent matching of carriers to available loads
- Price Negotiation: Automated negotiation handling (up to 3 rounds)
- Call Classification: Sentiment analysis and outcome tracking
- Metrics Dashboard: Real-time analytics and reporting
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ HappyRobot │ │ FastAPI │ │ Database │
│ AI Agent │◄───┤ Backend │◄───┤ (SQLite/PG) │
│ │ │ │ │ │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│ │ │
│ │ │
▼ ▼ ▼
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ FMCSA API │ │ Load Matching │ │ Metrics │
│ Verification │ │ Engine │ │ Dashboard │
└─────────────────┘ └─────────────────┘ └─────────────────┘
- Python 3.8+
- Docker (for containerization)
- HappyRobot account and API access
-
Clone the repository
git clone https://github.com/fahd78/happyrobot-inbound-carrier.git cd happyrobot-inbound-carrier -
Set up virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Configure environment
cp .env.example .env # Edit .env with your API keys -
Run the application
uvicorn app.main:app --reload
- ✅ Carrier Verification - FMCSA MC number validation
- ✅ Load Management - CRUD operations for freight loads
- ✅ Intelligent Matching - Algorithm-based load-carrier matching
- ✅ Price Negotiation - Multi-round automated negotiation
- ✅ Call Analytics - Sentiment and outcome classification
- 🔒 HTTPS Encryption - SSL/TLS for all communications
- 🔑 API Key Authentication - Secure endpoint access
- 🛡️ Input Validation - Comprehensive data sanitization
- 📈 Real-time Dashboard - Live metrics and KPIs
- 📋 Call Transcripts - Complete interaction logs
- 🎯 Performance Analytics - Success rates and trends
├── app/
│ ├── api/ # API endpoints
│ ├── core/ # Core functionality
│ ├── models/ # Database models
│ ├── services/ # Business logic
│ └── main.py # FastAPI application
├── dashboard/ # Frontend dashboard
├── scripts/ # Utility scripts
├── tests/ # Test suite
└── docker/ # Docker configuration
pytest tests/ -vdocker build -t happyrobot-carrier .
docker run -p 8000:8000 happyrobot-carrier- Production System - Fully functional automation platform
- Cloud Deployment - Live system on cloud infrastructure
- Documentation - Complete technical and user documentation
- Demo Video - 5-minute walkthrough demonstration
- Client Presentation - Ready for stakeholder review
- Repository: GitHub
- Live Demo: [Deployment URL]
- Documentation: [API Docs]
- Dashboard: [Analytics Dashboard]
For technical questions or project inquiries, reach out through the GitHub repository issues.
Built for HappyRobot Stage 2 Technical Challenge