In this article you’ll discover how to send leads to Go High Level using Webhook Node.

Special thanks to Rob Olsen who has provided much of the content shared on page.

Please see the accompanying detailed notes below as well…

Video Instructions:

Download Sample Decision Tree:

https://drive.google.com/file/d/1beSF0w5bX5IoBaNgW2rvdRZfot5WtBn-/view?usp=sharing

REQUIRED

  1. LeadsHook Account
  2. GoHighLevel Account
  3. Access Website.hook (or similar service for testing)

PHONE DATA FORMAT

GoHighLevel accepts phone number formats with specific formatting…

GoHighLevel only accepts phone numbers in the following 2 formats…

International code:  +12223334444

Without +: 12223334444

This is why, you’ll need the following script to transform your phone number without spaces, hyphens and brackets…

You should export the sample the decision tree provided below (scroll down):

Please note:

This example script takes the phone number saved in field called “mobile” and removes hyphens, spaces and brackets and saves the cleaned phone numbers into a new field called “mobile_formatted”.

In the example script below , phone field “mobile” field is where you are saving mobile or phone number. You need to replace this with the field you are using if your field is not “mobile”.

You’ll also need to replace the mobile_formatted field if you are using a different field. You will transfer this new cleaned phone number field in the webhook to GoHighLevel

< script >
 var number = '{mobile}';
 
//Print the initial value on the browser console
 console.log(number);
 
//Remove white spaces
 number = number.replace(/\s/g, '');
 
//Remove brackets
 number = number.replace(/[()]/g, '');
 
//Remove hyphens
 number = number.replace(/-/g, '');
 
//Set custom field {variable} with the new number
 DT.setField('mobile_formated', number);
 
//Print the initial value on the browser console
 console.log(number);
 < /script>


Where to Add Date Custom Script:

Please add this script to fire on EXIT on node where you’re saving phone number. Or, at any time on any other node.

Further, please ensure script fires BEFORE Webhook Node because the formatted phone number is used in the webhook.

STEP 1: GoHighLevel Get API Key

STEP 2: LeadsHook Webhook Node

The sample json provided is structured as follows…

Pre-created Standard Fields: Fields that exist in EVERY GoHighLevel Account.

Tags: How to add tags to your webhook

User Created Fields: Fields you create for your specific campaigns created from the custom fields user interface. These fields are added as an array under customField as shown above. Please ensure you use field keys (red dashed box below)

User created fields are listed here:

Please update your webhook with LeadsHook custom fields. Remove any fields you are not using. Please use the fields ribbon to reduce typing errors – click field in the ribbon to add to field into your webhook.

Step 3: Test Webhook to Webhook.site (Optional)

Before sending webhook to GoHighLevel, send a test webhook to Webhook.site so you can examine the webhook call and its content. This allows you to ensure all field values are transferred as expected. This is much easier to catch errors.

TIP! Build your GoHighLevel Webhook and then CLONE the node.

And then replace the Webhook URL as shown below. Remove this test node before sending live traffic.

Step 4: Test Webhook to GoHighLevel

Publish and Test Lead Transfer

References:

Go High Level API Docs: https://developers.gohighlevel.com/#8e03b495-aa2b-4805-963f-73bedd897622

Leave a Reply

Your email address will not be published. Required fields are marked *