whatsapp-link-builder

A purely visual utility node to sanitize phone numbers and generate ready-to-use WhatsApp wa.me links with QR codes.

Package Information

Downloads: 2 weekly / 53 monthly
Latest Version: 0.1.0
Author: Madv6

Documentation

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-43210 becomes 919876543210).
  • 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 High if 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 Promo to 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.

  1. Go to Settings > Community Nodes.
  2. Select Install.
  3. Enter n8n-nodes-whatsapp-link-builder.
  4. Click Install.

Usage

Simply drop the node into your workflow.

  1. Pass any string into the Phone Number field.
  2. (Optional) Define a Default Country Code (defaults to 91).
  3. (Optional) Pass a templated multi-line Message. It will be safely URL-encoded and injected into the .wa.me URL string automatically.
  4. (Optional) Provide Tracking Signature inputs to automatically append referral data to the message.
  5. (Optional) Enable Validate WhatsApp Capability and select your WhatsApp Cloud API credential 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 formatted https://wa.me/... URL ready to be clicked.
  • qrCode: The Base64 data:image/png... string of the link's QR code representation.

License

MIT

Discussion