{
  "name": "Classify documents with easybits Extractor via web form",
  "nodes": [
    {
      "id": "3d2cbf06-949a-451d-adca-51f53dfe22b5",
      "name": "Extract from File",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        224,
        16
      ]
    },
    {
      "id": "bcc48497-e7c3-417a-a5f6-af8dd4e783a4",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -64,
        16
      ]
    },
    {
      "id": "3cf93bc1-f3d5-4ccc-946c-d22f4df05ef3",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        512,
        16
      ]
    },
    {
      "id": "2b527430-c39d-41cc-9491-4fd6b2609af1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -144,
        -160
      ],
      "parameters": {
        "width": 256,
        "height": 368,
        "content": "## 📋 Form Upload\nAccepts a file upload via a **web form**. Supports **PDF, PNG, and JPEG**."
      }
    },
    {
      "id": "820b5a61-15bb-4263-b19a-f36070473e6a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        -160
      ],
      "parameters": {
        "width": 256,
        "height": 368,
        "content": "## 📄 Extract to Base64\nConverts the uploaded **binary file** into a base64-encoded string stored in `data`."
      }
    },
    {
      "id": "f400bb96-a3cd-4529-8aef-f3462b232e8b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        -160
      ],
      "parameters": {
        "width": 256,
        "height": 368,
        "content": "## 🔗 Build Data URI\nDynamically reads the **MIME type** from the uploaded file and prepends it as a base64 data URI."
      }
    },
    {
      "id": "a20f3462-32a1-40db-a288-8c08518e4549",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -832,
        -496
      ],
      "parameters": {
        "width": 656,
        "height": 1088,
        "content": "# 📄 easybits' Document Classification\n\n## What This Workflow Does\nUpload a document (PDF, PNG, or JPEG) via a hosted web form and let **easybits Extractor** classify it into one of your defined catego"
      }
    },
    {
      "id": "36fde793-1174-4c35-9b54-659691be5cd4",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -160
      ],
      "parameters": {
        "width": 256,
        "height": 368,
        "content": "## 🚀 Send to easybits\nPOSTs the data URI to the **easybits Extractor API** for classifcation."
      }
    },
    {
      "id": "e8ff79f8-6a47-4d66-b321-1be874e8694d",
      "name": "easybits Extractor for Classification",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        16
      ]
    }
  ],
  "connections": {
    "Edit Fields": {
      "main": [
        [
          {
            "node": "easybits Extractor for Classification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract from File": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Extract from File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "easybits Extractor for Classification": {
      "main": [
        []
      ]
    }
  }
}