A premium, feature-rich Go-based WhatsApp automation bot that turns your personal WhatsApp account into a smart virtual assistant. Unlike typical bots that require expensive official Business APIs, this bot securely runs as a linked web device on your account, enabling you to manage features directly by "messaging yourself"
🛠️ The Tech Stack: How it's Built
The bot is constructed using a high-performance, lightweight, and modern stack designed for speed, ease of deployment, and low memory consumption:
Programming Language: Go (Golang v1.25) - guarantees ultra-low CPU/RAM usage, concurrency safety, and fast compilation.
WhatsApp Gateway: whatsmeow (go.mau.fi/whatsmeow) an unofficial Go library that implements the WhatsApp Web protobuffer-based E2E protocol. It links your WhatsApp account via a simple terminal QR code scan.
AI Engine: Grok AI (xAI API) - powers all automated chat responses, homework solving, translation, and birthday greetings.
Database: SQLite (modernc.org/sqlite) - a pure Go, zero-dependency embedded SQLite database. No CGO required, ensuring the binary remains highly portable across systems.
Protocol Serialization: Google Protocol Buffers (protobuf) handles message parsing and serializing directly into WhatsApp's internal structure.
Deployment Options:
Docker & Docker Compose for containerized high-availability.
Systemd Service (babebot.service) for running as a background service on any Linux VPS.
🌟 Key Features
1. 🤖 Multi-Contact Auto-Reply (AI Texting Style)
Smart Inactivity Window: If you receive a message and don't reply within a customized time (e.g., 60 seconds), the bot steps in. If you reply yourself first, the auto-reply is automatically cancelled.
Texting Style Adaptation: Uses Grok AI to analyze your conversation context and reply in a natural, human-like voice that mimics your messaging style.
2. 💕 Per-Contact Personality Profiles
Customize how the bot interacts with different people in your life:
babe: Calm, soft, sweet, affectionate, and uses pet names. (Includes protection filters to prevent accidentally removing your babe from the bot's system).
friend: Casual, warm, and friendly.
formal: Professional and business-oriented.
chill: Short, concise, and direct answers.
3. 👁️ Auto Status Viewing
Automatically views all your contacts' statuses as soon as they are uploaded. Keep your presence active without manually scrolling through status pages. Toggleable with /statusview on|off.
4. ⏰ Advanced Message Scheduling
Schedule messages to send to any contact at any specific time (e.g., /schedule mybro 14:30 Join the video meeting). A background worker processes pending schedules every 30 seconds.
5. 🎂 Automated Birthday Greetings
Store birthdays for your contacts. The bot runs a check every hour and automatically drafts a unique, AI-generated birthday greeting in the exact tone matching the recipient's personality profile (e.g., sweet for babe, chill/casual for friends).
6. 📞 Anti-Call & Blocker
Automatically rejects incoming voice and video calls when enabled, preventing unexpected interruptions. Toggleable via /anticall on|off.
7. 🛡️ Anti-Spam Filters
Filter and ignore unknown numbers that aren't on your registered whitelist, protecting your account from spam. Toggleable via /antispam on|off.
8. 🌙 AFK (Away From Keyboard) Mode
Activate a custom away message (e.g., /afk Studying for exams 📚). The bot will instantly inform anyone who messages you of your status and can be turned off simply by typing /afk off.
9. 🔓 ViewOnce Media Extractor (.vv / /vv)
Never lose ephemeral media. By quoting/replying to any ViewOnce image, video, or voice note with .vv or /vv, the bot extracts the media and sends a permanent copy directly to your direct message (DM).
10. 🖼️ Instant Sticker Maker
Reply to any image in any chat with /sticker and the bot will instantly convert it into a WhatsApp sticker.
11. 📣 Marketing Campaign Automation
Bulk Campaign Tool: Broadcast marketing campaigns to target lists with ease.
Target Selection: Load targets from harvested contacts, manual JIDs, joined groups, or file uploads (.txt, .csv, .vcf).
Media Support: Send both text and custom image payloads (by quoting an image with /campaign image).
/ask <question>: Query Grok AI for instant answers to general questions in chat.
/translate <lang> <text>: Fast AI-powered language translation.
/solve <question>: Academic step-by-step homework helper. It parses questions (or quoted messages) and outputs clear, student-friendly tutorials.
SMSGANG Integrations (/cheapdata): Promotes and displays cheap student data bundles (MTN, Airtel, Glo, 9mobile) from smsgang.org to keep students online affordably.
📲 Command Directory
You control all these features directly from your WhatsApp "Message Yourself" chat:
⚙️ Core Controls
/bot status — Check bot health, active toggles, tracked presence, and settings.
/bot on | /bot off Globally toggle auto-replies on/off.
/anticall on|off Toggle automatic call blocker.
/antispam on|off Toggle filtering for unknown numbers.
/statusview on|off Toggle auto-viewing of contact statuses.
/help Render the custom interactive help menu.
👥 Contact Management
/add <number> <profile> [nickname] Add contact to auto-reply.
/remove <number|nickname> Remove contact.
/list View all configured contacts and birthdays.
/profile <number|nick> <profile> Update a contact's AI personality profile.
/pause <nick> | /resume <nick> Pause/resume auto-reply for a single contact.
/birthday <nick> <MM-DD> Add birthday for automated greetings.
⏰ Scheduling & Summaries
/schedule <nick> <HH:MM> <msg> Schedule a message.
/schedules View list of pending scheduled messages.
/summary Get a manual summary/digest of unread messages over the last 24 hours.
/summarize <nick> Let AI analyze and summarize your recent chat history with a contact.
📣 Campaign & Marketing (Admin Only)
/export Export harvested contact database as a .vcf document.
/broadcast <msg> Send a message to all registered contacts.
/tagall [msg] Mention everyone in a group chat.
/campaign text <msg> | /campaign image — Configure campaign text and media.
One thing I'd add: keep a short log of every auto-reply (the question, the answer, which part of the doc it used), and have the owner skim it weekly. The weak answers show you exactly which line in the doc to fix.
With leads coming in from several channels, the step I'd check first is duplicates: the same person on WhatsApp and on the web form should end up as one record, matched on a cleaned phone number. Otherwise the Slack alerts double up and two people chase the same lead.
RAG support agent - n8n workflow with knowledge-base search, memory and OpenAI chat. Screenshot shows the live automation nodes that answer customer questions from stored docs instead of guessing.
Good point — I do set a minimum match score threshold before replying. If the top result is below it, the agent says it couldn't find a confident answer and offers to hand off to a person instead of stretching a loosely related doc. Still tuning the threshold based on eval feedback. Appreciate the suggestion!