Nebex AI Platform
System Process Guide

Complete visual and written breakdown of every process running on the platform — April 2026

18
AI Agents
24/7
Auto-Running
8
Active Clients
30 min
Comment Cycles
₹499
Evaluation CTA
1. All 18 AI Agents Platform Overview
Every agent, their codename, role, and the AI model powering them — running 24/7 on the platform
🧠 Strategy Layer — CEO & Operations
George
GEORGE — CEO
Reviews all clients, autonomously re-engages cold clients, spawns any agent, sends morning/evening Telegram briefings to Ashish
nemotron-ultra-253b (NVIDIA)
Tanya
TANYA — COO / EA
Operations coordinator, scheduling, task coordination, daily briefings management
deepseek-v3.2
Sentinel
SENTINEL — QA
Platform health checks twice daily (8:30AM + 9PM IST), 25-point system audit, reviews deliverables, sends branded health reports
nemotron-super-49b-v1.5
📢 Marketing & Content Layer
Herald
HERALD — Content
Writes blogs, captions, newsletters, Reel scripts, weekly content calendar. Outcome-focused Indian English copy.
gpt-4o (OpenAI)
Reach
REACH — Social Media
Daily IG posts at 10AM, Reels Mon/Wed/Fri 11AM, client social media posting. Posts to @nebex.in and client Instagram accounts.
palmyra-creative-122b
Pixel
PIXEL — Visuals
AI image generation via WaveSpeed FLUX, AI video via Google VEO 3.1 Fast, Instagram comment reply UI in client microsite
WaveSpeed API + VEO 3.1
Bulbul
BULBUL — Voice
Indian English TTS voiceovers via ElevenLabs (Ayesha voice). Used for all Reel audio. No Hinglish — English only.
Sarvam-M + ElevenLabs
💼 Sales & Client Success Layer
Closer
CLOSER — Sales
Follows up leads from Instagram comments, sends proposals, Razorpay payment links. Triggered automatically when Instagram lead captured.
gpt-4o (OpenAI)
Care
CARE — Support
Auto-replies to Instagram comments (compliments/complaints/general). Sends client updates. Friendly Indian-style copy.
llama-4-maverick
Welcome
WELCOME — Onboarding
Sends welcome email sequence when new client signs up. Introduces platform and what to expect.
llama-4-scout
Scout
SCOUT — Research
Market research reports for clients, competitor analysis, industry research using live web search.
Perplexity Sonar Pro
⚙️ Operations & Specialist Layer
Ledger
LEDGER — Finance
Checks payment status, tracks invoices, handles Razorpay webhook events, sends payment reminders
moonshot/kimi-k2
Juris
JURIS — Legal
Contract reviews, compliance checks, Indian law queries, terms & conditions drafting
claude-3.5-sonnet
Insight
INSIGHT — Analytics
Client performance reports, dashboard metrics analysis, engagement tracking, monthly summaries
gemini-1.5-pro
Forge
FORGE — Developer
Builds new features, fixes bugs, writes platform code. Used by Ashish to improve the platform itself.
qwen3-coder-480b (NVIDIA)
Voice
VOICE — Telephony
Call scripts and follow-up calls. Exotel/Plivo integration pending — JD ready but no live calling yet.
llama-3.3-70b
Vault
VAULT — Security
Stores sensitive credentials, handles secure data access, encryption of client tokens
llama-3.1-405b
2. Social Media Pipeline REACH + HERALD + PIXEL + BULBUL
How content goes from zero → AI-generated → live on @nebex.in Instagram, completely automatically

A — Daily Instagram Post  ·  Every day at 10:00 AM IST

Trigger
Cron @ 10:00 AM
Server crontab fires daily. Runs generate-and-post.js
Step 1
Herald writes caption
AI generates engaging caption about Indian business + Nebex outcomes. Outcome-focused, never says "AI agents".
HERALD — palmyra-creative
Step 2
WaveSpeed generates image
FLUX-dev model creates 1024×1024 branded visual for the caption topic
PIXEL — WaveSpeed API
Step 3
Publish to Instagram
Image uploaded → container created → published via Graph API v21.0 to @nebex.in
REACH — Graph API
Done
Telegram alert
Ashish gets: "Daily post published ✅" with Instagram permalink link

