{
  "id": "9b494efd-990e-4ea7-804c-c54ebe0cbbf6",
  "name": "Google Drive Audio Transcription",
  "nodes": [
    {
      "parameters": {
        "content": "# Reviewed Harshith.com template\n\nDownloads one audio file from Google Drive and sends it to OpenAI for transcription. It does not write to Drive, Notion, email, or another system.\n\nAttach your own Google Drive and OpenAI credentials. Replace the sample file ID, confirm the file contains no data you are prohibited from sending, and check model cost and retention terms. This export contains no credentials, deployment-specific IDs, webhook IDs, or pinned data.",
        "height": 370,
        "width": 470,
        "color": 7
      },
      "id": "audio-note-001",
      "name": "Read Me First",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-800, -340]
    },
    {
      "parameters": {},
      "id": "audio-trigger-001",
      "name": "Run Manually",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [-660, 60]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "audio-file-id-field",
              "name": "fileId",
              "type": "string",
              "value": "REPLACE_WITH_GOOGLE_DRIVE_FILE_ID"
            },
            {
              "id": "audio-language-field",
              "name": "language",
              "type": "string",
              "value": "en"
            }
          ]
        },
        "options": {}
      },
      "id": "audio-config-001",
      "name": "Set Authorized Audio File",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [-400, 60]
    },
    {
      "parameters": {
        "operation": "download",
        "fileId": {
          "__rl": true,
          "value": "={{ $json.fileId }}",
          "mode": "id"
        },
        "options": {}
      },
      "id": "audio-drive-001",
      "name": "Download from Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [-120, 60]
    },
    {
      "parameters": {
        "resource": "audio",
        "operation": "transcribe",
        "binaryPropertyName": "data",
        "options": {
          "language": "={{ $('Set Authorized Audio File').first().json.language }}"
        }
      },
      "id": "audio-openai-001",
      "name": "Transcribe with OpenAI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.8,
      "position": [160, 60]
    },
    {
      "parameters": {
        "jsCode": "const result = $input.first().json;\nconst config = $('Set Authorized Audio File').first().json;\nreturn [{ json: {\n  transcript: result.text || result.transcript || '',\n  sourceFileId: config.fileId,\n  language: config.language,\n  status: 'transcript_for_human_review',\n  reviewed: false\n} }];"
      },
      "id": "audio-output-001",
      "name": "Prepare Review Record",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [430, 60]
    }
  ],
  "connections": {
    "Run Manually": {
      "main": [[{"node": "Set Authorized Audio File", "type": "main", "index": 0}]]
    },
    "Set Authorized Audio File": {
      "main": [[{"node": "Download from Google Drive", "type": "main", "index": 0}]]
    },
    "Download from Google Drive": {
      "main": [[{"node": "Transcribe with OpenAI", "type": "main", "index": 0}]]
    },
    "Transcribe with OpenAI": {
      "main": [[{"node": "Prepare Review Record", "type": "main", "index": 0}]]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "saveDataErrorExecution": "none",
    "saveDataSuccessExecution": "none",
    "saveManualExecutions": false,
    "executionTimeout": 60
  },
  "tags": []
}
