Agentic WhatsApp Customer Engagement & Lead Automation Platform

Full-Stack Agentic AI · Open-Source Generative AI · RAG · Voice & Media Intelligence · ERP / CRM Integration · Composable CMS & Marketing Cloud

Date: September 2026

Provider: Associative, Pune, Maharashtra, India

Welcome to the future of enterprise communication. Associative proudly presents our fully completed and ready-to-deploy Agentic WhatsApp Customer Engagement & Lead Automation Platform. Designed for businesses looking to scale without limits, this system offers a highly secure, self-hosted AI architecture that eliminates recurring third-party API costs while providing state-of-the-art intelligent automation.

Below are the complete details regarding commercials, project timelines, legal policies, and the deep technical architecture of the platform.

PART 1: COMMERCIALS, TIMELINE & LEGAL POLICIES

1.1 Project Investment & Deployment Timeline

Total Deployment Time:

This is a fully completed, ready-to-deploy enterprise product. The end-to-end customization, integration, local AI model provisioning, testing, and deployment timeline is 18 to 24 weeks from the date of order confirmation and receipt of the advance payment. This accounts for your bespoke integrations, secure server setups, and rigorous testing before the final handover.

One-Time License, Setup & Deployment Cost:

Due to the enterprise-grade complexity of deploying a 100% open-source, self-hosted Agentic AI architecture (which completely eliminates all recurring third-party AI API fees for your business), the one-time engineering, licensing, and implementation cost is structured as follows:

1.2 Estimated Monthly Operating Costs (Cloud Hosting & Messaging APIs)

Note: The following are estimated direct operational costs for cloud infrastructure (AWS/GCP) to self-host the Open-Source AI models, plus the Meta WhatsApp Cloud API messaging costs. These are paid directly by you to your chosen cloud/API providers.

1.3 Maintenance, Support & Updates

1.4 Client Onboarding Details

To initiate the deployment, kindly provide us with the following details:

  1. Full Name: For generating the invoice.

  2. Company Name: If you require the invoice to be billed to your company.

  3. GST Number: If applicable, so you can claim GST Input Tax Credit (ITC).

  4. Mobile and WhatsApp Number: For regular work-related discussions and updates.

  5. Email ID: For sharing invoices, important communications, and handing over the final project source code.

  6. Complete Postal Address: Your current business or residential address for sending any documents and project files via courier.

  7. Accepted Payment Modes: We accept safe electronic bank payments within India via RTGS, NEFT, IMPS, UPI, PayPal, and Bank Transfer.

To Initiate Your Order:

1.5 Terms of Service & Policies

1.6 Legal Protections & Licensing

To protect the integrity of our source code and bespoke architecture, the deployment is governed by strict legal frameworks:

Measure Description
Master Service Agreement (MSA) A strict MSA will be drafted explicitly defining severe financial penalties for reverse engineering, code extraction, or unauthorized distribution of the application.
Source Code Ownership Associative retains full intellectual property (IP) and source code ownership of the core architecture.
EULA & Licensing The app is legally licensed solely for the client’s specific brand and end-users. Repackaging, reselling, or white-labeling the application to third parties is strictly prohibited.
License Definition Delivery is strictly classified as a “Single-Entity, Non-Transferable, Non-Sublicensable Lifetime License for Internal Business Operations.”
Compiled Production Build Clients receive the compiled, minified, and heavily obfuscated production build of the React.js web application. The web source is strictly bound to the client’s authorized domain, ensuring unauthorized copying or local reverse engineering of the frontend is prohibited and non-functional.
API Whitelisting & Obfuscation Hardcoded, encrypted API tokens ensure the apps can only communicate with the client’s registered domain. Binaries and React web builds are heavily obfuscated to make reverse-engineering nearly impossible.

PART 2: TECHNICAL PLATFORM OVERVIEW · v4

Architecture Summary

v4 is engineered to utilize 100% open-source and free-to-use technologies. It includes a Strapi-powered dynamic knowledge base, open-source Mautic marketing automation syncing, proactive AI-initiated outbound campaigns, live call sentiment analysis with auto-escalation, and approved ERP write actions (leave, tickets, expense claims). This completed architecture eliminates third-party AI APIs (OpenAI, Twilio, HubSpot, Adobe) in favor of self-hosted, royalty-free alternatives.

1. Platform Overview

The Agentic WhatsApp Customer Engagement & Lead Automation Platform is a fully built AI-powered automation system that connects a business’s WhatsApp communication channel — and its phone line as well — to an intelligent agent capable of understanding customers, answering questions, qualifying leads, and escalating to a human when necessary.

