{
  "name": "Generate branded word documents with Claude AI and Json2Doc (up to 20 pages)",
  "nodes": [
    {
      "id": "3eb01a62-1f19-425c-9fed-fb2cb124f070",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        848,
        96
      ]
    },
    {
      "id": "6e277f2c-66dd-48e7-9e52-180fa702818d",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1088,
        48
      ]
    },
    {
      "id": "8c0dbfa6-7819-40a8-bc59-65e92531a55c",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1088,
        176
      ]
    },
    {
      "id": "f6a6e5bb-3a29-4897-8831-b3997a16edb0",
      "name": "Json2Doc MCP",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        976,
        96
      ]
    },
    {
      "id": "592591d8-8317-4033-a220-980721e56790",
      "name": "Add Company styleguide",
      "type": "n8n-nodes-base.set",
      "position": [
        576,
        -112
      ]
    },
    {
      "id": "b3785edf-88e1-42d5-ba14-85c3235e1ca0",
      "name": "Generate Sections",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        880,
        -112
      ]
    },
    {
      "id": "c6838320-5262-421f-81a8-024cc4564ecc",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        288,
        -112
      ]
    },
    {
      "id": "06280495-249f-403f-ba3d-becd5194d116",
      "name": "Download Docx",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1856,
        -112
      ]
    },
    {
      "id": "dba91ccb-3d9f-4d3f-ae3d-7603f5f4bcfd",
      "name": "Wait for Document Generation",
      "type": "n8n-nodes-base.wait",
      "position": [
        1424,
        -112
      ]
    },
    {
      "id": "fdb49828-9ad2-48ce-9297-bf498798c424",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1552,
        -112
      ]
    },
    {
      "id": "d1fdcd8b-7a56-46bb-95e8-2c639a192e74",
      "name": "is Completed?",
      "type": "n8n-nodes-base.if",
      "position": [
        1680,
        -112
      ]
    },
    {
      "id": "ee276d02-e143-48d7-a897-e563c020ff23",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        -192
      ],
      "parameters": {
        "width": 256,
        "height": 240,
        "content": "## Input Form\nTakes a Promt and a logo URL as input"
      }
    },
    {
      "id": "7fd19214-9027-4dc2-85af-e14bc79481e4",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        496,
        -320
      ],
      "parameters": {
        "width": 288,
        "height": 400,
        "content": "## Consistent Styling\nAdd the company's style here.\n- Font\n- Font sizes, colors, and spacing\n- Footer & header\n- Table styles\nFor more details, see also:\n[Docs](https://docs.json2doc.com/docs/document"
      }
    },
    {
      "id": "69c6c80f-1c5f-46fd-a720-ede4586e8c50",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        -560
      ],
      "parameters": {
        "width": 544,
        "height": 880,
        "content": "## Generate Json2Doc Config\n\n**Warning**: The context generated by this step can become quite large depending on the size and complexity of the document.\n**Notes**:\n- This step uses the styling config"
      }
    },
    {
      "id": "c19905a5-9817-44ed-95c2-ccd54928ec46",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        -480
      ],
      "parameters": {
        "width": 704,
        "height": 688,
        "content": "# **Wait for Document & Download**\n\nThese nodes wait until the document associated with the returned **Job ID** is fully generated by the AI agent, and then download the final file.\n\n### **Authenticat"
      }
    }
  ],
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "is Completed?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Json2Doc MCP": {
      "ai_tool": [
        [
          {
            "node": "Generate Sections",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "is Completed?": {
      "main": [
        [
          {
            "node": "Download Docx",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Document Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Sections": {
      "main": [
        [
          {
            "node": "Wait for Document Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Add Company styleguide",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Sections",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Add Company styleguide": {
      "main": [
        [
          {
            "node": "Generate Sections",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Sections",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Document Generation": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}