{
  "name": "Generate documents from saved templates and variables using Autype",
  "nodes": [
    {
      "id": "9a69be48-21df-407d-a8c8-88577e862193",
      "name": "Certificate Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -80,
        208
      ]
    },
    {
      "id": "d236c5a3-9c6b-4152-b6b8-dc218964c32f",
      "name": "Set Form Variables",
      "type": "n8n-nodes-base.set",
      "position": [
        144,
        208
      ]
    },
    {
      "id": "a6db4890-4ffc-48f9-a578-8cac1b4f8f56",
      "name": "Get Document Variables",
      "type": "n8n-nodes-autype.autype",
      "position": [
        368,
        208
      ]
    },
    {
      "id": "bccef7ce-7140-471c-87e6-f58db61f63a8",
      "name": "Render Document with Variables",
      "type": "n8n-nodes-autype.autype",
      "position": [
        608,
        208
      ]
    },
    {
      "id": "bbef4ce3-82d5-4a50-81eb-f17b1977f83e",
      "name": "Create Project",
      "type": "n8n-nodes-autype.autype",
      "position": [
        128,
        -192
      ]
    },
    {
      "id": "9ba12e7d-f9e3-4bca-9d8f-24427fd04dc0",
      "name": "Create Document",
      "type": "n8n-nodes-autype.autype",
      "position": [
        368,
        -192
      ]
    },
    {
      "id": "0f1baa3e-4fc7-4cbb-9c5e-3e3eba9eb769",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        -464
      ],
      "parameters": {
        "width": 500,
        "height": 820,
        "content": "## Render a Saved Autype Document with Variable Overrides\n\nThis workflow shows how to render a **persistent Autype document** (created once in the Autype editor or via API) with **dynamic variable val"
      }
    },
    {
      "id": "12baaf99-b280-413a-a98a-984002014881",
      "name": "Sticky Note Setup",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -464
      ],
      "parameters": {
        "width": 756,
        "height": 464,
        "content": "## ONE-TIME SETUP — Run once, then disable\n\nThis section creates the **project** and **document template** in Autype via API. After running it once:\n1. Copy the `id` from the **Create Document** outpu"
      }
    },
    {
      "id": "8077453f-c4b7-4225-90ac-b83eb9163fc6",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        48
      ],
      "parameters": {
        "width": 252,
        "height": 328,
        "content": "### Form Trigger\nCollects: recipient name, employee ID, award month, achievements (textarea → table), profile photo URL (→ image), signature URL (→ image). Submit to start the render."
      }
    },
    {
      "id": "e35ba936-7413-4f8f-b943-21a2dbd0f6d2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        48
      ],
      "parameters": {
        "width": 220,
        "height": 328,
        "content": "### Get Variables (optional)\nFetches the variable schema from the saved document — shows which placeholders exist and their types."
      }
    },
    {
      "id": "a089948c-002a-4a9c-b93f-785850bed5da",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        48
      ],
      "parameters": {
        "width": 292,
        "height": 328,
        "content": "### Render with Variables\nInjects: `recipientName` (string), `EmployeeID` (number), `awardMonth` (string), `achivements` (table), `profilePhoto` (image), `Signature` (image) — renders PDF."
      }
    },
    {
      "id": "524a5060-9c72-4619-b6b9-93dde0be43cb",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -96,
        -192
      ]
    }
  ],
  "connections": {
    "Create Project": {
      "main": [
        [
          {
            "node": "Create Document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Certificate Form": {
      "main": [
        [
          {
            "node": "Set Form Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Form Variables": {
      "main": [
        [
          {
            "node": "Get Document Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Document Variables": {
      "main": [
        [
          {
            "node": "Render Document with Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Create Project",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}