n8n-nodes-whatsapp-link-builder
v0.1.0
Published
A purely visual utility node to sanitize phone numbers and generate ready-to-use WhatsApp wa.me links with QR codes.
Maintainers
Readme
n8n-nodes-whatsapp-link-builder
A powerful, purely visual utility node for n8n that sanitizes messy phone numbers and automatically generates ready-to-use WhatsApp wa.me links alongside an embeddable Base64 QR code image. Perfect for marketers creating dynamic WhatsApp outreach campaigns.
Features
- Robust Phone Sanitization: Strips spaces, hyphens, and formatting from raw phone number inputs (e.g.
098 765-43210becomes919876543210). - Smart Country Code Injection: Automatically drops local trunk prefixes (like leading
0s) and prepends your default country code if missing! - QR Code Generation: Generates an in-memory
data:image/png;base64,...payload of the WhatsApp link that can be passed directly into downstream nodes to email templates or Slack messages. - Advanced Branded QR Styling:
- Change Dark/Light Hex Colors.
- Dynamically set QR Error Correction levels (Low, Medium, Quartile, High). Use
Highif you want to place your logo in the middle of the QR code using downstream image manipulation! - Adjust Quiet-Zone Margins.
- Injectable UTM Tracking: Automatically appends tracking signatures like
\n\n---\nRef: Bus Flyer-Summer Promoto attribution links silently. - God-Tier Validation: Optional direct integration with the Meta WhatsApp Cloud API to actively check if the generated number has a valid, active WhatsApp account before returning it.
Installation
You can install this node via the n8n Community Nodes UI.
- Go to Settings > Community Nodes.
- Select Install.
- Enter
n8n-nodes-whatsapp-link-builder. - Click Install.
Usage
Simply drop the node into your workflow.
- Pass any string into the
Phone Numberfield. - (Optional) Define a
Default Country Code(defaults to91). - (Optional) Pass a templated multi-line
Message. It will be safely URL-encoded and injected into the.wa.meURL string automatically. - (Optional) Provide
Tracking Signatureinputs to automatically append referral data to the message. - (Optional) Enable
Validate WhatsApp Capabilityand select yourWhatsApp Cloud APIcredential to block non-WhatsApp-registered numbers from passing through.
Output
The node outputs JSON containing:
originalNumber: The untouched raw string.cleanNumber: The sanitized numerical phone string.waLink: The fully encoded and formattedhttps://wa.me/...URL ready to be clicked.qrCode: The Base64data:image/png...string of the link's QR code representation.
License
MIT
