DEXPULL — Local AI Hub
Back to product

Product documentation

Dexpull WhatsApp Automation

A self-hosted WhatsApp CRM with Meta Cloud API, LAN access, shared inbox, pipelines, broadcasts, no-code automations and on-device voice transcription.

Paste this link into ChatGPT and it will understand the full setup:/api/docs/whatsapp-automation

Dexpull WhatsApp Automation — full setup and usage guide

A Dexpull-branded, self-hosted WhatsApp CRM based on the MIT-licensed wacrm template. It uses the official Meta WhatsApp Business Cloud API, runs on your Windows machine, is reachable on your local network, and transcribes voice on your own device.

1. What you need

Windows 10/11, Node.js 22.12+ and npm 10+
A Supabase project (free tier is enough)
A Meta for Developers Business app with the WhatsApp product
A phone number you control that is not registered on another WhatsApp Business account

2. Download and install

Sign in at https://dexpull.in
Open Products -> Dexpull WhatsApp Automation
Issue a free 30-day key and press "Download for localhost"

Extract and install:

Expand-Archive .\dexpull-whatsapp-automation.zip -DestinationPath .\dexpull-whatsapp-automation -Force
cd .\dexpull-whatsapp-automation
setup-windows.cmd

setup-windows.cmd installs npm packages, creates .env.local from the example and generates a 64-character ENCRYPTION_KEY for AES-256-GCM token encryption.

3. Supabase

Project Settings -> API: copy URL, anon key and service-role key into .env.local
Apply every file in supabase/migrations in order (001 through 060). Example:
  npx supabase link --project-ref <your-project-ref>
  npx supabase db push
Authentication -> URL Configuration:
  Site URL: http://localhost:3100
  Redirect URLs: http://localhost:3100/auth/callback
                 http://<lan-ip>:3100/auth/callback

The first account to sign up becomes the owner. Invite teammates from Settings -> Team.

4. Get your own Meta Cloud API credentials

You must register your own WhatsApp Business number; no shared Dexpull number is provided.

Open https://developers.facebook.com/apps and create a Business app
Add the WhatsApp product
In WhatsApp -> API Setup copy the test Phone Number ID, WABA ID and temporary token
For production create a System User with WhatsApp permissions and a long-lived token
App Settings -> Basic: copy App Secret into .env.local as META_APP_SECRET
WhatsApp -> Configuration -> Webhook:
  Callback URL: https://<public-https-host>/api/whatsapp/webhook
  Verify token: a long random string you also enter in Settings -> WhatsApp
  Subscribe to the messages field

Meta requires a public HTTPS webhook. On your LAN, publish port 3100 with Cloudflare Tunnel or another HTTPS tunnel and use that public URL as the callback. The access token, Phone Number ID, WABA ID and verify token are entered in the app UI, never in .env.local.

5. Start on localhost or LAN

start-whatsapp.cmd

The script detects your LAN IPv4, writes ALLOWED_DEV_ORIGINS and NEXT_PUBLIC_SITE_URL into .env.local, then starts Next.js on 0.0.0.0:3100.

This PC:        http://localhost:3100
Same network:   http://<lan-ip>:3100
Webhook:        public HTTPS tunnel to /api/whatsapp/webhook

Manual equivalent:

npm run dev -- -H 0.0.0.0 -p 3100

6. Frontend and backend configuration

frontend configuration lives in .env.local:

NEXT_PUBLIC_SUPABASE_URL=https://<ref>.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=...
NEXT_PUBLIC_SITE_URL=http://<lan-ip>:3100
NEXT_PUBLIC_APP_LOCALE=en
NEXT_PUBLIC_VOICE_MODEL=Xenova/whisper-tiny.en
ALLOWED_DEV_ORIGINS=<lan-ip>:3100

server-only values:

SUPABASE_SERVICE_ROLE_KEY=...
META_APP_SECRET=...
ENCRYPTION_KEY=64-hex-characters
AI_PROVIDER_ALLOWED_PRIVATE_HOSTS=127.0.0.1,localhost   (optional, for local Ollama AI replies)

