{
  "name": "Create Anki language flashcards with GPT-4, DALL-E and ElevenLabs",
  "nodes": [
    {
      "id": "3d110356-8ee6-472b-be91-c41a95d22d43",
      "name": "Sticky Note - Main",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2496,
        448
      ],
      "parameters": {
        "width": 400,
        "height": 636,
        "content": "##  AI Flashcard Generator Pro\n\n**Anki Export with AI Images & Native Audio**\n\nGenerate complete Anki-ready flashcard decks with AI images and native pronunciation audio. Perfect for language learners"
      }
    },
    {
      "id": "d3145b60-aaaf-4943-b472-2150e8145054",
      "name": "Sticky Note - Config",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4736,
        752
      ],
      "parameters": {
        "width": 380,
        "height": 380,
        "content": "## ⚙️ ElevenLabs Voice IDs\n\n```\nJapanese: yoZ06aMxZJJ28mfd3POQ\nKorean: qejjN2Yjyj8IBlZGbOGj  \nChinese: pFZP5JQG7iQjIQuC4Bku\nSpanish: bVMeCyTHy58xNoL34h3p\nFrench: 0O45CbXxNQPFeShXyQEV\nGerman: g5CIjZEef"
      }
    },
    {
      "id": "4f4001e5-3c9a-44e6-a65b-9be8d6e4056f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2944,
        448
      ],
      "parameters": {
        "width": 180,
        "height": 240,
        "content": "**Step 1: Form**\nCollects user preferences"
      }
    },
    {
      "id": "c5e788b5-100e-417a-b2e4-637344f1b59d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3168,
        448
      ],
      "parameters": {
        "width": 180,
        "height": 240,
        "content": "**Step 2: Validate**\nCheck inputs & map voices"
      }
    },
    {
      "id": "738b5499-e430-4480-a184-d23a1851fc92",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3392,
        448
      ],
      "parameters": {
        "width": 200,
        "height": 240,
        "content": "**Step 3: GPT-4**\nGenerate vocabulary"
      }
    },
    {
      "id": "4cdb2c43-7660-4c65-a629-7093b2b871dc",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3632,
        448
      ],
      "parameters": {
        "width": 180,
        "height": 240,
        "content": "**Step 4: Prepare**\nFormat for media gen"
      }
    },
    {
      "id": "2162febf-73b6-4b68-9ff5-c82ab5be1568",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3856,
        448
      ],
      "parameters": {
        "width": 176,
        "height": 240,
        "content": "**Step 5: Loop**\nProcess each card"
      }
    },
    {
      "id": "c5c25aeb-dbb9-492a-a09f-61e3ccd4d414",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4048,
        448
      ],
      "parameters": {
        "width": 196,
        "height": 240,
        "content": "**Step 6: DALL-E**\nGenerate images"
      }
    },
    {
      "id": "ca9d7f0d-3cbb-4a61-a348-cf3da37a0da1",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4256,
        448
      ],
      "parameters": {
        "width": 420,
        "height": 256,
        "content": "**Step 7: ElevenLabs**\nWord pronunciation"
      }
    },
    {
      "id": "37993ca7-734d-48ce-92de-6ba9bf4b0333",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4720,
        448
      ],
      "parameters": {
        "width": 404,
        "height": 256,
        "content": "**Step 8: ElevenLabs**\nExample sentence audio"
      }
    },
    {
      "id": "77f36469-c80a-4627-9bc5-6ff6cfa2434b",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5376,
        448
      ],
      "parameters": {
        "width": 180,
        "height": 240,
        "content": "**Step 9: Merge**\nCombine all media"
      }
    },
    {
      "id": "d37df9b5-f126-4ef3-8093-db0b25a5b481",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5600,
        448
      ],
      "parameters": {
        "width": 420,
        "height": 240,
        "content": "**Step 10: APKG**\nBuild Anki package"
      }
    },
    {
      "id": "ad6e4b6e-5165-4550-91ca-59847c37e459",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6256,
        448
      ],
      "parameters": {
        "width": 200,
        "height": 240,
        "content": "**Step 11: Sheets**\nBackup data"
      }
    },
    {
      "id": "39b8ef20-39dd-4d30-b961-3d865a811384",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6752,
        448
      ],
      "parameters": {
        "width": 340,
        "height": 240,
        "content": "**Step 12: Email**\nSend via Gmail"
      }
    },
    {
      "id": "a5d0aff8-1b0f-4364-bab6-462fbcd8eb21",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        7168,
        448
      ],
      "parameters": {
        "width": 180,
        "height": 240,
        "content": "**Step 13: Response**\nReturn JSON"
      }
    },
    {
      "id": "ec66ccef-e079-4fb0-9a7e-76f066dbe143",
      "name": "Flashcard Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        2992,
        528
      ]
    },
    {
      "id": "aa6fc4cf-e1a1-4c81-be99-49f4d438c586",
      "name": "Validate Input",
      "type": "n8n-nodes-base.code",
      "position": [
        3232,
        528
      ]
    },
    {
      "id": "76474563-46b2-47cc-ab80-9c7f362257ef",
      "name": "Generate Flashcards (GPT-4)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3456,
        528
      ]
    },
    {
      "id": "9e91a9c7-5ae2-4d18-8e9f-1e68e7745c9a",
      "name": "Prepare Card Data",
      "type": "n8n-nodes-base.code",
      "position": [
        3696,
        528
      ]
    },
    {
      "id": "43902eff-338b-482e-9768-f0f3af9dcad5",
      "name": "Split Into Cards",
      "type": "n8n-nodes-base.code",
      "position": [
        3920,
        528
      ]
    },
    {
      "id": "e510b934-d43c-437a-ae9a-65e0bf1bc19d",
      "name": "Loop Cards",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        4112,
        528
      ]
    },
    {
      "id": "76f7a287-293d-4acf-b72d-626107721e25",
      "name": "Generate Image (DALL-E)",
      "type": "n8n-nodes-base.code",
      "position": [
        4304,
        528
      ]
    },
    {
      "id": "a510fc9a-b789-464d-aee3-ea45d697c94e",
      "name": "TTS Word (ElevenLabs)",
      "type": "@elevenlabs/n8n-nodes-elevenlabs.elevenLabs",
      "position": [
        4528,
        528
      ]
    },
    {
      "id": "0acec74f-6cee-47a4-b975-e44a3dd4b004",
      "name": "Convert Word Audio",
      "type": "n8n-nodes-base.code",
      "position": [
        4752,
        528
      ]
    },
    {
      "id": "3bde1f87-a0c2-47ac-8f65-9a9070fbd510",
      "name": "TTS Example (ElevenLabs)",
      "type": "@elevenlabs/n8n-nodes-elevenlabs.elevenLabs",
      "position": [
        4976,
        528
      ]
    },
    {
      "id": "d843350a-85f7-4aa3-a075-7d0645229405",
      "name": "Convert Example Audio",
      "type": "n8n-nodes-base.code",
      "position": [
        5200,
        528
      ]
    },
    {
      "id": "5b522be8-d8f1-46fe-b973-6354409946dd",
      "name": "Merge Card Data",
      "type": "n8n-nodes-base.code",
      "position": [
        5424,
        528
      ]
    },
    {
      "id": "5ef440aa-10f0-42c7-aa07-e2508af4b35c",
      "name": "Create APKG Data",
      "type": "n8n-nodes-base.code",
      "position": [
        5648,
        528
      ]
    },
    {
      "id": "1a4ea429-a19b-46e7-95a5-ccc4d1b9a73b",
      "name": "Build APKG ZIP",
      "type": "n8n-nodes-base.code",
      "position": [
        5872,
        528
      ]
    },
    {
      "id": "aa5c1bb6-80ea-4dd6-a65f-c9904721939c",
      "name": "Split For Sheets",
      "type": "n8n-nodes-base.code",
      "position": [
        6096,
        528
      ]
    },
    {
      "id": "3b61bb94-7d50-45ab-9e21-be098a3aab3c",
      "name": "Save to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        6320,
        528
      ]
    },
    {
      "id": "20d32ede-3764-475a-b468-eef004e9d762",
      "name": "Aggregate Results",
      "type": "n8n-nodes-base.code",
      "position": [
        6544,
        528
      ]
    },
    {
      "id": "a83639cb-4a9b-4410-a11d-a20e5293db93",
      "name": "Prepare Attachment",
      "type": "n8n-nodes-base.code",
      "position": [
        6768,
        528
      ]
    },
    {
      "id": "8238fa0c-8bdf-4420-9013-da5168d92d54",
      "name": "Send Email (Gmail)",
      "type": "n8n-nodes-base.gmail",
      "position": [
        6992,
        528
      ]
    },
    {
      "id": "80d8e0da-664f-4063-876a-c22e7f14dd6f",
      "name": "Return Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        7216,
        528
      ]
    },
    {
      "id": "648d1f39-1006-44f1-938f-c9e87a6f9828",
      "name": "Sticky Note - NPM",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5152,
        752
      ],
      "parameters": {
        "width": 320,
        "height": 200,
        "content": "## 📦 Required npm Packages\n\n```bash\nnpm install jszip sql.js\n```\n\nOr configure in Docker:\n```\nNODE_FUNCTION_ALLOW_EXTERNAL=jszip,sql.js\n```"
      }
    }
  ],
  "connections": {
    "Loop Cards": {
      "main": [
        [
          {
            "node": "Generate Image (DALL-E)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create APKG Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build APKG ZIP": {
      "main": [
        [
          {
            "node": "Split For Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Flashcard Form": {
      "main": [
        [
          {
            "node": "Validate Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate Input": {
      "main": [
        [
          {
            "node": "Generate Flashcards (GPT-4)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Card Data": {
      "main": [
        [
          {
            "node": "Loop Cards",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create APKG Data": {
      "main": [
        [
          {
            "node": "Build APKG ZIP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split For Sheets": {
      "main": [
        [
          {
            "node": "Save to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Into Cards": {
      "main": [
        [
          {
            "node": "Loop Cards",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Results": {
      "main": [
        [
          {
            "node": "Prepare Attachment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Card Data": {
      "main": [
        [
          {
            "node": "Split Into Cards",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Word Audio": {
      "main": [
        [
          {
            "node": "TTS Example (ElevenLabs)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Attachment": {
      "main": [
        [
          {
            "node": "Send Email (Gmail)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email (Gmail)": {
      "main": [
        [
          {
            "node": "Return Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Example Audio": {
      "main": [
        [
          {
            "node": "Merge Card Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Google Sheets": {
      "main": [
        [
          {
            "node": "Aggregate Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "TTS Word (ElevenLabs)": {
      "main": [
        [
          {
            "node": "Convert Word Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Image (DALL-E)": {
      "main": [
        [
          {
            "node": "TTS Word (ElevenLabs)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "TTS Example (ElevenLabs)": {
      "main": [
        [
          {
            "node": "Convert Example Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Flashcards (GPT-4)": {
      "main": [
        [
          {
            "node": "Prepare Card Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}