{
  "name": "WhatsApp message (WbizTool) → GoHighLevel contact with a note",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "wbiztool-to-gohighlevel",
        "options": {}
      },
      "id": "7953af60-d08f-448a-8b83-c63eb478d0e7",
      "name": "WbizTool incoming message",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "webhookId": "ef6a6b96-6460-4b1c-b934-097dbdcf68ae"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict"
          },
          "conditions": [
            {
              "id": "9d2fdb05-b7e8-48f1-9378-03ccea1338fa",
              "leftValue": "={{ $json.body.event }}",
              "rightValue": "message_received",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            },
            {
              "id": "186da327-21a4-4569-a551-4df2ab71c815",
              "leftValue": "={{ $json.body.contact.is_group }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "false",
                "singleValue": true
              }
            },
            {
              "id": "67bb0b51-be18-4b74-81b9-9afe98c7dd30",
              "leftValue": "={{ $json.body.contact.phone }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "49f3db9c-6423-4b1c-9472-abfaf42e2f74",
      "name": "Received, not a group, phone shown",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        240,
        0
      ]
    },
    {
      "parameters": {
        "resource": "contact",
        "operation": "create",
        "email": "",
        "phone": "=+{{ $json.body.contact.phone }}",
        "additionalFields": {
          "notes": "=WhatsApp message from {{ $json.body.contact.name }} (+{{ $json.body.contact.phone }}) at {{ $json.body.message.timestamp }}:\n\n{{ $json.body.message.content }}"
        }
      },
      "id": "4276e063-39de-4f26-858e-8172b5dcf393",
      "name": "HighLevel: create or update contact + note",
      "type": "n8n-nodes-base.highLevel",
      "typeVersion": 2,
      "position": [
        480,
        -20
      ]
    }
  ],
  "connections": {
    "WbizTool incoming message": {
      "main": [
        [
          {
            "node": "Received, not a group, phone shown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Received, not a group, phone shown": {
      "main": [
        [
          {
            "node": "HighLevel: create or update contact + note",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  }
}