The app uses Next.js 16, React 19, Tailwind v4 and Supabase SSR. The UI ships in English, Korean, Brazilian Portuguese and Spanish through NEXT_PUBLIC_APP_LOCALE. Light is default; dark is pure black.

7. First use

Sign up at http://localhost:3100
Settings -> WhatsApp: enter Phone Number ID, WABA ID, access token and verify token
Save: the app verifies and registers the number with Meta
Inbox: receive messages through the webhook, assign conversations, reply and add notes
Contacts: import CSV, add tags and deduplicate
Pipelines: create deals linked to conversations
Broadcasts: use Meta-approved templates with delivery and read receipts
Automations / Flows: build triggers, branches, waits and webhooks
Agents -> AI Playground: connect your own AI key or an OpenAI-compatible local endpoint

8. Voice recognition (local)

In the Inbox composer, open the attachment menu and choose "Transcribe with local AI":

Up to 10 seconds of microphone audio is recorded in the browser
Whisper Tiny (Xenova/whisper-tiny.en) decodes and transcribes it with Transformers.js
Inference stays on your device; the model is downloaded once and then cached
The recognized text is inserted into the message box for you to edit before sending

No audio or transcript is uploaded for transcription. Sending Ogg/Opus voice notes still works.

9. File structure

dexpull-whatsapp-automation\
  setup-windows.cmd            one-time installer
  start-whatsapp.cmd           LAN launcher on port 3100
  scripts\set-lan-env.ps1      LAN IP detector
  .env.local.example           all configuration options
  docs\DEXPULL_GUIDE.md        full local guide
  docs\whatsapp-connection-troubleshooting.md
  messages\                    UI catalogues (en, ko, pt, es)
  public\dexpull-logo*.svg     Dexpull brand marks
  src\app\
    (auth)\                    login, signup, reset
    (dashboard)\               inbox, contacts, pipelines, broadcasts,
                               automations, flows, agents, settings
    api\whatsapp\              config, webhook, send, broadcast, media, health
    api\ai\                    drafts, auto-reply, knowledge, playground
    api\v1\                    public REST API
    icon.tsx                   Dexpull favicon
  src\components\layout\sidebar.tsx  Dexpull logo
  src\components\inbox\message-composer.tsx  voice notes + local transcription
  src\lib\whatsapp\meta-api.ts         Meta Cloud API client
  src\lib\whatsapp\encryption.ts        AES-256-GCM token encryption
  src\lib\ai\                          AI assistant providers
  supabase\migrations\                 60 SQL migrations
  mcp-server\                          MCP bridge for external AI assistants

10. Verification commands

npm run typecheck
npm test
npm run build
npm run dev -- -H 0.0.0.0 -p 3100

11. Troubleshooting

Webhook rejected             META_APP_SECRET must match the Meta app that signed the request
LAN page blocked             ALLOWED_DEV_ORIGINS must contain <lan-ip>:3100; re-run start-whatsapp.cmd
Supabase redirect error      add the LAN URL to Authentication -> URL Configuration
Voice model download fails   first use needs internet; after caching transcription is offline
AI local endpoint blocked    set AI_PROVIDER_ALLOWED_PRIVATE_HOSTS and restart
Missing database tables      apply all supabase/migrations in filename order before signup

12. Optional Gemini and the Android app

Users can paste their own Gemini API key in Settings -> AI. It is encrypted at rest and used only server-side through the Gemini Interactions API; the Android app never sees it.

An installable Android WebView app is available as dexpull-whatsapp-debug.apk. Open it, press Settings and enter the LAN URL of the PC running this product, for example http://192.168.1.5:3100. The phone must be on the same Wi-Fi, and Supabase redirect URLs must include http://<lan-ip>:3100/auth/callback.

13. Paste this into ChatGPT

https://dexpull.in/api/docs/whatsapp-automation

Copy that URL into ChatGPT. It returns plain Markdown with Content-Type text/markdown, including the Meta registration steps, env vars, ports, paths, file structure and troubleshooting commands.