{
  "name": "Gmail to Google Drive email export workflow",
  "nodes": [
    {
      "id": "00de0985-997a-4c97-9a4a-d28fae9a9641",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        380,
        0
      ]
    },
    {
      "id": "7b167ae9-5a1d-4bd3-b18e-c1cd8da06559",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1260,
        0
      ]
    },
    {
      "id": "522a4ece-e0dc-4639-81d3-2f4a1b9f459e",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        1040,
        0
      ]
    },
    {
      "id": "f2e29c64-91c7-48b4-8416-eaf98b014596",
      "name": "Parse Data",
      "type": "n8n-nodes-base.set",
      "position": [
        600,
        0
      ]
    },
    {
      "id": "399c6f2c-b59a-4e44-aba7-b0a65eb61423",
      "name": "Start Workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        160,
        0
      ]
    },
    {
      "id": "4d245499-f824-4887-85f0-5cd199c2e648",
      "name": "End Workflow",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1480,
        0
      ]
    },
    {
      "id": "d76bc543-75d6-4c9c-ac84-4b05be377e06",
      "name": "Convert Time Field",
      "type": "n8n-nodes-base.code",
      "position": [
        820,
        0
      ]
    },
    {
      "id": "93d5dfcf-c902-4471-9a04-6e7473417bd0",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        300,
        -120
      ],
      "parameters": {
        "width": 280,
        "height": 100,
        "content": "### Change Sender Email\nUpdate the `sender` field in the Gmail node."
      }
    },
    {
      "id": "97f660ed-281b-4ba9-9656-777b9aea2ef0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        160
      ],
      "parameters": {
        "width": 280,
        "height": 100,
        "content": "### Add More Email Fields\t\nModify the Set node to include more fields."
      }
    },
    {
      "id": "825055a9-8e4f-4e39-ae2f-729c103568d6",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        -100
      ],
      "parameters": {
        "width": null,
        "height": 80,
        "content": "### Change Time Zone\nEdit timeZone in the Code node."
      }
    },
    {
      "id": "3f78a5a8-5cd4-40a0-be5f-d984e952d975",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        160
      ],
      "parameters": {
        "width": 300,
        "height": 100,
        "content": "### Change File Format\nUse a different format in the Convert to File node."
      }
    },
    {
      "id": "ffbf9a23-dc2c-4ebe-986e-2aff8a170b51",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1160,
        -220
      ],
      "parameters": {
        "width": 280,
        "height": 200,
        "content": "### Rename Output File \nAdjust the name in the Google Drive nod\n\n### Change Upload Folder\nSet a different folderId in the Google Drive node."
      }
    },
    {
      "id": "93836b97-81d9-47d4-b8dc-3d856e78090a",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        100,
        -580
      ],
      "parameters": {
        "width": 580,
        "height": 200,
        "content": "## 🚀 Use Cases\n\n- **Personal Email Archiving**: Back up or export emails from a specific sender (e.g., invoices, reports).\n- **Audit Logs**: Save conversations for compliance.\n- **Team Reports**: Aggr"
      }
    }
  ],
  "connections": {
    "Gmail": {
      "main": [
        [
          {
            "node": "Parse Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Data": {
      "main": [
        [
          {
            "node": "Convert Time Field",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "End Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start Workflow": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Time Field": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}