{
  "name": "Private secret santa assignment & notification system with Gmail & verification",
  "nodes": [
    {
      "id": "e12ee8c9-9805-473f-bb14-24c6a9067c16",
      "name": "Run",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -560,
        0
      ]
    },
    {
      "id": "5a5dd6b4-c144-428d-8884-2e4eac5eaf42",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        848,
        96
      ]
    },
    {
      "id": "4451fa67-489d-4072-955e-4b36c3402ff7",
      "name": "Delete a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1152,
        96
      ]
    },
    {
      "id": "78fa5c29-dab2-4555-9677-30a99c4732d1",
      "name": "Random",
      "type": "n8n-nodes-base.code",
      "position": [
        16,
        0
      ]
    },
    {
      "id": "1fa91ca3-2c66-4aa4-a9b5-8c492731ea08",
      "name": "Name to INT",
      "type": "n8n-nodes-base.code",
      "position": [
        736,
        -160
      ]
    },
    {
      "id": "dc7a3870-69ea-4f77-9e56-9bed21cda23f",
      "name": "Who?",
      "type": "n8n-nodes-base.set",
      "position": [
        1488,
        96
      ]
    },
    {
      "id": "bfd0a287-6f6f-4726-9346-edb5f8e1f3c9",
      "name": "Emails and name",
      "type": "n8n-nodes-base.set",
      "position": [
        -288,
        0
      ]
    },
    {
      "id": "c752fe47-a074-4b56-a797-a1f6c0201f3f",
      "name": "loop mails",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        368,
        0
      ]
    },
    {
      "id": "c2620662-9491-4bf4-ade1-d25d3588430b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        176
      ],
      "parameters": {
        "width": 672,
        "height": 288,
        "content": "Run (Manual Trigger)\nStarts the workflow manually in n8n. Used only to trigger the execution.\n\nEmails and name (Set)\nDefines the Secret Santa participants as name → email pairs, for example: {\"Jesus\":"
      }
    },
    {
      "id": "ba594d5b-d910-4324-a1ee-9afb09261209",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        848,
        320
      ],
      "parameters": {
        "width": 784,
        "height": 240,
        "content": "Send a message (Gmail)\nSends an email via Gmail to $json.emisor for the current item and returns message metadata (including id) for downstream use; retries on failure (5s) using the configured OAuth2"
      }
    },
    {
      "id": "624e6947-b664-4dbc-8f91-3b6200c06e80",
      "name": "Send a message results",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1040,
        -160
      ]
    },
    {
      "id": "198eb429-74d6-4cac-9c6a-a9489cbb4483",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        -480
      ],
      "parameters": {
        "width": 400,
        "height": 288,
        "content": "Name to INT (Code)\nProcesses multiple input items, extracts the two email addresses from each “info” line, assigns numeric IDs to each unique address, and builds a compact summary like “1 sent to 2<br"
      }
    },
    {
      "id": "c7b4714e-a551-4c41-817b-5c0e96726ad5",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1696,
        -64
      ],
      "parameters": {
        "width": 672,
        "height": 624,
        "content": "\n\n\n\n### **Non-Commercial Use and Modification License**\n\n**Copyright © [2025/6] - Oseguir**\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associate"
      }
    },
    {
      "id": "5c8ce420-70aa-49e0-a271-e738b347cdf9",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -336
      ],
      "parameters": {
        "width": 672,
        "height": 272,
        "content": "\n\n### **Welcome!**\n\nThanks for using this workflow 🙌\nIf you enjoyed it and want to discover **more creative and original automations**, visit my n8n Creator profile:\n👉 **[https://n8n.io/creators/oxsr1"
      }
    }
  ],
  "connections": {
    "Run": {
      "main": [
        [
          {
            "node": "Emails and name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Who?": {
      "main": [
        [
          {
            "node": "loop mails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Random": {
      "main": [
        [
          {
            "node": "loop mails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "loop mails": {
      "main": [
        [
          {
            "node": "Name to INT",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Name to INT": {
      "main": [
        [
          {
            "node": "Send a message results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        [
          {
            "node": "Delete a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Emails and name": {
      "main": [
        [
          {
            "node": "Random",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delete a message": {
      "main": [
        [
          {
            "node": "Who?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}