Follow me on LinkedIn - AI, GA4, BigQuery

This article is in conjunction with the article: Understanding APIs in n8n, GoHighLevel and other AI Automation Workflows. I recommend reading this article first to fully understand webhooks.

What is a webhook ( "webhook endpoint" or "callback URL")?

It is the URL used to send data (payload data via HTTP Request) from a source application to a destination application whenever a specific event occurs within the source application.

Technically speaking, a webhook endpoint is a specific combination of an HTTP method and a webhook URL. 

An application can act as both a source and a destination, depending on whether it is sending or receiving data.

If ‘GoHighLevel’ sends data to ‘n8n’, then ‘GoHighLevel’ acts as the source application and ‘n8n’ acts as the destination application.


Similarly,

If ‘n8n’ sends data to ‘GoHighLevel’, then ‘n8n’ acts as the source application and ‘GoHighLevel’ acts as the destination application.

The source application is the one sending the data (sender), and the destination application is the one receiving the data (receiver). 

Use the Webhook URL provided by the destination application.

For example,

If ‘GoHighLevel’ is the source application and ‘n8n’ is the destination application, then use the webhook URL provided by 'n8n'. The ‘GoHighLevel’ will send data to ‘n8n’ whenever a specified event occurs within ‘GoHighLevel’.


Similarly,

If ‘n8n’ is the source application and ‘GoHighLevel’ is the destination application, then use the webhook URL provided by 'GoHighLevel'. The ‘n8n’ will send data to ‘GoHighLevel’ whenever a specified event occurs within ‘n8n’.


Note: The webhook URL always belongs to the destination application (receiver).

A webhook URL usually contains the letters ‘hooks’ or ‘webhook’ somewhere in the URL. 

That’s one easy way to distinguish a webhook URL from a regular URL.

For example:


Following is an example of a webhook used by GoHighLevel:

https://services.leadconnectorhq.com/hooks/ffsf4353kjflkjp34/webhook-trigger/2SDFDGE$Rd0DWp


Following is an example of a webhook used by n8n:

https://optimizesmart.app.n8n.cloud/webhook/22345b639-1dc8-5ba-cb2c-e994ffsfsfab7

Source and destination applications communicate with each other through HTTP Requests and HTTP Responses.

Consider the following scenario: