{
  "name": "Create, delete, and organize AWS S3 buckets & files directly from your email",
  "nodes": [
    {
      "id": "de49fbb0-5d1b-42ad-b500-beed9e895414",
      "name": "Start Workflow (GET Request)",
      "type": "n8n-nodes-base.emailReadImap",
      "position": [
        0,
        920
      ]
    },
    {
      "id": "4ab408d8-416d-4a39-91cd-3e06553c36a1",
      "name": "Extract Data from Email",
      "type": "n8n-nodes-base.code",
      "position": [
        220,
        920
      ]
    },
    {
      "id": "d2926988-4e41-4d5e-84e2-75893ed04565",
      "name": "Create a bucket",
      "type": "n8n-nodes-base.awsS3",
      "position": [
        660,
        320
      ]
    },
    {
      "id": "1401cf3e-62c1-44db-bca6-29231f3add1e",
      "name": "Delete a bucket",
      "type": "n8n-nodes-base.awsS3",
      "position": [
        660,
        520
      ]
    },
    {
      "id": "43d9a1bb-6ad5-4916-91ef-0e9df365d8f4",
      "name": "Copy a file",
      "type": "n8n-nodes-base.awsS3",
      "position": [
        660,
        720
      ]
    },
    {
      "id": "b7af67ad-ba3d-41fe-96fc-3613f332a1fa",
      "name": "Upload a file",
      "type": "n8n-nodes-base.awsS3",
      "position": [
        660,
        1320
      ]
    },
    {
      "id": "e8290bcc-0816-421d-bea3-e588809d63b9",
      "name": "Get many files",
      "type": "n8n-nodes-base.awsS3",
      "position": [
        660,
        1520
      ]
    },
    {
      "id": "cd585a21-6073-4a59-a157-943360266ac4",
      "name": "Download a file",
      "type": "n8n-nodes-base.awsS3",
      "position": [
        660,
        1120
      ]
    },
    {
      "id": "33819696-4b09-45c8-b938-0a929281be26",
      "name": "Delete a file",
      "type": "n8n-nodes-base.awsS3",
      "position": [
        660,
        920
      ]
    },
    {
      "id": "ae71cb97-4e9e-4733-a024-990045bed90f",
      "name": "Check Task Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        440,
        836
      ]
    },
    {
      "id": "a3b10fac-ff46-4aac-9683-949c4c6246c8",
      "name": "Send Failed Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1100,
        1020
      ]
    },
    {
      "id": "7c01eb42-56e7-431e-ba13-9fa8b88cb84f",
      "name": "Send Success Email ",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1100,
        820
      ]
    },
    {
      "id": "d79e2096-604a-441b-9697-6e308b3002f5",
      "name": "Check - Success or Fail",
      "type": "n8n-nodes-base.if",
      "position": [
        880,
        920
      ]
    },
    {
      "id": "d6872864-93fc-462a-8693-41377e283d37",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        380
      ],
      "parameters": {
        "width": 1000,
        "height": 140,
        "content": "\n## What is this workflow for?\n### This workflow enables the management of AWS S3 buckets and files by processing email commands. It supports creating and deleting buckets, uploading and downloading f"
      }
    },
    {
      "id": "c19d98fb-6112-4886-807f-c78f5aead7be",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -680,
        760
      ],
      "parameters": {
        "width": 560,
        "height": 400,
        "content": "## How It Works\n- **Start Workflow (GET Request)** - Captures incoming email requests.\n- **Extract Data from Email** - Parses email content to extract S3 operation commands.\n- **Check Task Type** - Va"
      }
    }
  ],
  "connections": {
    "Copy a file": {
      "main": [
        [
          {
            "node": "Check - Success or Fail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delete a file": {
      "main": [
        [
          {
            "node": "Check - Success or Fail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload a file": {
      "main": [
        [
          {
            "node": "Check - Success or Fail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many files": {
      "main": [
        [
          {
            "node": "Check - Success or Fail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Task Type": {
      "main": [
        [
          {
            "node": "Create a bucket",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Delete a bucket",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Copy a file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Delete a file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Download a file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Upload a file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get many files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a bucket": {
      "main": [
        [
          {
            "node": "Check - Success or Fail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delete a bucket": {
      "main": [
        [
          {
            "node": "Check - Success or Fail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download a file": {
      "main": [
        [
          {
            "node": "Check - Success or Fail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check - Success or Fail": {
      "main": [
        [
          {
            "node": "Send Success Email ",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Failed Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Data from Email": {
      "main": [
        [
          {
            "node": "Check Task Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start Workflow (GET Request)": {
      "main": [
        [
          {
            "node": "Extract Data from Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}