Rather than replying with fixed, scripted messages, the platform uses a locally hosted Open-Source Large Language Model (LLM) coordinated by an agentic workflow. The system does not just generate text — it listens, sees, plans, retrieves, decides, acts, and remembers, within a controlled and auditable framework, ensuring 100% data sovereignty.

Core capabilities:

2. Problem Statement

Businesses that rely on WhatsApp and phone calls for customer communication consistently run into the same operational problems as volume grows:

3. Solved Objectives

4. Major Features Delivered

A. WhatsApp Integration

B. Voice, Image & Document Understanding (100% Open-Source)

C. AI Voice Call Agent

D. CRM & Calendar Automation

E. Enterprise Self-Service — Frappe CRM & ERPNext

F. Dynamic Knowledge Base via Strapi

G. Marketing Cloud Sync — Mautic

H. Proactive Outbound Campaigns

I. Live Sentiment Analysis on Calls

J. ERP Write Actions

5. Agentic AI Capabilities

The platform uses multiple specialized AI agents coordinated through a central Supervisor Agent.

Agent Responsibilities
Supervisor Agent Intent detection, agent routing, workflow coordination, tool selection, error handling, across chat and voice.
Knowledge Agent RAG retrieval from the knowledge base, product/service information, producing grounded answers.
Media Understanding Agent Transcribing voice notes (Faster-Whisper), analyzing images/documents (LLaVA).
Sales/Lead Agent Detecting purchase intent, extracting structured lead data, syncing leads to Frappe CRM.
Support Agent General customer support, FAQs, common customer issues.
Voice Call Agent Answering inbound phone calls via SIP, running real-time STT/TTS.
Outbound Campaign Agent Initiating outbound WhatsApp messages or voice calls for reminders/follow-ups.
Sentiment Monitoring Agent Scoring caller sentiment turn-by-turn and notifying the Human Escalation Agent on frustration.
Scheduling Agent Checking calendar availability via Cal.com and booking meetings.
Enterprise Data Agent Managing OTP verification, fetching authorized fields from ERPNext, executing ERP write actions.
Human Escalation Agent Detecting low confidence, handling explicit requests for a human, triggering live call transfers.

Example Tool Calling: search_knowledge(), transcribe_voice_message(), analyze_image(), create_lead(), sync_to_crm(), send_whatsapp_otp(), get_employee_details(), book_calendar_event(), submit_leave_application().

6. Knowledge Base and RAG

Retrieval-Augmented Generation (RAG) grounds AI responses in real business information.

7. Voice & Media Intelligence

8. AI Voice Call Agent

9. Frappe CRM & ERPNext Integration

Data stays on the company’s own infrastructure.

10. OTP-Verified Self-Service on WhatsApp

Employee Self-Service:

  1. Employee sends Employee ID.

  2. ERPNext check ensures mobile number matches WhatsApp sender.

  3. OTP is sent on WhatsApp.

  4. Employee replies with OTP (5-minute expiry).

  5. Verified 15-minute session opens. Details fetched live from ERPNext.

Customer Invoice Lookup:

  1. Customer sends Invoice ID + WhatsApp number.

  2. System matches invoice contact mobile to WhatsApp sender.

  3. OTP verification flow.

  4. Invoice details fetched live from ERPNext.

Security Controls: Deterministic verification in app code (not LLM), rate-limiting, masked data logging.

11. Unique & Future-Proof Capabilities

12. Business Persona Configuration

Customize AI agent name, role, tone (Professional, Friendly, Casual), language (English, Hindi, Marathi, Hinglish), voice persona, and escalation rules.

13. Lead Generation and Qualification

AI progressively collects structured data (Name, Service, Requirement, Budget, Timeline) and outputs JSON, instantly syncing it to Frappe CRM as a new Lead/Deal.

14. Human Takeover

Dashboard allows live monitoring of chats/calls. One-click human takeover pauses the AI, allows the human to chat, and resumes AI handling when finished.

15. React Dashboard

Operational control centre featuring:

16. AI Playground

Sandbox environment to test prompts, agent routing, RAG retrieval, and simulated OTP flows without affecting live customers.

17. Analytics and Monitoring

Tracks resolution rates, human escalations, leads generated, API latency, OTP success rates, Strapi sync freshness, and OpenTelemetry tracing for full system observability.

18. Security and Governance

19. Technology Stack (100% Open Source)