B — Instagram Reels  ·  Monday / Wednesday / Friday at 11:00 AM IST

Trigger
Cron 3×/week 11AM
Mon/Wed/Fri crontab. Runs generate-reel.js on server
Step 1
Herald writes Reel script
60-second script: hook + 3 value points + CTA to nebex.in. Indian English, no Hinglish.
Step 2
ElevenLabs voiceover
Ayesha (Indian English) voice generates MP3 audio from the script
BULBUL — ElevenLabs
Step 3
VEO 3.1 generates video
Google VEO 3.1 Fast creates AI video footage matching the script topic
PIXEL — Gemini VEO API
Step 4
ffmpeg merge
Audio + video merged into final MP4 with correct aspect ratio for Reels
Step 5
Publish as Reel
MP4 uploaded to Graph API, published as Instagram Reel with caption + hashtags
REACH — Graph API
Content Rules (permanent): ALL voiceovers use Indian English only — Ayesha voice (ElevenLabs ID: aYaXovtG24vGWOWO6N8r). Copy always says "Nebex handles it" — never "AI agents". Focus on business outcomes. Use #BusinessGrowth not #AIAgents.
3. Instagram Comment Monitor — Phase 2 Lead Gen + Auto-Reply
Runs every 30 minutes. Classifies every new comment on @nebex.in posts and Reels. Captures leads, replies automatically, alerts Ashish on Telegram.

Full Comment Processing Flow

Cron fires every 30 minutes
instagram-comment-monitor.js runs on server. Calls Instagram API to fetch 8 most recent posts — covers both regular posts AND Reels.
🔍
Already seen? Skip it.
Each comment_id is checked against the instagram_comment_log database table. If already logged, it is skipped. This prevents duplicate replies.
🤖
GPT-4o-mini classifies the comment
One category assigned from six options:
pricing_query demo_request complaint compliment spam general
pricing_query or demo_request → LEAD CAPTURE
Saves commenter to leads table. Triggers CLOSER agent. Sends Telegram alert with Lead ID. Auto-replies with CTA: "Start your ₹499 evaluation at nebex.in"
!
complaint → Alert + Empathy Reply
Telegram alert sent to Ashish with full comment text. CARE replies on Instagram: "Sorry to hear that, DM us and we'll fix it right away."
🚫
spam → Hide comment silently
Comment hidden from Instagram view using Graph API hideComment. No reply sent. User is not notified.
💬
compliment or general → Warm friendly reply
CARE generates personalised warm reply. Ends with: "Visit nebex.in for more details."
💾
Log everything to database
All comments saved to instagram_comment_log: classification, reply sent, lead_captured flag, timestamp. Never processed twice.

Lead Capture Deep-Dive

1
Check for duplicate lead
Queries leads table: notes LIKE '%@username%instagram%'. If already in DB, skips creation — just sends Telegram saying "Already in leads DB".
2
Insert new lead into leads table
name: @username  |  source: instagram_comment
stage: awareness  |  status: new
challenge: "Wants pricing info" or "Wants a demo"
3
Trigger CLOSER agent automatically
POST to /api/microsite/agents/trigger with taskType: follow_up_lead. CLOSER receives the task and sends a follow-up email if contact details are available for the lead.
4
Telegram alert to Ashish
"Instagram Lead Detected! @username | Intent: PRICING QUERY | 'their comment text' | Lead #42 created — CLOSER notified"
5
Reply on Instagram comment with CTA
CARE generates personalised reply: "Hi @username! Start your ₹499 business evaluation at nebex.in — full analysis in 5 days! 🎯"

Comment Classification Rules

  • pricing_query — price, cost, fees, kitna, rate, how much, plans
  • demo_request — demo, trial, how it works, interested, show me
  • complaint — problem, issue, not working, unhappy, bad
  • compliment — great, amazing, love, wow, nice, excellent
  • spam — follow back, promotional, gibberish, unrelated
  • general — everything else, questions, curiosity

Token Expiry — What Happens

  • Comment replies fail gracefully — reply saved to DB with error note
  • Content Centre shows "Reply saved locally — token needs refresh"
  • Health check flags Instagram API as failing
  • Telegram alert fires immediately on first failure
  • Fix: update FB_PAGE_TOKEN + IG_USER_TOKEN in .env, restart PM2
