{
  "name": "Convert audio emails to Japanese transcripts with OpenAI GPT-4o & Google Suite",
  "nodes": [
    {
      "id": "a8b66045-a245-4587-9836-7d048d7f0452",
      "name": "New Gmail with Audio",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -1104,
        592
      ]
    },
    {
      "id": "82255a69-6d1d-4c77-a148-e80a8c5810b5",
      "name": "Generate Year-Month Folder Path",
      "type": "n8n-nodes-base.code",
      "position": [
        -432,
        592
      ]
    },
    {
      "id": "5ee3567c-a908-41c8-86a3-b4b6dd03a383",
      "name": "Create Folder If Not Exists",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -208,
        512
      ]
    },
    {
      "id": "1a323e7c-1233-4e5c-b13c-ec1e4f876a19",
      "name": "Upload Audio to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        256,
        688
      ]
    },
    {
      "id": "d6f27f9e-bba7-459d-b238-6a1009eb3b99",
      "name": "Generate AI Summary",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        480,
        400
      ]
    },
    {
      "id": "1f851f78-814e-4cab-a925-b62e4a4e1fe9",
      "name": "Convert Transcript to TXT",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        1056,
        592
      ]
    },
    {
      "id": "0c1464c3-f7bb-4f8b-a07e-825d5d1d4b74",
      "name": "Convert Summary to MD",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        1056,
        400
      ]
    },
    {
      "id": "34cecdd4-8dab-4a15-9007-7c6a466fcc12",
      "name": "Upload Transcript to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1280,
        592
      ]
    },
    {
      "id": "12f404d8-34da-43cd-a7a2-b02c13e30141",
      "name": "Upload Summary to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1280,
        400
      ]
    },
    {
      "id": "95892354-7afd-4212-a9ff-b5dc920022c0",
      "name": "Share Transcript File",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1504,
        592
      ]
    },
    {
      "id": "3b2c45eb-bb29-47bb-83d0-d531045249dd",
      "name": "Share Summary File",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1504,
        400
      ]
    },
    {
      "id": "8acd4fa0-0117-48f5-9b69-ab4c8bfd4dc0",
      "name": "Prepare Sheets Data",
      "type": "n8n-nodes-base.code",
      "position": [
        1728,
        496
      ]
    },
    {
      "id": "0c512265-94a2-423d-b5e6-c1712880e6a9",
      "name": "Log to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1952,
        496
      ]
    },
    {
      "id": "5152433d-a660-44d8-b153-0ce2ac5e72d8",
      "name": "Send Gmail Notification",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2176,
        400
      ]
    },
    {
      "id": "f3e93230-9d13-44d3-90c0-299c75ab0a1d",
      "name": "Send Slack Notification",
      "type": "n8n-nodes-base.slack",
      "position": [
        2176,
        592
      ]
    },
    {
      "id": "3f78237a-898e-4490-a434-b6831566fa2e",
      "name": "Code in JavaScript",
      "type": "n8n-nodes-base.code",
      "position": [
        -880,
        592
      ]
    },
    {
      "id": "0c62eafa-d01c-481e-95e1-00116b1a7396",
      "name": "Filter",
      "type": "n8n-nodes-base.filter",
      "position": [
        -656,
        592
      ]
    },
    {
      "id": "a2882507-4f5d-4e4c-8e21-e8c7141ad861",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        16,
        592
      ]
    },
    {
      "id": "b6ba6813-b8bd-47c5-9583-2ebeec621ba7",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        832,
        400
      ]
    },
    {
      "id": "11849b69-5dba-43b7-9714-470b4fb70d90",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        256,
        496
      ]
    },
    {
      "id": "6a6a42d1-ea8d-40ba-9b25-959b1609cfcb",
      "name": "Template Overview (read me)",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1456,
        -480
      ],
      "parameters": {
        "width": 1200,
        "height": 880,
        "content": "## Overview\n\nThis template watches your Gmail inbox for emails with audio attachments, transcribes the audio in **Japanese**, generates an **AI meeting-style summary** (JSON + Markdown), saves everyth"
      }
    },
    {
      "id": "1b6161bf-1da9-4a8c-a0e3-5b605103cb3b",
      "name": "Step 1 - Intake",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1232,
        816
      ],
      "parameters": {
        "width": 620,
        "height": 360,
        "content": "## 1) Gmail intake + attachment prep\n\n**Nodes**\n- **New Gmail with Audio**: polls Gmail and downloads attachments\n- **Code in JavaScript**: splits emails into one item per attachment and normalizes bi"
      }
    },
    {
      "id": "5491f4b8-3dba-48fe-92cd-2c71b07a8f12",
      "name": "Step 2 - Drive storage",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -336,
        896
      ],
      "parameters": {
        "width": 980,
        "height": 388,
        "content": "## 2) Drive folder + upload original audio\n\n**Nodes**\n- **Generate Year-Month Folder Path**: builds `YYYY/MM` from the current date and passes binary forward\n- **Create Folder If Not Exists**: creates"
      }
    },
    {
      "id": "ef783f26-ca1f-4262-9210-e16a8b463c8a",
      "name": "Step 3 - AI transcription & summary",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -16
      ],
      "parameters": {
        "width": 980,
        "height": 336,
        "content": "## 3) Transcribe + summarize with AI\n\n**Nodes**\n- **HTTP Request**: calls OpenAI Audio Transcriptions API (`gpt-4o-transcribe`) and returns plain text (Japanese, no summarization)\n- **Generate AI Summ"
      }
    },
    {
      "id": "efd61853-4625-41c7-943a-a480938d9218",
      "name": "Step 4 - Save & share files",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        800
      ],
      "parameters": {
        "width": 920,
        "height": 324,
        "content": "## 4) Save transcript + summary files to Drive (and share)\n\n**Nodes**\n- **Convert Transcript to TXT** → **Upload Transcript to Drive** → **Share Transcript File**\n- **Convert Summary to MD** → **Uploa"
      }
    },
    {
      "id": "c7d784d1-850c-44c4-9fdd-5c69d66c1322",
      "name": "Step 5 - Log & notifications",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1632,
        -32
      ],
      "parameters": {
        "width": 820,
        "height": 352,
        "content": "## 5) Log + notify\n\n**Nodes**\n- **Prepare Sheets Data**: collects subject, file name, transcript, summary, and Drive links into one JSON object\n- **Log to Google Sheets**: appends a row to your sheet\n"
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload Audio to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Generate Year-Month Folder Path",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Convert Summary to MD",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Generate AI Summary",
            "type": "main",
            "index": 0
          },
          {
            "node": "Convert Transcript to TXT",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Share Summary File": {
      "main": [
        [
          {
            "node": "Prepare Sheets Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate AI Summary": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Sheets Data": {
      "main": [
        [
          {
            "node": "Log to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log to Google Sheets": {
      "main": [
        [
          {
            "node": "Send Gmail Notification",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Slack Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New Gmail with Audio": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Summary to MD": {
      "main": [
        [
          {
            "node": "Upload Summary to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Share Transcript File": {
      "main": [
        [
          {
            "node": "Prepare Sheets Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Summary to Drive": {
      "main": [
        [
          {
            "node": "Share Summary File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Transcript to TXT": {
      "main": [
        [
          {
            "node": "Upload Transcript to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Transcript to Drive": {
      "main": [
        [
          {
            "node": "Share Transcript File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Folder If Not Exists": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Generate Year-Month Folder Path": {
      "main": [
        [
          {
            "node": "Create Folder If Not Exists",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}