{
  "name": "Automated Facebook group scraper: posts, comments, and sub-comments to Supabase",
  "nodes": [
    {
      "id": "195a03c5-5c16-4c64-9ef0-636bb7b8c407",
      "name": "Run an Actor",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        -144,
        -16
      ]
    },
    {
      "id": "8a566033-d318-404d-874b-97b57c8475be",
      "name": "Get dataset items",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        32,
        -16
      ]
    },
    {
      "id": "00562fcd-15e5-469c-9e21-bc4b1fa32576",
      "name": "Get dataset items1",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        -224,
        544
      ]
    },
    {
      "id": "bedf32a9-4bbe-47ea-bbaa-b64b362a1516",
      "name": "Add A Post",
      "type": "n8n-nodes-base.supabase",
      "position": [
        240,
        -16
      ]
    },
    {
      "id": "ba23b7a1-8897-4578-b8de-058ff17dd8fd",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        912,
        192
      ]
    },
    {
      "id": "4f190127-8305-4320-be5c-eb16dcf8aa73",
      "name": "Create a row",
      "type": "n8n-nodes-base.supabase",
      "position": [
        1312,
        192
      ]
    },
    {
      "id": "8d25c50b-b1ee-4936-a892-a607c90178c7",
      "name": "Add A Comment",
      "type": "n8n-nodes-base.supabase",
      "position": [
        -32,
        528
      ]
    },
    {
      "id": "0ae1e6c9-ebcf-403a-a371-89e62b4bec6a",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        704,
        208
      ]
    },
    {
      "id": "9e7f0a82-d0fe-4a34-ac10-676978667eb7",
      "name": "ScrapeComments",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        -400,
        544
      ]
    },
    {
      "id": "4b60b801-e1c3-462f-9ae7-54bd5ad31deb",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1136,
        192
      ]
    },
    {
      "id": "2710e260-7821-4124-a8ca-bbf141d0c66a",
      "name": "Edit Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        -288,
        -16
      ]
    },
    {
      "id": "c6787660-b758-4488-ad6f-8f79e8700c23",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        -256
      ],
      "parameters": {
        "width": 1280,
        "height": 448,
        "content": "## Facebook Scraping Automation  \n**Automation**: This workflow scrapes posts from a Facebook group and inserts them into a **Supabase** database.  \n**Step-by-Step**:  \n1. **Facebook Group Scraping**:"
      }
    },
    {
      "id": "5e7c4255-54d3-4386-a6c5-cb3b4bd4b141",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        272
      ],
      "parameters": {
        "width": 1104,
        "height": 416,
        "content": "## Scraping Comments for Previous Posts  \n**Automation**: In this part of the workflow, we scrape the **comments** for the posts that were scraped earlier from the Facebook group.  \n**Step-by-Step**: "
      }
    },
    {
      "id": "a9e0e2f7-797c-45b2-9ea9-9f32cbeff241",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -64
      ],
      "parameters": {
        "width": 896,
        "height": 544,
        "content": "## Scraping Comments on Comments (Sub-comments)  \n**Automation**: In this step, the workflow scrapes **sub-comments** (comments on the previously scraped comments) and stores them in a **separate tabl"
      }
    },
    {
      "id": "5344a691-bf58-4ae5-a099-cf338472b4d2",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -448,
        -16
      ]
    }
  ],
  "connections": {
    "If1": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Create a row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add A Post": {
      "main": [
        [
          {
            "node": "ScrapeComments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a row": {
      "main": [
        []
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Run an Actor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run an Actor": {
      "main": [
        [
          {
            "node": "Get dataset items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add A Comment": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ScrapeComments": {
      "main": [
        [
          {
            "node": "Get dataset items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get dataset items": {
      "main": [
        [
          {
            "node": "Add A Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get dataset items1": {
      "main": [
        [
          {
            "node": "Add A Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}