Headless WhatsApp & Alerts

Headless WhatsApp PDF dispatches & Real-Time app Alerts

Automated Message Gateway

Keep company operations aligned. Dispatch in-app notification alerts and schedule automated WhatsApp notifications containing PDFs and check-in reminders.

Book Live Demo
MINDRON ERP // WEB DISPATCH
GATEWAY STANDBY
DELIVERY SUCCESS96.5% Ratio
PUPPETEER STATELocalAuth Scoped
FILE-LOCK WRAPIgnored Deletes
LAST TRIG: Invoice Send INTEGRATION ON
Operations Upgrade

Automate Client WhatsApp PDF Alerts

Ditch paper mailings, manual invoice PDF attachments, and missing attendance reports.

Process Area
Traditional Setup (Manual SMS & E-Mails)
WhatsApp Gateway & Alerts Module
Invoice Dispatches
Sales invoices are printed, scanned, and emailed manually, creating a bottleneck.
WhatsApp PDF Gateway
Triggers automated WhatsApp alerts attaching invoice PDFs and tracking delivery receipts.
Attendance Alerts
Operators clock-in late. Managers check spreadsheets hours later to notice the delay.
Real-Time App Toasts
WebSocket broadcasts immediate toasts to active managers when shifts exceed buffer limits.
Delivery Receipts
WhatsApp alerts are sent, but verification of receipt or failure is impossible.
Outbound Status Logs
Headless browser reports message delivery statuses (Sent, Delivered, Read) for audit review.
Session QR Limits
Headless browser sessions stay open, leaking server RAM and CPU performance.
60s Watchdog timers
Automatically terminates Puppeteer workers if QR code is not scanned within 1 minute.
Console Details

Core Messaging Modules

A secured headless engine routing invoice files, transaction logs, and real-time app notification trays.

WhatsApp Headless Browser

whatsapp-web.js utilizes Puppeteer instances to authenticate numbers with QR base64 codes.

60s QR Watchdog

Automatically shuts down connection queues if scan triggers aren't verified, protecting server RAM.

Automatic PDF Attachments

Generates invoice media buffers and dispatches WhatsApp alerts to targets dynamically.

In-App Event Alerts

Real-time Notification persistent model saves events scoped by types (Leaves, MRR, Bids).

Windows File-Lock Wrapper

Ignores directory deletion blocks in Puppeteer LocalAuth strategies, preventing server crashes.

Outbound Status Auditing

Records transaction IDs and delivery indicators (Sent, Read) in MongoDB history models.

WhatsApp Puppeteer Link

WhatsApp Headless Client

Scan QR codes to map company lines. Watchdog automatic timeouts shut down headless browser RAM.

Headless Controller

Client Connection Status:DISCONNECTED
Session Auth Dir:.wwebjs_auth/FIRM_002
WINDOWS COMPATIBILITY HANDLER"Session directory deletion locks are caught by logout wrappers, preventing node server crashes."

Session QR Code & Progress Logs

QR STANDBY
Console log steps:
"Spawn session connection to view log sequence..."
Outbound Delivery

PDF Outbound Message Dispatch

Generate temporary passcoded sharing links, format number outputs, and dispatch automated alerts.

WhatsApp Message Dispatches

Message Delivery History Logs

Message ID
Formatted Number
Alert Type
Receipt
MSG-801
919876543210@c.us
Invoice PDF
Read
MSG-802
919001122334@c.us
PO Requisition
Delivered
Persistent Tray

In-App Persistent Notifications

Track and review persistent events, sorted by category. Pushing events triggers live WebSocket alerts.

Database Notification Records

Category:
New Material Requisition5 mins ago

EMP-101 Rahul Sharma logged a new MRR for diamond rough lot #442.

Type: mrr
Leave Handover Request1 hour ago

Vikram Singh requested Casual Leave. Assigned handover duties to you.

Type: leave
Bid SubmissionYesterday

Vendor Acme Diamonds submitted a proposal of ₹12,400 for RFQ-901.

Type: bid

Alert Event Trigger

"Triggering system events (like submitting bids) instantly saves records in bulk and emits `new_notification` events to client socket rooms."

Versatile Scenarios

Built For Your Industry

Auto-dispatch quality parameters, material logs, or thermal alerts straight to staff phone screens.

Advanced Manufacturing

Casting run progress alerts are automatically sent to shift managers' WhatsApp numbers when quality tests complete.

IMPACT: Speeds up QA cycles by 50%
Diamond Sourcing & Vaults

Instantly push in-app alert notifications to vault manager trays when diamond vault handovers require signatures.

IMPACT: Guarantees immediate custody audit
Casting Workshops

Crucible temperature warnings are pushed to operators' app screens via real-time WebSocket events.

IMPACT: Prevents mold failure delays
Supply Chains & Logistics

Automatically dispatch passcoded PDF invoices to client WhatsApp numbers when warehouse cargo is marked as ready.

IMPACT: Reduces client collection cycles by 5 days
Retail & e-Commerce

Dispatch WhatsApp invoices and loyalty vouchers directly to cashiers' mobile screens on transaction finalize.

IMPACT: Speeds up retail checkouts
Chemical & Process Sourcing

Fire high-priority SMS/App warning triggers if chemical storage vault pressure gauges violate safety thresholds.

IMPACT: Prevents laboratory hazards
Healthcare & Clinical Audits

Instantly alert ward nurses if medical patient chart checks or clinical audits are outstanding.

IMPACT: Elevates clinical response rates
Infrastructure & Construction

Broadcast WhatsApp blueprint revisions and safety alerts to site crew supervisors immediately.

IMPACT: Halts construction safety mismatches

Module FAQs

Can we track if a WhatsApp message failed?

Yes, the system logs response payloads and delivery statuses (Sent, Delivered, Failed) in a diagnostic history log.

How does the QR watchdog timer prevent server memory leaks?

When a QR code request initiates, the gateway starts a 60-second watchdog timer. If Puppeteer remains unauthenticated after 60s, the connection is aborted, closing the browser context and purging memory buffers.

How does the system resolve Windows EBUSY directory file-lock crashes?

The cleanup utility wraps 'fs.rmSync' commands in a try-catch retry logic. If files are locked by active Puppeteer threads, the system logs a non-blocking warning and ignores the deletion failure.

Are the PDF sharing links sent via WhatsApp secure?

Yes. Invoices and purchase orders are stored in private cloud buckets. The gateway generates temporary presigned URLs matching a 15-minute expiration window to block unauthorized exposure.

How does the persistent tray categorize in-app notifications?

Each notification record maintains a 'type' field (mrr, leave, bid). The UI leverages state hook arrays to dynamically filter records at the query level.

Does the WhatsApp gateway support delivery and read receipts?

Yes. The gateway checks receipt events sent by the headless browser. If the recipient has read receipts enabled, the system updates the log status from 'Sent' to 'Read'.