● Free template · v0.1.0

WhatsApp AI Agent

Drop-in Node.js template that turns any WhatsApp number into a 24/7 AI assistant. Reminders, voice transcription, notes, AI Q&A — all powered by your own LLM. Self-host, customize, ship.

30 minsetup time
4WA provider adapters
~1,200lines of code
₹0to start
WhatsApp AI Agent — visual overview showing reminders, voice-to-text, notes, AI Q&A across Gupshup, AiSensy, Meta and Baileys providers
What it does

Everything a personal AI assistant should do — over WhatsApp.

Built on patterns proven by ChatGPT & Claude — but lives where your users actually message: WhatsApp.

🤖

AI Q&A

Any question goes to qwen3.5:9b (or OpenAI, or your own model). 8-turn rolling context, num_ctx 8192, repeat_penalty tuned for clean replies.

⏰

Natural-language reminders

"remind me to call Anil at 6pm" — parsed via chrono-node, scheduled in Postgres, fired by node-cron. Recurring daily/weekly/monthly supported.

🎙

Voice-note transcription

Forward a voice note → Whisper transcribes → AI answers it. The original audio is processed once and deleted; only the transcript persists.

📝

Notes & lists

"add milk to grocery", /list grocery, /done milk. Multi-list support per user, soft-deletes, 500-item cap.

⚡

Free-tier quota

Built-in daily message cap per user (default 50). Resets at UTC midnight. Easy to wire Razorpay/Stripe for paid upgrades.

🔌

Provider-agnostic

Single env var swaps WhatsApp providers: Gupshup, AiSensy, Meta Cloud API, or Baileys. Same code, different connection.

How it works

From zero to "remind me to call Anil at 6pm" in 30 minutes.

Download & install

Extract the zip, run npm install, fill .env with your provider keys + Postgres URL.

Migrate & start

One command: npm run migrate && npm start. The server auto-creates all DB tables on first run.

Point webhook & chat

Set your provider's webhook URL to https://your-domain/webhook. DM the WA number — bot replies in seconds.

# Quick install
unzip whatsapp-ai-agent-v0.1.0.zip && cd whatsapp-ai-agent
npm install
cp .env.example .env       # fill in WA_PROVIDER, keys, DATABASE_URL
npm run migrate
npm start

# now point your WA provider's webhook to:
#   https://your-domain.com/webhook
Compare

Why self-host vs use a SaaS like WATI or Aisensy directly?

What you getWhatsApp AI Agent (this)SaaS (WATI, Aisensy, etc)
Recurring monthly cost₹0 (host yourself)₹2,500 – ₹8,000/mo
Your own AI modelYes (Ollama, OpenAI, etc)Vendor-locked
Data residencyYour server, your DBVendor-controlled
Customize behaviorFull source code, fork freelyLimited to UI options
Time to start30 min1 hour
Best forDevs, agencies, custom flowsMarketing teams, no-code
Pricing

Free during beta. Then ₹4,999 one-time.

Get it now for free while we collect early feedback. Lifetime updates included for the first 50 downloaders.

● Beta · FREE
₹0

Full source · all 4 provider adapters · lifetime updates for first 50 buyers · was ₹4,999

  • Complete Node.js source code
  • All 4 WA provider adapters (Gupshup, AiSensy, Cloud, Baileys)
  • PostgreSQL schema with auto-migrate
  • Setup docs per provider
  • PM2 ecosystem config
  • Build-zip script for repackaging
  • Commercial license — sell to your clients
🚀 Start setup wizard
FAQ

Common questions.

Do I need a WhatsApp Business Account?

Only for Gupshup, AiSensy, and Meta Cloud API (all 3 are official providers that go through Meta). For Baileys (unofficial), you just need a regular WhatsApp number on a SIM — no business account needed, but Meta may ban it.

Which provider should I start with?

If you're in India and want to ship fast: Gupshup (free 30-day sandbox, no commitment). If you want zero ban risk and direct billing from Meta: Meta Cloud API (free dev number). For prototype/personal use: Baileys on a fresh SIM.

What does it cost to run in production?

The agent itself is free (you host it). WhatsApp message costs depend on your provider — typically ₹0.39 per session (Gupshup, 24h conversation window) or $0.005-0.05 per conversation (Meta Cloud). Server cost: ~₹400/mo for a small VPS. LLM cost: free if you use your own Ollama; ~$0.01/1k tokens for OpenAI.

Can I sell this to my clients?

Yes — the commercial license lets you deploy this for paying clients. Each client gets their own deployment with their own .env config. We just ask that the "Built with CraftiTool agent" credit stays somewhere in the source comments.

How does the AI know the user's history?

The last 8 turns of conversation are pulled from Postgres and sent to the LLM as context on every reply. For longer-term memory, the wa_conv_summary table can be summarized via a periodic LLM job (template provided in the README).

What if the user sends an image?

For images: the current template stores them and replies "tell me what you want to do with this". For full vision support, swap the LLM to a vision-capable model (qwen2.5-vl, llava, GPT-4o) by setting LLM_MODEL in .env — the agent forwards image base64 to the model automatically.

Voice transcription costs?

OpenAI Whisper API is $0.006/min (≈₹0.50/min). For free transcription, drop in a local whisper.cpp binary and set VOICE_PROVIDER=local-whisper. Or set VOICE_PROVIDER=none to disable entirely.

How do I update to new versions?

First 50 downloaders get lifetime updates — drop a fresh zip over your code dir, rerun npm install, restart PM2. Migrations are forward-compatible. After the first 50, updates are ₹500/year.

Ship a WhatsApp AI bot tonight.

30 minutes from download to your phone buzzing with an AI reply. Free during beta. Full source. Use it for your business or sell it to your clients.