đź’¬ Send welcome WhatsApp messages to new HubSpot contacts with Beex templates

⚡ 80 views · 💬 Lead Nurturing & AI Sales Agents

Description

Summary

This workflow listens for HubSpot contact creation events via a webhook, standardizes the data, and sends a WhatsApp message using a predefined first contact template from Beex.

How It Works

  1. Configure Webhook: The workflow is triggered when HubSpot fires the On Contact Created event.
  2. Get Contact: Retrieves the contact’s ID and extracts relevant data from the HubSpot event.
  3. Validate Contact: Filters contacts to ensure they meet the requirements in this case, having valid (non-null) email and phone numbers.
  4. Set Fields: Transforms the HubSpot data by selecting only relevant fields, renaming them for clarity, and preparing them for the template. Key tasks include extracting the phone_number and country_code (removing the ”+” symbol) and setting the associated_values as required by the template. The exact template name must be specified manually in this node.f2.jpg
  5. Send Template: Sends a welcome message via WhatsApp using the template configured in Beex. This node requires a Queue ID, which is generated based on the template configuration in Beex (see the setup section below for details).

Setup Instructions

  1. Install Beex Nodes: Before importing the template, install the Beex trigger and node packages using the following package name:
n8n-nodes-beex
  1. Configure HubSpot Credentials: Set up your HubSpot connection with the following:

    • Access Token (typically from a private app)
    • Read permissions for Contacts objects
    • Configured webhook URL (usually from a private application)
    • Note: The webhook URL can be found in the initial node. Make sure to distinguish between test mode and production mode. f4.jpg
  2. Configure Beex Credentials: For Beex users with platform access (for trial requests, contact frank@beexcc.com):

    • Navigate to Platform Settings → API Key & Callback.
    • Copy your API key and paste it into the Beex node (Send Template) in n8n. beex_api_key_7463929f3e.jpg
  3. Configure Template in Beex:

    • On the Beex platform, go to the Connections section in the side menu and select Templates.beex_template_1.jpg
    • Select an identifier (a number through which the WhatsApp template will be sent to your contacts).beex_template_2.jpg
    • Click to request a new template.beex_template_3.jpg
    • Enter a Template Name and Display Name. The “Template Name” is what you’ll reference in your workflow’s Set Fields node.beex_template_4.jpg
    • Complete any additional required fields.beex_template_5.jpg
    • Configure the template message content. Note that associated values are wrapped in {{1}}, which corresponds to the configurable parameter set in the Set Fields node. beex_template_6.jpg
    • Optionally, add buttons to the template.
    • Once the template request is submitted, wait for approval. After approval, associate the template with a campaign and queue to obtain the Queue ID needed for the Send Template node.beex_template_8.jpg

Requirements

Customization Options

đź”— Nodes Used

Webhook, HubSpot, Filter

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup