Block 1 - Dashboard Webhook
- Type / Role
- n8n-nodes-base.webhook - webhook
- Config choices
- Version 1
Coupon Bot Dashboard & WhatsApp Management System A complete bilingual admin dashboard and WhatsApp bot solution for managing discount coupons, partner companies, and customer conversations through...
n8n-nodes-base.webhook, n8n-nodes-base.respondtowebhook, n8n-nodes-base.postgres, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.switch, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Mira Melhem.
Original n8n.io sourceA complete bilingual admin dashboard and WhatsApp bot solution for managing discount coupons, partner companies, and customer conversations through an intuitive web interface and automated chatbot.
This workflow provides a comprehensive coupon management system with dual interfaces: a modern Vue.js admin dashboard for managers and an interactive WhatsApp bot for customers. It handles everything from company onboarding and coupon issuance to real-time customer support and conversation tracking.
/webhook/coupon-bot/execute-init to create all tables/webhook/coupon-bot/dashboard, go to Settings, and set your admin phone number/webhook/whatsapp/webhook/coupon-bot/dashboardOnce your phone is set as admin, send any message to the bot to access:
/coupon-bot/dashboard)Serves the complete Vue.js 3 admin interface with:
/coupon-bot/api/*)RESTful API routes for dashboard operations:
POST /stats - System analytics (customers, messages, records, companies)POST /companies - CRUD operations for partner companiesPOST /coupons - CRUD operations with advanced fields (percentage, expiry, limits)POST /inbox - Retrieve unique customer conversationsPOST /history - Fetch complete chat history for a customerPOST /settings - Manage admin phone and message templatesPOST /customers - Customer records retrievalPOST /records - Coupon redemption tracking/coupon-bot/execute-init, /coupon-bot/migrate)/webhook/whatsapp)Processes incoming WhatsApp messages with:
- customer_id (SERIAL PRIMARY KEY)
- name (VARCHAR 255)
- phone (VARCHAR 50, UNIQUE)
- selected_sites (TEXT)
- created_at (TIMESTAMP)
- updated_at (TIMESTAMP)
- company_id (SERIAL PRIMARY KEY)
- name (VARCHAR 255, NOT NULL)
- info (TEXT)
- coupon_id (SERIAL PRIMARY KEY)
- company_id (INT, FOREIGN KEY)
- coupon_text (TEXT, NOT NULL) -- The actual coupon code
- coupon_value (NUMERIC 10,2)
- is_percentage (BOOLEAN DEFAULT FALSE)
- has_max (BOOLEAN DEFAULT FALSE)
- max_value (NUMERIC 10,2)
- is_max_percentage (BOOLEAN DEFAULT FALSE)
- has_min_purchase (BOOLEAN DEFAULT FALSE)
- min_purchase_value (NUMERIC 10,2)
- is_on_items_quantity (BOOLEAN DEFAULT FALSE)
- registration_date (TIMESTAMP)
- has_expiry (BOOLEAN DEFAULT FALSE)
- expiry_date (TIMESTAMP)
- other_info (TEXT)
- record_id (SERIAL PRIMARY KEY)
- customer_id (INT, FOREIGN KEY)
- company_id (INT, FOREIGN KEY)
- coupon_id (INT, FOREIGN KEY)
- created_at (TIMESTAMP)
- message_id (SERIAL PRIMARY KEY)
- customer_id (INT, FOREIGN KEY, nullable)
- sender_phone (VARCHAR 50)
- sender_name (VARCHAR 255)
- external_message_id (VARCHAR 255)
- message_text (TEXT, NOT NULL)
- message_type (VARCHAR 50 DEFAULT 'text')
- direction (VARCHAR 20 DEFAULT 'INCOMING')
- is_from_customer (BOOLEAN DEFAULT TRUE)
- created_at (TIMESTAMP)
- key (VARCHAR 50 PRIMARY KEY)
- value (TEXT)
-- Keys: admin_phone, welcome_message, end_message
- phone (VARCHAR 50 PRIMARY KEY)
- state (VARCHAR 50, NOT NULL)
- data (JSONB DEFAULT '{}')
- last_updated (TIMESTAMP)
The bot uses PostgreSQL sessions for conversation persistence:
IDLE - Default state, waiting for inputWAITING_COMPANY_NAME - Admin adding new companyWAITING_EDIT_COMPANY_SELECT - Admin selecting company to editWAITING_EDIT_COMPANY_NAME - Admin entering new company nameWAITING_DELETE_COMPANY_SELECT - Admin selecting company to deleteWAITING_ADD_COUPON_COMPANY - Admin selecting company for new couponWAITING_ADD_COUPON_TEXT - Admin entering coupon codeWAITING_ADD_COUPON_VALUE - Admin entering discount valueWAITING_EDIT_COUPON_SELECT - Admin selecting coupon to editWAITING_EDIT_COUPON_TEXT - Admin entering new coupon codeWAITING_DELETE_COUPON_SELECT - Admin selecting coupon to deleteEDIT_WELCOME - Admin updating welcome messageEDIT_END - Admin updating end messageTags: #n8n #whatsapp #coupons #dashboard #vuejs #postgresql #automation #customer-service #bilingual
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
Showing the first 24 of 130 workflow blocks. Download the JSON for the full node graph.
| Workflow | Manage coupon campaigns and customer chats with WhatsApp and PostgreSQL |
|---|---|
| Complexity | advanced |
| Nodes | 130 |
| Categories | CRM, AI Chatbot |
| Author | Mira Melhem |
| Published | 15 Feb 2026 |
Use the JSON export at /data/workflows/13406/13406.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Coupon Bot Dashboard & WhatsApp Management System A complete bilingual admin dashboard and WhatsApp bot solution for managing discount coupons, partner companies, and customer conversations through...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your CRM, AI Chatbot use case.