4. Client Social Media Accounts New — April 2026
How to connect a client's Instagram so REACH can post on their behalf. The DB and agent code are fully ready — just needs a token per client.

How to Connect a Client Account (5 Steps)

1
Get the client's Facebook Page Access Token
The client needs a Facebook Page connected to their Instagram Business account. Token comes from Graph Explorer or their developer app. See instructions on the right →
2
Open Content Centre → Client Social tab
Go to nebex.in/dashboard/content → click "Client Social" in left nav → click the "+ Connect Account" button (top right)
3
Select client + paste token → click Verify
The Verify button calls the Facebook Graph API live and auto-fills the FB Page ID and Instagram Business Account ID. No need to look up any IDs manually.
4
Check the account name and click "Connect Account"
Adjust the @handle if needed. Click Connect. Saves to client_social_accounts table with status: active.
5
REACH agent can now post for this client
Select the client from dropdown → click "+ Create Post" to trigger REACH immediately. Posts log to client_social_posts and appear on their microsite (nebex.in/c/slug).

📋 How to Get the Client's Facebook Page Token

  1. Go to developers.facebook.com/tools/explorer
  2. Select the Graph API Explorer or client's Facebook App
  3. Click "Generate Access Token" at the top right
  4. Select the client's Facebook Page from the dropdown list
  5. Make sure these permissions are selected:
    instagram_basic instagram_content_publish pages_read_engagement instagram_manage_comments
  6. Click the blue Generate Access Token button → copy the long EAAxxxx... string
  7. Paste it in the Content Centre modal → click Verify
  8. All IDs auto-fill → click Connect Account
⚠️ Token expires in ~60 days. Set a calendar reminder. When expired, click Edit on the account row and paste the new token → Verify → Save. No data is lost.

What Happens After Connecting

  • REACH agent can post images/videos to client's Instagram
  • Admin clicks "+ Create Post" to trigger REACH immediately
  • All posts logged to client_social_posts (likes, reach, saves tracked)
  • Client sees their posts in their microsite at nebex.in/c/slug
  • Edit button lets you update token when it expires
  • Disconnect button (×) removes access instantly with confirmation

Database Tables for Client Social

client_social_accounts

  • client_id → links to which client
  • platform → instagram / facebook
  • ig_account_id → IG Business Account ID
  • fb_page_id → Facebook Page ID
  • access_token → stored FB Page Token
  • account_name → @handle display
  • status → active / inactive
  • connected_at → when linked

client_social_posts

  • client_id → which client
  • post_type → image / video / reel
  • caption → post text AI generated
  • media_url → image or video URL
  • permalink → live Instagram URL
  • likes / comments / reach / saves
  • status → posted / scheduled / failed
  • posted_at → publish timestamp

instagram_comment_log

  • media_id → which Instagram post
  • comment_id → unique, prevents re-processing
  • username → Instagram handle
  • comment_text → full comment content
  • classification → category assigned
  • reply_sent → what we replied
  • lead_captured → true / false
  • processed_at → timestamp
5. Full Automation Schedule All Cron Jobs
Every automated process on the platform — time, frequency, agent, and output
Time (IST) Frequency What Runs Agent(s) Output / Result
Every 30 min Always on Instagram comment monitor — fetches 8 recent posts, classifies all new comments, captures leads, sends CTA replies, hides spam CARE / CLOSER Leads saved to DB, Telegram alerts, auto-replies on Instagram
8:30 AM Daily Morning health check — 25 system checks (web server, DB, all agent APIs, recent activity, system resources) SENTINEL Branded HTML email to ashish@nebex.in + Telegram score report
10:00 AM Daily Instagram daily post — Herald writes caption, WaveSpeed generates image, REACH publishes to @nebex.in REACH / HERALD / PIXEL Post live on Instagram, Telegram confirmation with link
11:00 AM Mon / Wed / Fri Instagram Reel — Herald writes script, ElevenLabs voice, VEO generates video, ffmpeg merges, REACH publishes as Reel REACH / HERALD / BULBUL / PIXEL Reel live on Instagram, Telegram confirmation
9:00 PM Daily Evening health check — same 25 checks as morning SENTINEL Branded email + Telegram score to Ashish
On demand Auto-triggered Cold client re-engagement — George detects client inactive, auto-triggers CLOSER without waiting for approval GEORGE / CLOSER Re-engagement email sent to client
On payment event Auto-triggered Razorpay webhook → trial expiry / payment received → LEDGER checks status → CARE sends update to client LEDGER / CARE Client email + DB status update
May 27, 2026 One-time Meta IG_USER_TOKEN expiry reminder — token expires June 17, 2026 SENTINEL Telegram alert to Ashish: "Refresh Instagram token in 21 days"
Oct 3, 2026 One-time NVIDIA API key expiry reminder — key expires Oct 5, 2026 SENTINEL Telegram alert to Ashish: "NVIDIA key expiring in 2 days"
6. Written SOPs — Standard Operating Procedures
Step-by-step written guides for the most common platform tasks. Save this page for reference.

