{
  "name": "Generate styled PDF or DOCX business reports from Markdown with Autype",
  "nodes": [
    {
      "id": "07dcd84f-0a2d-41d5-a01e-0199d155a984",
      "name": "Run Workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -96,
        -400
      ]
    },
    {
      "id": "19d234f8-d76b-4cd6-88f5-ab9625516c43",
      "name": "Company Settings",
      "type": "n8n-nodes-base.set",
      "position": [
        144,
        -400
      ]
    },
    {
      "id": "cacabd17-48ae-46de-bbef-5de03342a029",
      "name": "Download Report Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        384,
        -400
      ]
    },
    {
      "id": "833d56ee-e751-4309-a5b5-5c094a337061",
      "name": "Upload Temp Image",
      "type": "n8n-nodes-autype.autype",
      "position": [
        624,
        -400
      ]
    },
    {
      "id": "e0bf13f4-b951-472a-808d-aceabca602c8",
      "name": "Render Markdown Report",
      "type": "n8n-nodes-autype.autype",
      "position": [
        864,
        -400
      ]
    },
    {
      "id": "ded5e98f-e6c8-406b-968f-bfa48a44a6fc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -1200
      ],
      "parameters": {
        "width": 528,
        "height": 980,
        "content": "## Generate Styled Markdown Report with Image Upload\nThis workflow renders a business quarter report from **Extended Markdown** with full styling, charts, tables, and a temporarily uploaded image.\n\n##"
      }
    },
    {
      "id": "f9d78259-32ae-4f18-8db7-08ab53461c74",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -528
      ],
      "parameters": {
        "width": 220,
        "height": 312,
        "content": "### 1. Company Settings\nBrand colors, font, logo URL, and report image URL. Easy to swap for different companies."
      }
    },
    {
      "id": "200d34dd-1d9f-4186-9fdb-7199311f958c",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        -528
      ],
      "parameters": {
        "width": 420,
        "height": 312,
        "content": "### 2. Mock Image Download & Image Upload\nDownload an image → upload to Autype as temp image → get `refPath` for use in markdown."
      }
    },
    {
      "id": "726c5f55-3bb5-4dae-a15d-2094c0be964f",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        -528
      ],
      "parameters": {
        "width": 308,
        "height": 312,
        "content": "### 3. Render\nMarkdown content + defaults JSON → Autype renders PDF/DOCX. The uploaded image `refPath` is used directly as the image `src`."
      }
    }
  ],
  "connections": {
    "Run Workflow": {
      "main": [
        [
          {
            "node": "Company Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Company Settings": {
      "main": [
        [
          {
            "node": "Download Report Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Temp Image": {
      "main": [
        [
          {
            "node": "Render Markdown Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Report Image": {
      "main": [
        [
          {
            "node": "Upload Temp Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}