Webhooks for GoHighLevel (GHL) Integration in Wasndr

Webhooks for GoHighLevel (GHL) Integration in WAsendr

WAsendr's webhooks enable seamless automation with GoHighLevel (GHL) through platforms like Zapier, Make, n8n, and Pabbly Connect. These webhooks allow you to automate tasks such as sending WhatsApp messages, creating contacts, scheduling meetings, and retrieving calendar availability in GHL without needing a GHL access token—WAsendr handles authentication for you, ensuring your automations run 24/7.

Features

  1. Send WhatsApp Messages to GHL Contact

    • Description: Send personalized WhatsApp messages via GHL's SMS channel to a specific contact using their contact ID. Ideal for automated notifications, follow-ups, or marketing campaigns.
    • Use Case: Trigger WhatsApp messages from workflows, like sending a confirmation after a form submission or a reminder for an upcoming event.
  2. Create a New GHL Contact

    • Description: Add a new contact to GHL with details like name, email, phone, tags, and custom fields for automated lead management.
    • Use Case: Automatically capture leads from landing pages, CRMs, or other sources and add them to GHL with relevant tags and data.
  3. Schedule a Meeting in GHL Calendar

    • Description: Book a meeting in a GHL calendar for a contact, specifying the calendar, time, title, and description. Streamlines appointment scheduling.
    • Use Case: Automate scheduling for sales calls, consultations, or demos based on user actions in connected apps.
  4. Get Free Time Slots on GHL Calendar

    • Description: Retrieve available time slots in a GHL calendar within a specified time range, enabling AI agents or workflows to suggest suitable meeting times.
    • Use Case: Allow an AI chatbot or automation to display open slots for booking consultations or appointments.

API Endpoints for n8n

Below are the API endpoints for integrating WAsendr with GHL via n8n. No GHL access token is required, as WAsendr manages authentication.

1. Send WhatsApp Messages to GHL Contact

curl -X POST "https://panel.wasndr.com/n8n/sendTextMessage" \
 -H "Content-Type: application/json" \
 -d '{
   "contactId": "contact_123456789",
   "message": "Hello! This is a test message from n8n workflow.",
   "locationId": "location_123456789",
 }'

  • Description: Sends a WhatsApp message via GHL's SMS channel to the specified contact.

2. Create a New GHL Contact

curl -X POST "https://panel.wasndr.com/n8n/createContact" \
 -H "Content-Type: application/json" \
 -d '{
   "locationId": "location_123456789",
   "firstName": "John",
   "lastName": "Doe",
   "email": "john.doe@example.com",
   "phone": "+15551234567",
   "tags": ["n8n", "automation", "new-lead"],
   "customFields": [
     {
       "id": "custom_field_id",
       "value": "Custom field value"
     }
   ]
 }'

  • Description: Creates a new contact in GHL with the provided details.

3. Schedule a Meeting in GHL Calendar

curl -X POST "https://panel.wasndr.com/n8n/scheduleMeeting" \
 -H "Content-Type: application/json" \
 -d '{
   "locationId": "location_123456789",
   "calendarId": "calendar_123456789",
   "contactId": "contact_123456789",
   "startTime": "2025-06-01T15:00:00Z",
   "endTime": "2025-06-01T16:00:00Z",
   "title": "Strategy Call with John",
   "description": "Discuss marketing automation strategy and next steps."
 }'

  • Description: Schedules a meeting in the specified GHL calendar for the given contact.
  • Note: Obtain the calendarId from your GHL Calendar dashboard and add it to your workflow variables to ensure the AI agent or workflow books appointments in the correct calendar.

4. Get Free Time Slots on GHL Calendar

  • Endpoint: GET https://panel.wasendr.com/n8n/getFreeSlots
  • Payload:
    curl -X GET "https://panel.wasndr.com/n8n/getFreeSlots" \
     -H "Content-Type: application/json" \
     -d '{
       "locationId": "location_123456789",
       "calendarId": "calendar_123456789",
       "startTime": "2025-06-01T15:00:00Z",
       "endTime": "2025-06-01T16:00:00Z",
       }'
  • Description: Retrieves available time slots in the specified GHL calendar within the given time range, enabling AI agents or workflows to suggest suitable meeting times.
  • Note: Use the calendarId from your GHL Calendar dashboard in your workflow variables to query the correct calendar.

Integration with Automation Platforms

These endpoints work seamlessly with Zapier, Make, n8n, and Pabbly Connect to build powerful workflows:

  • Zapier: Use the "Webhooks by Zapier" action to send POST or GET requests to these endpoints.
  • Make: Configure an HTTP module to call these endpoints with dynamic data.
  • n8n: Use the HTTP Request node to integrate these endpoints into your workflows.
  • Pabbly Connect: Set up a webhook action to trigger these endpoints based on events.

Security and Setup Notes

Since WAsendr handles GHL authentication, you don’t need to manage a GHL access token. However, ensure you:

  • Secure Workflow Variables: Store sensitive data like locationId or calendarId in your automation platform’s secure storage (e.g., n8n’s Credentials, Zapier’s Custom Fields, Make’s Data Stores, or Pabbly Connect’s Secure Parameters).
  • Verify IDs: Double-check locationId, calendarId, and contactId in your GHL dashboard to avoid errors in your workflows.
  • Monitor Workflows: Regularly review your automation platform’s logs to ensure smooth operation and troubleshoot any issues.