{
  "name": "Sync Fathom meeting summaries and action items with GoHighLevel contacts",
  "nodes": [
    {
      "id": "13184757-4feb-4461-8b2c-043402257e27",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -112,
        -16
      ],
      "parameters": {
        "width": 440,
        "height": 736,
        "content": "## Sync Fathom meeting summaries to GoHighLevel contacts\n\n### How it works\n1. Fathom sends webhook when meeting ends with summary and action items\n2. Workflow extracts external attendees from calendar"
      }
    },
    {
      "id": "e41e2181-2f95-4e01-a0b9-98bdbda252df",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        368
      ],
      "parameters": {
        "width": 664,
        "height": 352,
        "content": "## 1. Webhook & Data Prep\nReceive Fathom payload and extract external meeting attendees"
      }
    },
    {
      "id": "853686be-0d4b-41a0-89cd-2541d49ecfb7",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1232,
        96
      ],
      "parameters": {
        "width": 504,
        "height": 264,
        "content": "## 2. Contact Matching\nLoop over attendees and search for existing GHL contacts"
      }
    },
    {
      "id": "0c640fdf-2762-41df-8419-e030857c07e9",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        -80
      ],
      "parameters": {
        "width": 1320,
        "height": 448,
        "content": "## 3. Conversation & Notes\nFind or create conversation, add internal comment, create detailed note"
      }
    },
    {
      "id": "cfad77ce-fe39-4003-b352-8c5724661e2c",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3120,
        -80
      ],
      "parameters": {
        "width": 904,
        "height": 552,
        "content": "## 4. Task Creation\nConvert Fathom action items into GHL tasks"
      }
    },
    {
      "id": "2ec60447-82d6-438a-b480-8aba481267ee",
      "name": "Fathom Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        496,
        496
      ]
    },
    {
      "id": "378a05c3-f504-4fb1-a370-10c37bca937d",
      "name": "Config",
      "type": "n8n-nodes-base.set",
      "position": [
        720,
        496
      ]
    },
    {
      "id": "27d10b49-9247-4fc1-a89a-7632b47a2d67",
      "name": "Parse External Attendees",
      "type": "n8n-nodes-base.code",
      "position": [
        944,
        496
      ]
    },
    {
      "id": "6563db62-372a-45a9-bb44-bca52e202932",
      "name": "Loop Over Attendees",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1168,
        496
      ]
    },
    {
      "id": "89de2bd3-b06b-4844-b53c-b57322c0d843",
      "name": "Search GHL Contact",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1392,
        208
      ]
    },
    {
      "id": "dee69363-ee52-49ce-a51b-8f9283cb8474",
      "name": "Contact Found?",
      "type": "n8n-nodes-base.if",
      "position": [
        1616,
        208
      ]
    },
    {
      "id": "0ec1373a-9a83-4007-9e57-892a817a574b",
      "name": "Create GHL Note",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2960,
        112
      ]
    },
    {
      "id": "d971b5d2-0a61-4b9d-b6cd-483e5a0a0371",
      "name": "No Contact - Skip",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1840,
        304
      ]
    },
    {
      "id": "14cebc05-7642-42bb-bd5f-5cb0600a8f3d",
      "name": "Search Conversation",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1840,
        112
      ]
    },
    {
      "id": "1fbc6508-284b-4ce7-a5e0-486e0bb64303",
      "name": "Conversation Exists?",
      "type": "n8n-nodes-base.if",
      "position": [
        2064,
        112
      ]
    },
    {
      "id": "0fafe401-c031-4624-be41-fd23385d514b",
      "name": "Create Conversation",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2288,
        208
      ]
    },
    {
      "id": "45565fbc-0d8a-4da2-9c60-747408f53722",
      "name": "Use Existing Conversation",
      "type": "n8n-nodes-base.code",
      "position": [
        2512,
        16
      ]
    },
    {
      "id": "ac74a3ed-7e12-4bb7-b297-5315e97e1767",
      "name": "Extract New Conversation ID",
      "type": "n8n-nodes-base.code",
      "position": [
        2512,
        208
      ]
    },
    {
      "id": "b6dc951c-92bf-4279-8d37-7b5ac86a3735",
      "name": "Create Internal Comment",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2736,
        112
      ]
    },
    {
      "id": "b443095c-cfbf-4a8f-981c-0f6e2cbca6a4",
      "name": "Has Action Items?",
      "type": "n8n-nodes-base.if",
      "position": [
        3184,
        112
      ]
    },
    {
      "id": "21964090-b53a-40e8-9b65-d83b572f66b9",
      "name": "No Action Items - Skip",
      "type": "n8n-nodes-base.noOp",
      "position": [
        3408,
        208
      ]
    },
    {
      "id": "43f0a677-20af-4877-8125-94dbf5dde216",
      "name": "Prepare Action Items",
      "type": "n8n-nodes-base.code",
      "position": [
        3408,
        16
      ]
    },
    {
      "id": "330549a0-e39d-4b9b-a055-ffc8d2df0113",
      "name": "Loop Over Action Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        3632,
        272
      ]
    },
    {
      "id": "90f8f4eb-64b1-4afe-9deb-3c432acd3166",
      "name": "Create GHL Task",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3856,
        272
      ]
    }
  ],
  "connections": {
    "Config": {
      "main": [
        [
          {
            "node": "Parse External Attendees",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Contact Found?": {
      "main": [
        [
          {
            "node": "Search Conversation",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Contact - Skip",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fathom Webhook": {
      "main": [
        [
          {
            "node": "Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create GHL Note": {
      "main": [
        [
          {
            "node": "Has Action Items?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create GHL Task": {
      "main": [
        [
          {
            "node": "Loop Over Action Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has Action Items?": {
      "main": [
        [
          {
            "node": "Prepare Action Items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Action Items - Skip",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Contact - Skip": {
      "main": [
        [
          {
            "node": "Loop Over Attendees",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search GHL Contact": {
      "main": [
        [
          {
            "node": "Contact Found?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Conversation": {
      "main": [
        [
          {
            "node": "Extract New Conversation ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Attendees": {
      "main": [
        [],
        [
          {
            "node": "Search GHL Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Conversation": {
      "main": [
        [
          {
            "node": "Conversation Exists?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Conversation Exists?": {
      "main": [
        [
          {
            "node": "Use Existing Conversation",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create Conversation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Action Items": {
      "main": [
        [
          {
            "node": "Loop Over Action Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Action Items": {
      "main": [
        [
          {
            "node": "Loop Over Attendees",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create GHL Task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Action Items - Skip": {
      "main": [
        [
          {
            "node": "Loop Over Attendees",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Internal Comment": {
      "main": [
        [
          {
            "node": "Create GHL Note",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse External Attendees": {
      "main": [
        [
          {
            "node": "Loop Over Attendees",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Use Existing Conversation": {
      "main": [
        [
          {
            "node": "Create Internal Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract New Conversation ID": {
      "main": [
        [
          {
            "node": "Create Internal Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}