Quick overview
This workflow receives WhatsApp message webhooks from Wati, fetches the sender’s contact details and recent messages, creates or updates a matching contact in GoHighLevel, adds the latest message as a contact note, and logs the Wati-to-conversation ID mapping to Google Sheets.
How it works
- Receives an incoming WhatsApp message event via a Wati webhook.
- Looks up the sender’s contact profile in Wati using the WhatsApp ID (waId).
- Pulls the most recent WhatsApp messages for that conversation from Wati.
- Creates or updates the contact in GoHighLevel using the Wati name, phone, and your GoHighLevel locationId.
- Adds a note to the GoHighLevel contact containing the WhatsApp message text.
- Appends the Wati ID and Wati conversation ID to a Google Sheets spreadsheet for tracking.
Setup
- Add your Wati API credentials and ensure Wati is configured to send message webhooks to this workflow’s webhook URL.
- Add your GoHighLevel Private Integration Token in the Authorization header for both GoHighLevel HTTP requests and replace YOUR_GHL_LOCATION_ID with your sub-account (location) ID.
- Connect your Google Sheets OAuth2 credentials and replace YOUR_GOOGLE_SHEET_ID and sheet selection to point to your logging spreadsheet and target tab.