{
  "name": "Convert PDF documents to AI podcasts with Google Gemini and text-to-speech",
  "nodes": [
    {
      "id": "37a9addb-a90e-4491-8b7a-a42fad57329a",
      "name": "🎬 Start: Upload PDF File",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -340,
        -60
      ]
    },
    {
      "id": "dd475138-a5fa-4818-aeaa-27e8e0969367",
      "name": "📄 Extract Text from PDF",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -120,
        -60
      ]
    },
    {
      "id": "9a24fae8-ac8c-48a0-a985-69e0b4a3e0b8",
      "name": "🤖 Generate Podcast Script",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        100,
        -160
      ]
    },
    {
      "id": "87891658-777b-47bf-9a86-9c23076a7477",
      "name": "Google Gemini Flash 2.0",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        188,
        60
      ]
    },
    {
      "id": "8ebba81a-a42e-48cf-aeaa-1263fe59ed90",
      "name": "⚙️ Prepare TTS Request",
      "type": "n8n-nodes-base.code",
      "position": [
        480,
        -60
      ]
    },
    {
      "id": "78e3f968-ec21-4d85-a802-688f1d33b48c",
      "name": "🎙️ Convert Text to Speech With Gemini",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        696,
        -60
      ]
    },
    {
      "id": "1baddfca-84c4-4ffd-beb8-5acb919112fe",
      "name": "🔧 Process Audio Response",
      "type": "n8n-nodes-base.code",
      "position": [
        916,
        -60
      ]
    },
    {
      "id": "36978e98-5d80-4859-868f-5f8e6ddcb569",
      "name": "💾 Save Podcast Audio",
      "type": "n8n-nodes-base.writeBinaryFile",
      "position": [
        1136,
        -60
      ]
    },
    {
      "id": "0deff03c-60f7-4fd0-84e2-96527caba405",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -360,
        -680
      ],
      "parameters": {
        "width": 320,
        "height": 400,
        "content": "## 🎯 Main Template Overview\nWhat this workflow does:\n- Extracts text from uploaded PDF files\n- Generates conversational podcast script using AI\n- Converts script to natural-sounding audio\n- Saves fina"
      }
    },
    {
      "id": "b867911c-8add-450c-89d8-906cace883ad",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -20,
        -680
      ],
      "parameters": {
        "width": 300,
        "height": 400,
        "content": "## 🔧 Setup Instructions\nBefore You Start:\n\nGet API Keys:\n- Gemini API: https://aistudio.google.com/\n- Add to n8n credentials as \"Google Gemini(PaLM) Api account\"\n\n\nTest the workflow:\n- Use the manual "
      }
    }
  ],
  "connections": {
    "Google Gemini Flash 2.0": {
      "ai_languageModel": [
        [
          {
            "node": "🤖 Generate Podcast Script",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "⚙️ Prepare TTS Request": {
      "main": [
        [
          {
            "node": "🎙️ Convert Text to Speech With Gemini",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📄 Extract Text from PDF": {
      "main": [
        [
          {
            "node": "🤖 Generate Podcast Script",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🎬 Start: Upload PDF File": {
      "main": [
        [
          {
            "node": "📄 Extract Text from PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔧 Process Audio Response": {
      "main": [
        [
          {
            "node": "💾 Save Podcast Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🤖 Generate Podcast Script": {
      "main": [
        [
          {
            "node": "⚙️ Prepare TTS Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🎙️ Convert Text to Speech With Gemini": {
      "main": [
        [
          {
            "node": "🔧 Process Audio Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}