Autonomous AI Marketing Employee
A fully self-operating system that hunts leads, sends cold emails, monitors replies in real-time, posts to social media via official APIs, and generates weekly business intelligence โ all without human intervention.
Live Pipeline Stats
Updated: 9:18:33 PMSystem Architecture
GitHub Actions (Daily Cron)
โโ orchestrator.js โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Master Pipeline
โ
โโ Step 1: Process Approved Vault Posts
โ โโ AI_Employee_Vault/Approved/*.md โ LinkedIn API + Facebook API
โ
โโ Step 2: Check Email Replies (IMAP)
โ โโ email-watcher.js โ classifyEmail() โ Needs_Action/emails/
โ
โโ Step 3: Prospect Hunting
โ โโ prospect-hunter.js โ SerpAPI + Apollo.io (owner contacts)
โ โโ free-prospect-sources.js โ Google CSE + web scraping
โ
โโ Step 4: Email Outreach
โ โโ email-sender.js โ Brevo API โ 300 emails/day (6 templates)
โ
โโ Step 5: Blog โ Social Media
โ โโ blog-to-social.js โ social-api-poster.js โ LinkedIn + Facebook
โ
โโ Step 6: WhatsApp Lead Generation
โ โโ whatsapp-lead-generator.js โ phone extraction โ wa.me links
โ
โโ Step 7: CEO Briefing + Dashboard Update
โโ ceo-briefing.js โ Briefings/*.md + Dashboard.mdProspect Database โ Niche Breakdown
GitHub Actions Workflows
daily-blog-automation.yml
- 01.Groq AI generates 2 blog posts
- 02.Commits to GitHub
- 03.Vercel deploys + ISR revalidates
- 04.Posts to social media
daily-client-acquisition.yml
- 01.Process approved vault posts
- 02.Check IMAP email replies
- 03.Hunt 50+ new prospects
- 04.Send 300 emails (initial + follow-up)
- 05.Post to LinkedIn + Facebook
- 06.Generate WhatsApp leads
- 07.Update CEO briefing + dashboard
email-automation-cron.yml
- 01.Next.js API route trigger
- 02.Follow-up sequence scheduler
- 03.Reply rate tracking
Active Modules โ automation-system/src/
Tech Stack
Frontend
Backend
AI / LLM
APIs
Database
DevOps
Key Engineering Decisions
Official APIs over Browser Automation
Replaced Playwright (fragile, blocked by anti-bot) with LinkedIn v2 UGC API and Facebook Graph API v22. Result: 100% reliability in CI/CD environments, no browser installation needed.
Human-in-the-Loop by Design
AI generates social posts โ saves to Pending_Approval/ folder โ human moves to Approved/ โ orchestrator auto-publishes. Full auditability without giving AI unchecked posting rights.
Graceful Degradation
Each of the 7 orchestrator steps is wrapped in try/catch. If LinkedIn API fails, the email step still runs. If SerpAPI quota is hit, fallback to Google CSE. System never fully stops.
Cost-Optimized from Day One
Built entirely on free tiers: Apollo (10K contacts/month), Brevo (300 emails/day), Google CSE (100 searches/day), Vercel (free hosting). Monthly operating cost: $0.
AI Employee Vault Status
Want this built for your business?
This entire system was built by one developer โ from architecture to deployment. Available for freelance contracts, remote positions, and consulting engagements.