{
  "name": "Send Gmail messages with custom aliases and attachments via API",
  "nodes": [
    {
      "id": "f3959088-8592-4a56-bd3e-c09a5400d0b7",
      "name": "Send Gmail as Alias",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        320,
        -120
      ]
    },
    {
      "id": "1e88749c-f3fd-4c56-8db2-db101855088e",
      "name": "Format Email Payload",
      "type": "n8n-nodes-base.code",
      "position": [
        100,
        -125
      ]
    },
    {
      "id": "92c047a3-da23-4dbf-96a1-257384d50566",
      "name": "Split Out Attachments",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -340,
        -200
      ]
    },
    {
      "id": "abd6a0b8-4abb-4f41-a441-2e666aff0311",
      "name": "If Attachments",
      "type": "n8n-nodes-base.if",
      "position": [
        -560,
        -125
      ]
    },
    {
      "id": "5ead651a-836e-411a-80ae-5a0af1236eec",
      "name": "Download Attachments",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -120,
        -125
      ]
    },
    {
      "id": "f3ae4375-1a9c-4348-8003-13930fc613a7",
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -780,
        -125
      ]
    }
  ],
  "connections": {
    "If Attachments": {
      "main": [
        [
          {
            "node": "Split Out Attachments",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Download Attachments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "If Attachments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Attachments": {
      "main": [
        [
          {
            "node": "Format Email Payload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Email Payload": {
      "main": [
        [
          {
            "node": "Send Gmail as Alias",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Attachments": {
      "main": [
        [
          {
            "node": "Download Attachments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}