Inspiration
The spark came from a frustrating reality after watching hot leads from various sources like conferences, meetups, product symposiums, etc. turn cold while buried in the system for days. We've all been there—you meet an excited prospect at AWS re:Invent, they're genuinely interested, but by the time sales gets their information three days later, that enthusiasm has cooled. We realized that in today's fast-paced business world, speed is everything. The difference between closing a deal and losing a customer often comes down to hours, not days. Our third-party marketing partners were collecting hundreds of leads daily across conferences, meetups, and symposiums worldwide, but the manual process of aggregating, sorting, and distributing this data was killing our conversion rates. We needed to transform this chaotic, slow process into a lightning-fast, intelligent pipeline.
What it does
Lead Lightning is an end-to-end serverless customer intelligence system that transforms data chaos into precision-targeted sales opportunities in real-time. Here's the flow: Data Collection--> Third-party marketing partners capture prospect information at events Automated Aggregation-->System aggregates daily data into Excel files and uploads to S3 Instant Processing--> S3 upload triggers Lambda function that intelligently parses customer data Smart Routing--> AI analyzes each prospect and routes them to specialized DynamoDB tables based on product interest (Aws → AWS Sales team, Amazon → Amazon Sales team) AI Enhancement --> this will be an add on feature currently not built but in the pipeline to enable Amazon Bedrock to generate personalized insights, lead scores, and custom email content for each prospect Intelligent Notifications--> this will be an add on feature currently not built but in the pipeline to Automate, personalized follow-ups sent via Amazon SES with product-specific recommendations Sales Enablement--> Teams wake up with warm, categorized, AI-analyzed leads ready for immediate engagement
How we built it
Our serverless architecture leverages core AWS services for maximum efficiency: Core Pipeline
S3 + Lambda: File upload triggers with smart filtering (only processes customer.xlsx) Python + Built-in Libraries: Zero-dependency Excel parsing using zipfile and XML parsing DynamoDB: Separate tables for different product lines with UUID-based customer tracking IAM: Secure, least-privilege access controls
Data Processing Engine
Intelligent File Filtering: Lambda ignores non-customer files, processing only relevant uploads Robust Excel Parsing: Handles varying Excel formats by treating files as ZIP archives and parsing XML Dynamic GUID Generation: Each customer gets a unique identifier for seamless tracking Product-Based Routing: Automatic distribution to appropriate teams based on interest
Key Technical Decisions
Serverless-first: Zero infrastructure management, infinite scalability Built-in libraries only: Avoided external dependencies for faster cold starts and zero deployment complexity Event-driven: Each component triggers the next, ensuring real-time processing Flexible schema: Handles varying Excel formats gracefully
Challenges we ran into
- Dependency Hell Initially tried using pandas for Excel processing, hit the dreaded ImportModuleError: No module named 'pandas'. Lambda's runtime doesn't include these libraries by default. Solution: Engineered a breakthrough solution using only Python built-ins, treating Excel files as ZIP archives and parsing XML directly. This actually resulted in faster performance and zero deployment complexity!
- DynamoDB Permission Nightmares Spent hours debugging AccessDeniedException errors when trying to write to existing DynamoDB tables. Solution: Created comprehensive IAM policies with exact ARN targeting and proper permission scoping for seamless database access.
- Excel Format Variations Real-world Excel files from marketing partners had inconsistent formats, missing headers, and unexpected data types. Solution: Built robust parsing with error handling, data validation, and graceful fallbacks for malformed data. Our system now handles any Excel format thrown at it.
- GUID Generation Strategy Needed reliable unique identifier generation for customer tracking across multiple systems. Solution: Implemented Python's uuid.uuid4() , ensuring globally unique customer IDs.
- Cold Start Performance Lambda cold starts were impacting real-time processing speed. Solution: Optimized code to use minimal imports, efficient memory usage, and streamlined processing logic.
Accomplishments that we're proud of
Zero-Dependency Excel Processing Built a complete Excel parser using only Python built-ins—no external libraries required. This innovation eliminated deployment complexity and improved performance dramatically. Real-Time Processing Achieved end-to-end processing from Excel upload to organized customer data in under 10 seconds, turning our 3-day manual process into a 10-second automated pipeline. Intelligent Routing Created smart product-based routing that automatically directs enterprise prospects (AWS) to specialized teams and Issue related to (Amazon) go to appropriate handlers. 🔧 Production-Ready Architecture Built a robust, scalable system that handles real-world data inconsistencies and edge cases with grace. Cost Efficiency Entire system costs is effective to process thousands of leads, compared to hiring additional staff for manual processing. Serverless Excellence Created a truly serverless solution with zero infrastructure management, automatic scaling, and pay-per-use pricing.
What we learned
Technical Learnings
Serverless architecture truly shines for event-driven workflows Built-in libraries can be more powerful than external dependencies when used creatively S3 event notifications provide reliable, scalable file processing triggers DynamoDB offers incredible performance for high-volume customer data Lambda cold starts matter less when you optimize for minimal dependencies
Business Learnings
Speed kills in lead conversion—every hour of delay significantly impacts close rates Automation doesn't replace human sales teams but makes them more effective Data quality matters more than data quantity for effective lead processing Real-time processing creates competitive advantage in customer acquisition
Architecture Learnings
Event-driven systems are more resilient and scalable than monolithic approaches Microservices via Lambda allow independent scaling and development Simplicity often beats complexity in production environments
What's next for AWS Lambda Hackathon
AI Intelligence Layer
Amazon Bedrock Integration: Add AI-powered customer analysis and lead scoring Personalized Insights: Generate custom recommendations for each prospect Smart Email Generation: Create tailored follow-up content automatically
Communication Automation
Amazon SES Integration: Automated email follow-ups with product-specific information Multi-channel Notifications: SMS and push notifications via Amazon SNS Template Engine: Dynamic content based on customer profile and interests
Real-Time Features
Mobile Dashboard: Sales teams get instant notifications with lead details Live Analytics: Real-time metrics showing lead flow and conversion rates API Gateway: RESTful APIs for third-party integrations
Advanced Features
Predictive Analytics: Historical data analysis for lead quality prediction CRM Integration: Seamless sync with Salesforce, HubSpot, and other platforms Advanced Routing: ML-based assignment to optimal sales representatives
Scale & Integration
Multi-format Support: Handle CSV, JSON, and other data formats Global Deployment: Multi-region architecture for worldwide events Partner APIs: Direct integration with major conference and event platforms
Analytics & Insights
Attribution Modeling: Track ROI across different events and marketing channels Performance Dashboards: Comprehensive analytics for sales teams and management Conversion Tracking: End-to-end visibility from lead capture to deal closure
Lead Lightning represents the present reality of customer acquisition—a solid, reliable foundation that transforms manual processes into automated excellence. With our robust serverless architecture in place, we're perfectly positioned to add AI and advanced features in future iterations.
Built With
- dynamodb
- python
- s3
Log in or sign up for Devpost to join the conversation.