Web application that automates weekly hockey signup management with intelligent SMS processing and automated payment distribution to goalies.
Streamlines the process of organizing weekly hockey games by automatically tracking signups, notifying goalie managers when quotas are met, and processing payments through an SMS-based workflow.
- NLP Analysis: Sophisticated natural language processing with confidence scoring
- Context-Aware Responses: Analyzes sentiment, urgency, and emotional indicators
- Multi-Pattern Recognition: Handles various confirmation styles and ambiguous messages
- Automatic Venmo Username Extraction: Smart parsing of payment information
- PayPal/Venmo Integration: Seamless payment processing through MCP (Model Context Protocol)
- Safety Guards: Comprehensive protection against accidental payments during development
- Real-time Transaction Tracking: Complete audit trail of all payment activities
- Flexible Payment Methods: Support for multiple payment platforms
- Real-time Monitoring: Live signup tracking and quota management
- Broadcast Messaging: Bulk SMS notifications to participants
- Payment Testing: Safe testing environment for payment flows
- Configuration Management: Dynamic quota and contact management
- Flask: Lightweight, modular web framework
- SQLite/PostgreSQL: Flexible database support
- Gunicorn: Production WSGI server
- Modular Design: Clean separation of concerns
- Twilio: SMS messaging and webhook processing
- PayPal MCP: Payment processing and order management
- Model Context Protocol: Advanced AI-powered integrations
- Sophisticated NLP Engine: Custom-built message analysis system
- Confidence-Based Decision Making: Intelligent response generation
- Production Logging: Comprehensive monitoring and debugging
- Docker Support: Containerized deployment ready
Python 3.8+
pip install -r requirements.txt# Copy environment template
cp .env.example .env
# Configure your credentials (see Configuration section)
# Edit .env with your API keys and settingspython scripts/init_db.pypython app.pygunicorn -c gunicorn.conf.py app:appThe application uses environment variables for secure configuration management:
SECRET_KEY: Flask session securityADMIN_TOKEN: Admin panel accessTWILIO_ACCOUNT_SID: SMS service configurationTWILIO_AUTH_TOKEN: SMS authenticationTWILIO_FROM: SMS sender numberPAYPAL_CLIENT_ID: Payment processingPAYPAL_CLIENT_SECRET: Payment authentication
FLASK_ENV: Environment mode (development/production)DB_PATH: Database file locationDEFAULT_QUOTA: Default weekly signup limitLOG_LEVEL: Logging verbositySENTRY_DSN: Error monitoring
GET /- Main signup interfacePOST /signup- Player registrationPOST /sms-webhook- Twilio message processing
GET /admin- Administrative dashboardPOST /admin/quota- Quota managementPOST /admin/broadcast/send- Bulk messagingPOST /admin/pay-goalie- Manual payment processing
GET /pay-goalie- Payment interfacePOST /create-goalie-order- Order creationGET /payment/success- Payment confirmationGET /payment/cancel- Payment cancellation
python -m pytest tests/python test_mcp_venmo.py# Use ngrok for local webhook testing
ngrok http 5000Note: This application is designed for private use. The live deployment URL is not publicly accessible for security reasons. Demo credentials and sandbox environments are used for testing purposes.