|
Node.js 20Python 3.11Next.js 15GitHub ActionsLinkedIn API v2Facebook Graph APIGroq AILive

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: 3:39:52 PM
485
Total Prospects
CRM database
0
Emails Sent
via Brevo API
0%
Reply Rate
target: >5%
0
Hot Leads
interested replies
25
Automation Modules
JS + Python scripts
3
GitHub Workflows
daily cron jobs
300/day
Email Capacity
150 init + 150 follow-up
0
Social Posts (7 days)
LinkedIn + Facebook

System 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.md

Prospect Database — Niche Breakdown

restaurant
285
smallBusiness
62
lawyer
45
healthcare
38
ecommerce
31
realEstate
24
Total prospects485

GitHub Actions Workflows

9:00 AM UTC

daily-blog-automation.yml

  1. 01.Groq AI generates 2 blog posts
  2. 02.Commits to GitHub
  3. 03.Vercel deploys + ISR revalidates
  4. 04.Posts to social media
2:00 PM UTC

daily-client-acquisition.yml

  1. 01.Process approved vault posts
  2. 02.Check IMAP email replies
  3. 03.Hunt 50+ new prospects
  4. 04.Send 300 emails (initial + follow-up)
  5. 05.Post to LinkedIn + Facebook
  6. 06.Generate WhatsApp leads
  7. 07.Update CEO briefing + dashboard
Hourly

email-automation-cron.yml

  1. 01.Next.js API route trigger
  2. 02.Follow-up sequence scheduler
  3. 03.Reply rate tracking

Active Modules — automation-system/src/

🧠
orchestrator.js
Master Pipeline
🔍
prospect-hunter.js
SerpAPI + Apollo Lead Discovery
🌐
free-prospect-sources.js
Google CSE + Web Scraping
📧
email-sender.js
Brevo SMTP Outreach (6 templates)
👁️
email-watcher.js
IMAP Real-Time Reply Monitor
📡
social-api-poster.js
LinkedIn v2 + Facebook Graph API
✍️
blog-to-social.js
Blog Content → Social Media
💬
whatsapp-lead-generator.js
Phone Extraction + wa.me Links
📊
ceo-briefing.js
Weekly Business Intelligence Report
🗄️
database.js
lowdb JSON CRM (485+ prospects)
📝
email-templates.js
6 Industry-Specific Templates
🤖
blog_automation_agent.py
Groq AI Blog Generation

Tech Stack

Frontend

Next.js 15React 19TypeScriptTailwind CSSFramer Motion

Backend

Node.js 20Python 3.11ES ModulesNext.js API Routes

AI / LLM

Groq AINLP ClassifierEmail Intelligence

APIs

LinkedIn v2 UGCFacebook Graph v22Brevo SMTPSerpAPIApollo.ioGoogle CSE

Database

lowdb JSONVercel KVPostgreSQL (Neon)

DevOps

GitHub ActionsDocker (166MB)VercelWindows Task Scheduler

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

⏳
0
Pending Approvals
Social posts awaiting review
🔔
0
Action Items
Hot leads & tasks
📬
0
Email Replies (7d)
Detected via IMAP
🔥
0
Interested Leads (7d)
High priority follow-up

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.

📍 Karachi, Pakistan (Remote — US Hours)•💼 Available for Contract & Full-Time•⚡ 8+ Years Experience