Blog

Notes from the server.

What we're building on a cloud server of our own — the experiments, the tools, and what we learned along the way.

← All posts

Self-Hosted WhatsApp AI Agent for Indian SMBs (n8n + Claude)

17 Sept 2026 · whatsapp, n8n, self-hosting, ai-agents, india, smb

A self-hosted WhatsApp AI agent in India is a bot that answers your customers on WhatsApp around the clock — qualifying leads, sending order updates and replying in Hindi or regional languages — while running entirely on hardware you control. The pieces are now off-the-shelf: Meta's official WhatsApp Business Cloud API, the open-source automation tool n8n, and a large language model. Meta putting "Business AI on WhatsApp" for small businesses in India in the spotlight in May 2026 made this concrete, and community guides now show a fully-owned stack for a fraction of managed-platform pricing.

This post walks through what that stack looks like, why owning it matters, and how it runs on uniserver hardware.

Why this matters now

WhatsApp is where most Indian customers already are, and they expect a reply fast — including at 11pm and on holidays. Meta's own announcement pushed AI assistants on WhatsApp into the mainstream for small businesses in India, which means customers are increasingly comfortable talking to a business bot there.

The catch with managed platforms is that you rent everything: the workflow, the seats, and often the data. When your message volume grows, so does the bill, and your conversation history lives on someone else's servers. A self-hosted setup flips that. You pay for a server and the LLM calls you actually make, and the customer data stays with you — which matters a lot when those chats include phone numbers, addresses and order details.

What the stack looks like

The architecture is small and boring in the best way. Three parts do the work:

  • WhatsApp Business Cloud API — Meta's official channel. You get an approved business number and a webhook that fires whenever a customer messages you.
  • n8n — an open-source, self-hosted workflow tool. It receives the webhook, decides what to do, calls the LLM, and sends the reply back through the API. This is the "brain wiring," built visually rather than in code.
  • An LLM — the language model that reads the customer's message and drafts a reply. Anthropic's Claude models handle Hindi and regional languages well and follow instructions closely, which keeps replies on-brand.

A typical flow: a customer messages your number, Meta sends the webhook to your n8n instance, n8n adds your business context (products, hours, policies) and the chat history, asks the LLM for a reply, and posts that reply back to WhatsApp — usually in a few seconds. For anything the bot shouldn't handle alone, n8n can hand off to a human or log the lead into your CRM.

Managed platform vs. self-hosted

The trade-off is ownership and running cost versus convenience. Here's the honest comparison:

FactorManaged SaaS platformSelf-hosted on your hardware
Monthly costPer-seat or per-contact tiers that grow with usageRoughly ₹800–2,500/mo for server + LLM usage, per community guides
Data locationVendor's serversYour server
CustomizationLimited to the vendor's featuresFull — you edit the n8n workflow directly
Setup effortLow, mostly point-and-clickModerate one-time wiring
Vendor lock-inHighLow — open-source components

Meta's WhatsApp conversation charges apply in both cases; those are billed by Meta on top, based on your message volume and category. The self-hosted saving is on the software layer — you're not paying a platform markup or per-seat fee.

Running it on uniserver

n8n and an LLM connector don't need much muscle for a single business number, which makes them a natural fit for a self-hosted box. On uniserver, you run n8n as a service on your own hardware, keep its database local, and expose only the webhook endpoint the WhatsApp API needs. Your workflow, your chat logs and your API keys all sit on a machine you own.

A sensible order to set it up:

  1. Register and verify your business number on the WhatsApp Business Cloud API and grab the API credentials.
  2. Deploy n8n on your uniserver instance and give it a secure public webhook URL.
  3. Create the workflow: WhatsApp trigger → build context → LLM call → send reply.
  4. Add your business facts, tone and language rules to the system prompt so replies stay accurate.
  5. Add guardrails — a human handoff path, and logging for every conversation.
  6. Test with your own number across Hindi, English and a regional language before going live.

Because n8n is visual, iterating later — adding an order-status lookup, a lead form, a festival-hours message — is editing a workflow, not shipping code.

Keep it safe and useful

A few practical guardrails keep an always-on agent from embarrassing you:

  • Ground it in real facts. Feed the LLM your actual catalogue, prices and policies so it doesn't improvise answers.
  • Set an escape hatch. When confidence is low or a customer asks for a human, route to a person.
  • Log everything. Keep conversation history locally so you can audit replies and improve prompts.
  • Watch your costs. LLM usage scales with volume; cap or monitor it so a busy day doesn't surprise you.
  • Handle data responsibly. Since chats hold personal details, restrict who can access the server and back up your database.

Start narrow — one job, like qualifying inbound leads or answering "where is my order" — and expand once it's reliable.

Frequently asked questions

Is a self-hosted WhatsApp AI agent legal to run in India?

Yes, when you use Meta's official WhatsApp Business Cloud API rather than unofficial automation of the consumer app. You register a business number, get it approved, and connect it to your own n8n workflow. This keeps you within WhatsApp's terms while the logic runs on your server.

Can it reply in Hindi and other regional languages?

Yes. Modern LLMs handle Hindi and many Indian regional languages, so the agent can detect the customer's language and answer in it. You can also constrain replies to your approved tone and business facts through the system prompt.

What does it cost to run per month?

Community guides describe a fully-owned stack running for roughly ₹800–2,500 per month, mostly server hosting plus LLM API usage. WhatsApp conversation charges from Meta apply separately depending on volume and category. There's no per-seat SaaS fee because you own the workflow.

Do I need to know how to code?

Not deeply. n8n is a visual workflow builder, so most of the wiring is drag-and-drop with a few configuration fields. You'll need basic comfort with API keys, webhooks and a server, or someone who can set those up once.

How long does setup take?

The core flow — trigger, context, LLM call, reply — can be wired in an afternoon once your WhatsApp number is approved. The approval and business verification with Meta usually takes the most calendar time. Tuning prompts and adding handoffs is ongoing but incremental.

Get in touch

If you're weighing a self-hosted WhatsApp agent for your business, we're happy to talk through what it would take on your own hardware — no pressure, just a straight answer. Reach us at /#contact.

Sources

Building something?

Tell us about it — we read every message.

Get in touch