SOP 1 — Instagram Token Expired

How you know it's expired

Comment monitor Telegram shows an error message. Daily posts stop publishing at 10AM. Health check email shows Instagram API: FAIL. Server error log: "Session has expired on..."

Fix — takes 5 minutes

1. Go to developers.facebook.com/tools/explorer

2. Select your app → click "Generate Access Token"

3. Select @nebex.in Facebook Page → add instagram permissions

4. Copy the new token starting with EAAxxxx

5. SSH to server and update .env: FB_PAGE_TOKEN= and IG_USER_TOKEN= (same value for both)

6. Restart: pm2 restart nebex-platform --update-env

Verify it worked

Check Content Centre → Social tab — recent posts should appear. Or wait for the next 10AM post and check Telegram for the confirmation message.

SOP 2 — Add a New Client to Platform

Step 1 — Create client account

Go to nebex.in/admin → Add Client → fill name, business type, plan → Save. System auto-creates their microsite URL at nebex.in/c/slug

Step 2 — WELCOME agent auto-fires

On creation, WELCOME agent sends a branded welcome email to the client introducing the Nebex platform and their dedicated agent team.

Step 3 — Connect their Instagram (optional)

If client wants REACH to post for them → Content Centre → Client Social → Connect Account → follow the 5-step token guide in Section 4.

Step 4 — Share their microsite link

Send client: nebex.in/c/their-slug — they can see their reports, posts, tasks, and chat directly with PIXEL for copy suggestions.

SOP 3 — Spawn an Agent Manually

Via curl command (terminal or Postman)

POST to localhost:3000/api/microsite/agents/trigger

Required fields: agentId, clientId, taskType, title, description

Correct task types per agent — CRITICAL

closer → send_proposal or follow_up_lead

scout → generate_research_report

care → send_update

sentinel → review_deliverables

ledger → check_payment_status

reach → create_client_social_post

⚠️ Wrong task types cause "Unknown task" errors and fire a Telegram alert to Ashish every time.

SOP 4 — Check Platform Health

Automatic — twice daily

SENTINEL runs 25 checks at 8:30AM and 9PM IST. You get a branded email + Telegram with a score. Target is 100%.

Manual check anytime

SSH: python3 /opt/ai-platform/scripts/health-check.py

Browser: nebex.in/health (JSON status)

PM2 logs: pm2 logs nebex-platform --lines 50

SOP 5 — Content Centre Tabs Explained

Login: nebex.in/dashboard/content

Posts — All Instagram posts published by REACH, schedule view

Comments — All IG comments, classification, reply status, timestamps

Gallery — All AI-generated images and videos stored on server

AI Costs — OpenAI + Gemini daily/monthly spend tracking

PIXEL Chat — Chat with PIXEL for reply copy suggestions + save as templates

Client Social — All client accounts + their posts + Connect Account modal

⏳ Pending — Not Yet Live

AiSensy WhatsApp Messaging

API key is live in .env. Need to create 2 WhatsApp message templates at app.aisensy.com and submit for Meta approval (1-3 days):

nebex_eval_ready — Utility template

nebex_followup — Marketing template

YouTube Channel Automation

Channel to be created by Ashish. Provide YouTube handle → enable YouTube Data API v3 in Google Cloud Console. Then HERALD writes scripts, PIXEL generates visuals via VEO, BULBUL does voiceover, auto-uploads via YouTube Data API.

VOICE Agent Telephony

VOICE agent JD and SOUL.md are complete. Needs Exotel or Plivo API keys configured to actually make and receive calls. Currently has no live calling capability.