Layer Technology
Frontend UI React, TypeScript, Vite, Tailwind CSS, Zustand
Backend API Python, FastAPI, Pydantic, SQLAlchemy, Alembic
AI LLM Local Llama 3 / Mistral (via vLLM or Ollama)
Agent Orchestration LangGraph, LangChain
Vision Model LLaVA / Qwen-VL (Local Deployment)
STT / TTS Faster-Whisper, Piper TTS / Coqui
RAG / DB PostgreSQL, pgvector, PyMuPDF
Telephony FreeSWITCH / Jambonz
Messaging WhatsApp Business Cloud API
CRM / ERP Frappe CRM, ERPNext, Frappe HR (Frappe REST API)
CMS / Marketing Strapi, Mautic
Calendar Cal.com
Queue / Background Redis, Background Workers
Security & DevOps JWT, RBAC, Docker, OpenTelemetry

20. Complete System Architecture

21. End-to-End Examples

22. Data Model Overview

Entity Purpose
users / workspaces Platform users and multi-tenant boundary.
business_profiles Business persona configuration.
contacts / conversations Customer profiles and message threads.
messages / media_assets Inbound/outbound texts, stored voice notes, images.
calls / call_transcripts Record of phone calls, duration, transcripts.
agents / agent_configs AI agent definitions and parameters.
knowledge_sources / documents PDFs, URLs, Strapi content chunks (pgvector).
leads / crm_syncs Captured leads and sync status with Frappe CRM.
erp_connections / otp_challenges Self-hosted ERPNext connection data, hashed OTPs.
verified_sessions / erp_lookup_logs Active verified identities, audit of ERP fetches.
strapi_sources / marketing_syncs Connected Strapi CMS and Mautic marketing sync logs.
outbound_campaigns / sends Proactive campaign configs and delivery logs.
erp_write_requests Drafted/submitted ERP actions (leave, expense, tickets).

23. Backend API Overview

Endpoint Purpose
POST /api/v1/auth/login Authenticate user and issue JWT.
GET /api/v1/conversations List conversations for workspace.
POST /api/v1/media/analyze Transcribe voice note / analyze image.
POST /api/v1/voice/webhook Receive real-time call events/audio stream.
POST /api/v1/knowledge/upload Upload PDF to knowledge base.
POST /api/v1/crm/sync Sync lead to Frappe CRM.
POST /api/v1/integrations/erpnext/connect Register self-hosted ERPNext server credentials.
POST /api/v1/knowledge/strapi/connect Register Strapi instance and content types.
POST /api/v1/marketing/mautic/connect Connect Mautic for marketing automation.
POST /api/v1/erp/requests Submit confirmed ERP write action (leave/expense).
POST /api/v1/calendar/book Book an event via Cal.com.
POST /api/v1/whatsapp/webhook Receive inbound WhatsApp events from Meta.

24. Project Folder Structure

Plaintext

backend/
├── agents/          # Supervisor and specialized agent implementations
├── workflows/       # LangGraph workflow/state graph definitions
├── rag/             # Chunking, embeddings, retrieval pipeline
├── media/           # Local Whisper STT, LLaVA image/document understanding
├── voice/           # FreeSWITCH streaming, live call handling
├── whatsapp/        # WhatsApp Cloud API client & webhook handlers
├── tools/           # Tool definitions callable by agents
├── services/        # Business logic (leads, conversations, etc.)
├── database/        # SQLAlchemy models, Alembic migrations
├── security/        # Auth, RBAC, permission checks
├── integrations/
│   ├── crm/         # CRM adapter (Frappe CRM)
│   ├── frappe/      # Frappe REST client (ERPNext)
│   ├── calendar/    # Cal.com calendar booking client
│   └── webhooks/    # Generic outbound webhooks
├── verification/    # OTP issue/verify, verified sessions, rate limits
├── cms/             # Strapi client, publish-webhook handler
├── marketing/       # Mautic (Marketing Automation) client
├── campaigns/       # Outbound campaign scheduling, trigger evaluation
├── sentiment/       # Live call sentiment scoring
├── observability/   # Logging, tracing (OpenTelemetry)
└── config/          # Environment & settings management

frontend/
├── components/      # Reusable UI components
├── pages/           # Route-level views
├── layouts/         # Page/dashboard layout shells
├── hooks/           # Custom React hooks
├── services/        # API client layer
├── store/           # Zustand client-state stores
├── types/           # Shared TypeScript types
└── features/        # Feature-scoped modules (leads, inbox, calls, etc.)

tests/               # Backend and frontend test suites
docs/                # Technical documentation
docker/              # Dockerfiles and compose configuration
scripts/             # Developer and operational scripts

25. System Architecture & Deployment Modules

The platform is fully engineered and deployed across 33 sequential architectural modules:

