This is an AI-powered lead generation automation system that automatically processes replies to cold emails, qualifies prospects using OpenAI, creates personalized business demos, and sends intelligent responses - all without human intervention.
Business Impact: Converts cold email replies into qualified leads with working demos in under 60 seconds, fully automated.
- N8N Workflow Engine - Orchestrates the entire automation
- Instantly.ai Integration - Handles email sending/receiving
- OpenAI Assistant - AI-powered lead qualification
- Demo Generation API - Creates working business demos
- Template Management System - Industry-specific conversation flows
Cold Email Reply → N8N Webhook → AI Qualification → Demo Creation → Personalized Response → Send via Instantly
- Trigger: N8N webhook receives email reply from Instantly.ai
- Data Captured: Lead email, company info, reply content, sender account details
- File:
All purpose AI SDR (databasejumpstart).json(nodes: Webhook1, Wait)
- Purpose: Retrieves full conversation context from Instantly.ai
- API Call:
GET /api/v2/emails/{email_id}?include_messages=true&limit=5 - Retry Logic: 5 attempts with 2-second delays for API consistency
- File:
All purpose AI SDR (databasejumpstart).json(node: "Fetch email thread")
- Purpose: Loads comprehensive database reactivation sales methodology
- Content: SPIN selling techniques, objection handling, industry approaches
- Key Guidelines:
- Database reactivation reduces churn 20-30%
- Focus on ROI and business impact
- Push toward discovery calls
- File:
All purpose AI SDR (databasejumpstart).json(node: "SDR behavior")
- Lead Data Extracted:
organization_name- Company namename- Contact person's nameemail_account- Sending email accountindustry- Business industryorganization_short_description- Company descriptiontitle- Contact's job titlecity,state- Location datareply_text- Actual email reply content
- Demo URL Generation: Creates provisional demo URL using company slug
- File:
All purpose AI SDR (databasejumpstart).json(node: "Data passthrough")
- OpenAI Assistant:
asst_Mg778qKZlXbo7jARcq4ppSv6(named "Jon") - Qualification Logic:
- ANY pricing/cost questions = "YES"
- Questions about service/process = "YES"
- Words like "possibly", "maybe", "might be" = "YES"
- ONLY "NO" for explicit rejections
- Response Generation: Creates personalized reply message
- Output Format:
{ "interested": "YES" | "NO", "message": "<personalized reply>" } - File:
All purpose AI SDR (databasejumpstart).json(node: "Qualify lead")
- Trigger: Only if
interested === "YES"AND company name exists - API Endpoint:
POST https://dbjumpstartdemo.com/api/create-prototype - Payload:
{ "companyName": "extracted company name", "location": "city, state", "industry": "business industry", "contactEmail": "lead email", "contactName": "contact name", "title": "job title" } - Fallback: If API fails, generates manual demo URL using company slug
- File:
All purpose AI SDR (databasejumpstart).json(node: "Build Instantly payload")
- HTML Email Body: Converts AI message with line breaks to HTML
- Signature Addition: Adds "Sent from my iPhone" signature for authenticity
- Demo Link Integration: Embeds working demo URL in qualified responses
- File:
All purpose AI SDR (databasejumpstart).json(node: "Build Instantly payload")
- Platform: Instantly.ai API
- Endpoint:
POST /api/v2/emails/reply - Authentication: Bearer token for Instantly account
- Response Data:
eaccount- Sending email accountreply_to_uuid- Original email IDsubject- Email subject lineto_address_email_list- Recipient emailbody- HTML and text versions
- File:
All purpose AI SDR (databasejumpstart).json(node: "Send via Instantly1")
- File:
apps/lead-generation/lib/prompt-template-manager.ts - Purpose: Generates industry-specific conversation flows
- Key Features:
- Dynamic first message generation based on business description
- Industry-specific qualification questions
- Objection handling templates
- American casual language enforcement (no British/corporate words)
- First Message: "It's Sarah from [Company] here. Is this the same [Name] that [specific realistic action] last month?"
- Positive Response: "Thank goodness, my calendar just pinged me to call, but I didn't want to disturb you, are you still looking for help?"
- Negative Response: "Sorry about that, just to confirm, are you interested in [industry] services?"
- Qualification: "Nice. what are you trying to do? [industry-specific options]? give me some background"
- Closing: "[reaction]. We can get [outcome] done in [timeframe]. let's lock in a quick call to [goal]: [calendar link]"
- Automotive: Car purchases, repairs, fleet services
- Dental: Cleanings, cosmetics, orthodontics
- Legal: Personal injury, family law, business law
- Fitness: Weight loss, muscle building, classes
- N8N Workflow Platform - Automation orchestration
- Instantly.ai Account - Cold email platform with API access
- OpenAI API - GPT-4 assistant for lead qualification
- Demo Generation API - Custom endpoint for creating business demos
- Webhook Infrastructure - N8N webhook URL for receiving email replies
- Instantly.ai Bearer Token:
MzRhNmM3ZjAtZDQzOS00NWRkLThlMzctNjgwMzYxY2MzZWU4OnBZRkZNeUlkb1hhaQ== - OpenAI API Key: For GPT-4 assistant access
- Demo API Domain:
dbjumpstartdemo.com
- N8N Execution Data: Workflow run history and debug logs
- Instantly.ai: Email threads and conversation history
- OpenAI: Assistant conversation context
- Demo API: Generated demo metadata and URLs
- Email Processing: ~10-15 seconds from receipt to AI analysis
- Demo Creation: ~5-10 seconds for working demo generation
- Total Response Time: Under 60 seconds from reply to qualified response
- Over-qualification Bias: System errs on side of "YES" to avoid missed opportunities
- Conversation Quality: Industry-specific templates ensure relevant, natural responses
- Demo Relevance: Company-specific branding and industry customization
- Manual Process Elimination: No human intervention required for lead qualification
- Demo Creation Automation: Instant working demos for qualified prospects
- Response Personalization: Industry and company-specific messaging
- Scale: Handles unlimited email reply volume automatically
- N8N Platform Access - Workflow must remain active and accessible
- Instantly.ai API Uptime - Email sending/receiving functionality
- OpenAI Assistant Availability - AI qualification and response generation
- Demo API Reliability - Custom demo creation endpoint
- Webhook Accessibility - N8N webhook URL must be reachable by Instantly
- API Rate Limits: OpenAI and Instantly.ai usage quotas
- Demo Creation Failures: Fallback to manual URL generation
- Email Delivery Issues: Instantly.ai sending limitations
- Webhook Downtime: N8N platform or network connectivity issues
- Monitor API Usage: Track OpenAI and Instantly.ai quota consumption
- Review Qualification Accuracy: Analyze AI classification results
- Update Industry Templates: Add new industries and refine existing ones
- Demo API Monitoring: Ensure demo creation endpoint reliability
- Conversation Flow Optimization: Refine templates based on response patterns
- N8N Workflow Modifications: Update nodes and logic flows
- OpenAI Assistant Training: Refine qualification criteria and responses
- Template Expansion: Add new industries and conversation patterns
- Demo API Enhancements: Improve demo generation and customization
- Multi-Language Support: Expand beyond English conversations
- Advanced Lead Scoring: Implement predictive qualification scoring
- CRM Integration: Connect to Salesforce, HubSpot, or Pipedrive
- A/B Testing Framework: Test different conversation approaches
- Analytics Dashboard: Real-time performance monitoring and insights
- Multi-Account Support: Handle multiple Instantly.ai accounts
- Team Collaboration: Multi-user access and role management
- Advanced Automation: Calendar booking, follow-up sequences
- Industry Specialization: Highly specialized conversation flows per vertical
This system represents a complete automation of the lead qualification and demo creation process, transforming manual sales activities into an intelligent, scalable automation that operates 24/7 without human intervention.