{
  "name": "Automatically join WhatsApp groups with Google Sheets and Evolution API",
  "nodes": [
    {
      "id": "def019f5-d10a-4373-b8e2-fe84bb82a873",
      "name": "Fetch groups",
      "type": "n8n-nodes-evolution-api-en.evolutionApi",
      "position": [
        16,
        -304
      ]
    },
    {
      "id": "b1005876-001d-44cc-95cd-b4eb0328bd49",
      "name": "Lire invitation code",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -768,
        -160
      ]
    },
    {
      "id": "4f52e94f-a672-4702-9e49-fda7dd50d253",
      "name": "50 premiers non traités",
      "type": "n8n-nodes-base.code",
      "position": [
        -640,
        -160
      ]
    },
    {
      "id": "cdabb85a-8981-45e3-be6a-e9d711a1ca8e",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -416,
        -160
      ]
    },
    {
      "id": "119dc1d0-db13-48d9-a8f8-ffb7cdaa80e1",
      "name": "Mapper données",
      "type": "n8n-nodes-base.set",
      "position": [
        -112,
        -144
      ]
    },
    {
      "id": "868afb8e-b076-4aad-953c-11546168f8e2",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        336,
        -128
      ]
    },
    {
      "id": "9af29f3c-9265-4af2-a72e-f10e108aa48c",
      "name": "Join group",
      "type": "n8n-nodes-evolution-api-en.evolutionApi",
      "position": [
        480,
        -304
      ]
    },
    {
      "id": "a762732a-f91a-4f28-b719-2b155decc87e",
      "name": "Mis a jour statut",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        672,
        -304
      ]
    },
    {
      "id": "42e601c4-a267-48af-8fe2-a1f9b12e89ac",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        960,
        -80
      ]
    },
    {
      "id": "e6014958-7158-4432-b34e-81ee48468132",
      "name": "Remplir liste",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        816,
        -160
      ]
    },
    {
      "id": "46b0ef58-48bd-4bd2-bc29-c35159313495",
      "name": "Mis a jour statut1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        640,
        -48
      ]
    },
    {
      "id": "68a69e70-c8eb-4a38-acab-9f58fba69547",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -912,
        -160
      ]
    },
    {
      "id": "1beeb731-1941-44e3-bcef-a2e774857686",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        176,
        -144
      ]
    },
    {
      "id": "ab8c62fe-89bf-4989-8357-c54a13d0af96",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -944,
        -432
      ],
      "parameters": {
        "width": 448,
        "height": 480,
        "content": "Schedule Trigger\n⏰ “Runs automatically at the frequency you set (e.g., daily, hourly).”\n\nLire invitation code (Google Sheets)\n📄 “Reads invitation codes from the Google Sheet.”\n\n50 premiers non traités"
      }
    },
    {
      "id": "e7e1654a-81b9-4ccd-9358-ea4c4bf71b83",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        -432
      ],
      "parameters": {
        "width": null,
        "height": 192,
        "content": "Fetch groups\n🔗 “Validates the invitation code and fetches group details.”"
      }
    },
    {
      "id": "c50e76f0-b4c6-448c-8ff4-9864bfebe171",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        -480
      ],
      "parameters": {
        "width": 672,
        "height": 608,
        "content": "❓ “Try to join the WhatsApp group. If successful, update the sheet and add to the joined list. If failed, mark the code as failed.”\n\n📊 “Log results back into Google Sheets and use a short wait to avoi"
      }
    },
    {
      "id": "d6e5e557-7793-4164-9fed-fa11a22340a0",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1472,
        -640
      ],
      "parameters": {
        "width": 464,
        "height": 944,
        "content": "Auto-join WhatsApp groups from Google Sheets invitation codes\n\nThis workflow helps you automatically join groups, update statuses, and track results without manual work.\n\n\n\nHow it works / What it does"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Join group",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Mis a jour statut1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Join group": {
      "main": [
        [
          {
            "node": "Mis a jour statut",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch groups": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remplir liste": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Mapper données",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mapper données": {
      "main": [
        [
          {
            "node": "Fetch groups",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Lire invitation code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mis a jour statut": {
      "main": [
        [
          {
            "node": "Remplir liste",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mis a jour statut1": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lire invitation code": {
      "main": [
        [
          {
            "node": "50 premiers non traités",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "50 premiers non traités": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}