Phase Architecture Module Main Technologies Delivered Capability
1 Project Setup Git, Docker Runnable empty project skeleton
2 FastAPI Backend FastAPI, Pydantic Running backend service
3 PostgreSQL Database PostgreSQL, SQLAlchemy Persistent data layer
4 React Dashboard React, TypeScript, Vite Navigable dashboard skeleton
5 Auth & Workspace JWT, RBAC Multi-tenant login system
6 WhatsApp Integration WhatsApp Cloud API Working WhatsApp message loop
7 Local LLM Integration vLLM, Llama 3 Basic AI text responses
8 LangGraph Supervisor LangGraph Working agent router
9 RAG pgvector, open-source embeddings Grounded knowledge answers
10 Specialized Agents LangGraph, LangChain Multi-agent conversation handling
11 Lead Management FastAPI, PostgreSQL Structured lead pipeline
12 Human Takeover WebSockets Functional human-in-the-loop system
13 Tools & Webhooks Tool framework Controlled agent actions
14 Redis Processing Redis Scalable async message handling
15 Security JWT, RBAC, validation Production-grade security baseline
16 Testing pytest, Playwright Automated test coverage
17 Observability OpenTelemetry End-to-end request visibility
18 Docker & Deployment Docker, Docker Compose Deployable production build
19 Media Understanding LLaVA, OCR AI understands images & documents
20 Voice Messages Faster-Whisper, Piper TTS Voice notes handled like text
21 AI Voice Call Agent FreeSWITCH, Streaming STT/TTS AI answers & holds live phone calls
22 Frappe CRM Integration Frappe REST API Leads sync to self-hosted Frappe CRM
23 Calendar Booking Cal.com API AI books meetings autonomously
24 CRM Provider Abstraction Adapter pattern, FastAPI Pluggable CRM layer
25 ERP Integration User Frappe REST API Integration keys, access scope defined
26 ERPNext Connector httpx, Circuit breaker Secure read access to employee/invoice data
27 OTP Verification Service Redis, WhatsApp Auth templates Verified-identity sessions
28 Employee Self-Service LangGraph, ERPNext connector OTP-verified ERP look-ups on WhatsApp
29 Strapi Knowledge Source Strapi API, webhooks Live, editable knowledge base
30 Mautic Integration Mautic API Leads flow into marketing automation
31 Proactive Campaigns Background worker, Voice Call AI-initiated reminders and follow-ups
32 Live Sentiment Analysis Streaming transcript scoring Frustrated callers auto-escalate
33 ERP Write Actions Frappe REST API (write) Verified employees can submit leave/expenses

26. MVP vs Advanced Version Breakdown

27. What Makes This Product Different From a Normal Chatbot?

Traditional Chatbot This Ready-to-Deploy Agentic AI
Fixed, scripted responses Open-Source LLM reasoning-based responses
Third-party API dependency (Expensive) 100% Local AI Models (Free/Zero-recurring cost)
No autonomous workflow Multi-step agentic workflow with Supervisor
Text-only understanding Multimodal (Text, Voice, Images via LLaVA/Whisper)
No phone/voice capability Answers and holds live phone calls (FreeSWITCH)
No access to business records OTP-verified, live look-ups from self-hosted ERPNext
Read-only automation Can write to ERP (leave, expense) & proactively reach out
Static uploaded knowledge Live, headless-CMS backed knowledge (Strapi)

28. Platform Capabilities

29. Future Scope & Custom Expansions

While the base system contains 33 core architectural modules, the system is explicitly architected to support future custom expansions, including:

30. Technical Quality & Security Standards

Engineered as a production-ready enterprise product: Modular architecture, API-first design, Database migrations, Type safety (TypeScript, Pydantic), Input validation, Automated testing, Security by design, Observability (OpenTelemetry), and Privacy by design (100% self-hosted).

31. Important Terminology

32. Final Executive Summary

This ready-to-deploy product delivers a state-of-the-art Agentic AI automation platform for WhatsApp and telephony. By architecting the system exclusively on 100% open-source, self-hosted technologies (Llama 3, Frappe CRM, ERPNext, Mautic, Strapi, Cal.com, FreeSWITCH, Faster-Whisper, LLaVA), your business achieves absolute data sovereignty and completely eliminates recurring third-party AI API costs.

It transforms standard customer messaging into a proactive, multimodal, lead-qualifying, and ERP-integrated workforce multiplier, fully customized, integrated, and deployed within 18 to 24 weeks.

Agentic WhatsApp Customer Engagement & Lead Automation Platform | Associative Pune