Table of Contents

HubSpot WhatsApp Integration: Capture New WhatsApp Contacts To HubSpot For Free [Deprecated]

This article will outline how to capture new contacts on HubSpot. You can now use existing workflows on HubSpot for all new leads from WhatsApp as well. 

Heads up 🔔 - this could take more than 10 minutes to complete.

Step 1: Get a HubSpot API key and save it on a text editor. This tutorial can help you create your key.

Step 2: Create an account.

We’ll use Autocode as an intermediary here. Get started with a Blank Project.

Step 3: Copy code snippets to Autocode.


  • Delete all the code that is present in the window.
  • Copy and paste the code below.
  • ReplaceYOUR_API_KEY below (marked in red) with your Hubspot API key obtained from step 1.
  • Save the code.

const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});

let newmeeting = await lib.http.request['@1.1.6']


 method: 'POST', 

  url: ``,

  headers :


    'Content-Type': `application/json` 

  } ,






      "phone": "`+context.params.waId+`"




Step 4: Add a Webhook URL to your WATI window.

  • Copy the URL at the bottom of your Autocode window.
  • Open your WATI Dashboard >> Webhooks.
  • Add the URL from Step 4 as a new Webhook. 
  • Enter the URL.
  • Select the Event as “New Contact Message”
  • Select the Status as Enabled.

That’s about it. This should move all your new contacts to HubSpot automatically.

How did we do?

Create contact in HubSpot when new user messages your WhatsApp number

Hubspot Integration