{
  "name": "Create structured eBooks in minutes with Google Gemini Flash 2.0 to Google Docs",
  "nodes": [
    {
      "id": "df2148b6-7fd7-4fcc-8baf-00e26ebf8636",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -720,
        0
      ]
    },
    {
      "id": "2d694214-e2d5-4543-ba6c-426cfc3264e8",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        360,
        0
      ]
    },
    {
      "id": "2042e63d-16b2-4e8f-84f6-1c44d7dca305",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        940,
        240
      ]
    },
    {
      "id": "89614229-1d3b-4141-bf4f-94f47495eb6f",
      "name": "Create a Google Doc",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1320,
        20
      ]
    },
    {
      "id": "3efc81bf-54c1-4c4a-bbe6-1ddf25741c90",
      "name": "Update Google Docs",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1540,
        20
      ]
    },
    {
      "id": "9cc68c5a-fcc3-4a59-93a7-08b30cc43d44",
      "name": "Set the Input Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -500,
        0
      ]
    },
    {
      "id": "7db4b80c-8d13-411d-b573-023ef8c0084d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        -320
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Step 1\n\nSet the input field with the \"Title\""
      }
    },
    {
      "id": "0375c56d-28a5-412a-a43c-2997c67996d9",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        460,
        -320
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Step 2\n\nSet the Google Gemini Credentials as part of the LLM data extraction"
      }
    },
    {
      "id": "e2d81a63-d19d-4798-aa01-42019c16437f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -360,
        -400
      ],
      "parameters": {
        "width": 540,
        "height": 240,
        "content": "## Ebook creation with Google Gemini\n\nEbook creation with Google Gemini. Export the clean data to Google Document."
      }
    },
    {
      "id": "ccce17dd-e3b9-422a-ac1c-b0f63b1b3e71",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -320
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Step 3\n\nSet the Google Document Credentials for the data export"
      }
    },
    {
      "id": "b03780c2-465d-4bda-9d75-fd15eadabbe9",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        -140
      ],
      "parameters": {
        "width": 1060,
        "height": 520,
        "content": "## Ebook Detailed Chapter Creation"
      }
    },
    {
      "id": "16e734e6-ff86-4de5-93e0-e9b325842d97",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -360,
        -140
      ],
      "parameters": {
        "width": 540,
        "height": 120,
        "content": "## LLM Usages\n\nGoogle Gemini -> Gemini 2.0 Flash Exp Model"
      }
    },
    {
      "id": "b6f9f400-b2b6-409a-bfa5-28dfd1fcf437",
      "name": "Ebook Thought Creation",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -320,
        0
      ]
    },
    {
      "id": "7707ed9a-464b-4403-b698-829700a20aed",
      "name": "Google Gemini Chat Model for Ebook thought creation",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -320,
        220
      ]
    },
    {
      "id": "f1e452ee-9885-4669-8885-b3229b43f9d4",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -140,
        220
      ]
    },
    {
      "id": "b395751d-45b6-436e-91f2-8770f26d7121",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        40,
        0
      ]
    },
    {
      "id": "df04f758-2f53-404c-aa0d-d402d9fffdb1",
      "name": "Generate Detailed Chapter Content",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        920,
        20
      ]
    },
    {
      "id": "36c8e15a-e32c-4312-a8b6-d3c7bdce4d89",
      "name": "Set the title, objective",
      "type": "n8n-nodes-base.set",
      "position": [
        700,
        20
      ]
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Set the title, objective",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Google Docs": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a Google Doc": {
      "main": [
        [
          {
            "node": "Update Google Docs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set the Input Fields": {
      "main": [
        [
          {
            "node": "Ebook Thought Creation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ebook Thought Creation": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Detailed Chapter Content",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set the title, objective": {
      "main": [
        [
          {
            "node": "Generate Detailed Chapter Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Ebook Thought Creation",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Generate Detailed Chapter Content": {
      "main": [
        [
          {
            "node": "Create a Google Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Set the Input Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model for Ebook thought creation": {
      "ai_languageModel": [
        [
          {
            "node": "Ebook Thought Creation",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}