Field Notes — WhatsApp & Automation

WhatsApp & Automation guides

21 articles on WhatsApp & Automation — documented from real client work by Naveen Gaur.

WhatsApp & Automation

Debugging Production WhatsApp Bots: Privacy LIDs, PostgREST Query Escaping, and Multi-Page State Machines

Architectural insights on resolving WhatsApp Limited Identifiers (@lid), Supabase PostgREST query parameter mutations, and multi-page batch session state.

Aug 3, 20265 min read
WhatsApp & Automation

WhatsApp Media Processing: Handling Image Buffers & Base64 Safely

Learn how to securely download media using Baileys downloadMediaMessage, convert it to base64, and transmit it to external APIs without exceeding Node.js memory limits.

Aug 1, 20263 min read
WhatsApp & Automation

WhatsApp Session Recovery: Implementing Exponential Backoff

Learn how to prevent WhatsApp account bans by implementing exponential backoff and circuit breakers for your Baileys bot during network outages.

Aug 1, 20263 min read
WhatsApp & Automation

Baileys vs WhatsApp Cloud API: Which Should You Use for Production?

A deep technical and financial comparison between the official WhatsApp Cloud API and the open-source Baileys WebSocket library.

Aug 1, 20263 min read
WhatsApp & Automation

Fixing Silent WebSocket Disconnects in Baileys (The Zombie Socket Problem)

How to detect silent connection drops (zombie sockets) in Node.js WebSocket apps. Move from heuristic message counting to strict socket polling.

Aug 1, 20263 min read
WhatsApp & Automation

Running Baileys in Production: The Advanced Guide

A deep dive into managing the Baileys WhatsApp Web library in production. Learn how to prevent memory leaks, avoid cluster mode pitfalls, and handle authentication scaling.

Aug 1, 20264 min read
WhatsApp & Automation

Securing WhatsApp Bot Utility Dashboards (Basic Auth)

Never expose your VPS utility dashboards to the public internet. Learn how to secure your Express.js status pages with Basic Authentication middleware.

Aug 1, 20263 min read
WhatsApp & Automation

Gemini Vision Integration: Evaluating Messy Handwriting via API

How to use Google's Gemini-2.5-Flash Vision model to parse handwritten math homework from WhatsApp images and return structured JSON.

Aug 1, 20263 min read
WhatsApp & Automation

Deploying a WhatsApp Bot on Oracle Cloud VPS

A step-by-step guide to provisioning, securing, and deploying a Node.js Baileys WhatsApp bot on Oracle Cloud's Always Free tier.

Aug 1, 20263 min read
WhatsApp & Automation

Oracle VPS vs Railway: Best Hosting for Baileys WhatsApp Bots

Comparing Oracle Cloud's Always Free ARM instances against Railway's developer experience for hosting stateful Node.js WhatsApp bots.

Aug 1, 20263 min read
WhatsApp & Automation

Monitoring WhatsApp WebSockets with PM2

How to configure PM2 for a Baileys Node.js WhatsApp bot. Learn how to manage memory limits, avoid cluster mode crashes, and rotate logs.

Aug 1, 20263 min read
WhatsApp & Automation

Production WhatsApp Automation (The Definitive Guide)

The complete architectural blueprint for building, deploying, and scaling Node.js WhatsApp bots for production using Baileys and Next.js.

Aug 1, 20264 min read
WhatsApp & Automation

Scaling WhatsApp Bots: From Single QR to Multi-Tenant Architecture

Roadmap for scaling Node.js Baileys clusters, managing dynamic QR code generation, and isolating authentication states across multiple business numbers.

Aug 1, 20263 min read
WhatsApp & Automation

Serverless + Stateful: The Hybrid WhatsApp Bot Architecture

Why you cannot run WhatsApp bots entirely on serverless platforms. Explore the hybrid architecture using a VPS Gateway and a Next.js Logic Engine.

Aug 1, 20263 min read
WhatsApp & Automation

Supabase vs Firebase for Node.js WhatsApp Bots

A technical comparison of Supabase (Postgres) and Firebase (NoSQL) for managing user state, AI logs, and session data in WhatsApp bots.

Aug 1, 20262 min read
WhatsApp & Automation

Handling Vercel Timeouts for Long-Running WhatsApp APIs

How to prevent Vercel Serverless functions from silently killing long-running tasks like AI evaluation in your WhatsApp bot using maxDuration and Promise.race.

Aug 1, 20263 min read
WhatsApp & Automation

Hardening WhatsApp Bots for Production: WebSockets, Timeouts, and Reconnects

A deep dive into stabilizing a custom Baileys WhatsApp bot on an Oracle VPS and Vercel. Learn how to handle WebSocket heartbeats, exponential backoffs, and serverless timeouts.

Aug 1, 20267 min read
WhatsApp & Automation

WhatsApp Channels Automation with Baileys: Fixing ACK 479, Media Uploads, and Protobuf Issues

A deep-dive technical engineering guide on automating WhatsApp Channels (Newsletters) using Baileys. Learn solutions for ACK 479 invisible media errors and protobuf download failures based on real-world deployment observations.

Jun 5, 20266 min read
WhatsApp & Automation

Custom WhatsApp CRM Integration: Architecture, Costs, and Tradeoffs

A technical consulting guide to integrating self-hosted WhatsApp gateways with enterprise CRMs (HubSpot and Zoho). Learn cost models, compliance tradeoffs, and solutions for real-world API latency issues.

Jun 4, 20266 min read
WhatsApp & Automation

How We Built an AI Homework Evaluation System Inside WhatsApp

A production architectural case study on building a multi-modal AI education assistant using Next.js, Supabase, Gemini Vision, and Baileys. Learn our decisions, tradeoffs, and failure resolutions.

Jun 3, 20266 min read
WhatsApp & Automation

Baileys WhatsApp Bot Tutorial (2026): Production Setup & Code

Learn to build a production-grade WhatsApp bot with Baileys, Node.js, and PM2. Step-by-step tutorial with rate-limiting, custom queues, and VPS deployment.

May 27, 202613 min read

Need hands-on help with WhatsApp & Automation?

Reading helps. Getting it solved today is better. I work directly with founders and agencies — no account managers, no wait queues.

Let's Talk →