Published on
FeaturedPersonal ProjectCompleted

AI Agent Chat Bot WhatsApp

By Samsul Hadi @Threads
AI Agent Chat Bot WhatsApp

An AI-powered, multi-tenant WhatsApp chatbot platform that lets businesses register and deploy their own bots in minutes. Built around a reusable automation template, the system clones and customizes workflows per company—no manual rebuilding for each client—while keeping the logic consistent and secure.

What It Does

  • Template-based automation: a master n8n workflow is cloned and parameterized for each new company (names, numbers, KB endpoints, secrets).
  • AI answers, not scripts: GPT-backed agents respond to FAQs and domain questions using company data (KB/FAQ/API), with guardrails for tone and escalation.
  • Scalable onboarding: self-serve registration; bots are provisioned dynamically and connected to the company’s WhatsApp line.
  • Consistent operations: common conversation logic (greetings, fallback, handoff hooks) enforced across tenants, with per-tenant content.

How It Works

  1. Sign-up: a company registers and provides basic profile + data sources (FAQ, endpoints, or files).
  2. Provision: the platform clones a master n8n workflow, injects tenant variables, and binds WhatsApp via Waha.
  3. Run: messages from WhatsApp hit Laravel webhooks → routed to n8n → GPT agent composes replies using the company’s data.
  4. Operate: rate-limits, error retries, and minimal logging keep conversations reliable without overloading providers.

Capabilities

  • FAQ & inquiry handling: instant answers, clarifying questions, and polite fallbacks.
  • Flow blocks: lead capture, basic order/status check, appointment intent (extensible per tenant).
  • Multi-tenant isolation: per-company secrets, numbers, and data sources.
  • Operational hooks: optional human handoff, tag/label support, and simple closures.

Tech & Architecture

  • Channel: WhatsApp via Waha.
  • Orchestration: n8n (template cloning, routing, retries).
  • AI: GPT (agentic replies with company context via APIs/KB).
  • Backend: Laravel (tenant sign-up, admin, webhooks, config store).
  • APIs: company data connectors exposed as authenticated endpoints.

Outcome

Businesses can launch a WhatsApp AI agent rapidly, reduce manual support load, and keep responses consistent with their latest data—without per-client workflow rewrites.

Status

Completed (template + auto-provisioning delivered; ready for tenant onboarding and extensions).