{
  "name": "Extract business leads from Gmail to Google Sheets with Slack notifications",
  "nodes": [
    {
      "id": "8bb1f909-10a4-44d2-a79c-662c37ad65d1",
      "name": "Manual Trigger (Historical Run)",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        800,
        208
      ]
    },
    {
      "id": "f47e6b4e-0335-4375-ac24-2f19c99edcf8",
      "name": "Gmail Trigger (Real-time)",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        1088,
        608
      ]
    },
    {
      "id": "87f1bb54-8165-4bec-8495-0e385cc0f097",
      "name": "Get many messages",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1088,
        208
      ]
    },
    {
      "id": "f792b037-62f8-4fac-9ea8-b30197cbc62c",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        1456,
        208
      ]
    },
    {
      "id": "76b87209-dc5b-4d9c-823b-4ad27f6e24d1",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        2784,
        208
      ]
    },
    {
      "id": "330863ce-e243-4ddc-b4bb-6f86bd73bfb3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2720,
        80
      ],
      "parameters": {
        "width": 224,
        "height": 320,
        "content": "## Notify in Slack channel \n"
      }
    },
    {
      "id": "b2c1be84-f8d9-44ba-8f5c-90e18e6bab52",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2432,
        80
      ],
      "parameters": {
        "width": 224,
        "height": 320,
        "content": "## Store leads Into Google Sheet\n"
      }
    },
    {
      "id": "c62db656-466e-403d-89e9-147625c4be9f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1392,
        80
      ],
      "parameters": {
        "width": 224,
        "height": 304,
        "content": "## Filter out the service emails\n(i.e. info@company.com)"
      }
    },
    {
      "id": "eb0ee374-7b56-4d70-ad61-e8d710f831e9",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        448
      ],
      "parameters": {
        "width": 272,
        "height": 320,
        "content": "## Run email fetching periodically\ndefault is set to daily"
      }
    },
    {
      "id": "5e895d51-5a9b-4149-bf4e-4139d3694a06",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        64
      ],
      "parameters": {
        "width": 272,
        "height": 320,
        "content": "## Run email fetching for the existing emails"
      }
    },
    {
      "id": "dc5b438f-ee73-4c43-b250-c26c6d9dde66",
      "name": "Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        2160,
        208
      ]
    },
    {
      "id": "c81e0509-18cf-4a8b-90e2-f0d9c9bbc7de",
      "name": "Append or update row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2496,
        208
      ]
    },
    {
      "id": "7cd89cfa-069a-4cb1-8092-27d37b9b90ad",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2096,
        80
      ],
      "parameters": {
        "width": 224,
        "height": 304,
        "content": "## Remove Duplicates"
      }
    },
    {
      "id": "ec9d11ad-7a60-409a-ad31-f7e2953999b3",
      "name": "Code2",
      "type": "n8n-nodes-base.code",
      "position": [
        1824,
        208
      ]
    },
    {
      "id": "97a76ecb-6165-4702-ba57-fb5a2542c059",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        80
      ],
      "parameters": {
        "width": 224,
        "height": 304,
        "content": "## Filter out the Personal emails\n(i.e. name@gmail.com)"
      }
    },
    {
      "id": "d1c42689-7256-409b-8972-bb1c69412b11",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        176,
        -528
      ],
      "parameters": {
        "width": 512,
        "height": 1344,
        "content": "## Reverse Outreach\n\nThis workflow allows users to extract potential leads sitting on their inboxes. The idea of a reverse outreach is based on the notion that the next big client/customer/partner mig"
      }
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Code2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code1": {
      "main": [
        [
          {
            "node": "Append or update row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code2": {
      "main": [
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many messages": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger (Real-time)": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append or update row in sheet": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual Trigger (Historical Run)": {
      "main": [
        [
          {
            "node": "Get many messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}