{
  "nodes": [
    {
      "id": "0357b17f-9fcf-4725-8311-28bd9c76c37c",
      "name": "On GET request",
      "type": "n8n-nodes-base.webhook",
      "position": [
        820,
        400
      ],
      "parameters": {
        "path": "download-pdf",
        "options": {},
        "responseMode": "responseNode"
      },
      "typeVersion": 1
    },
    {
      "id": "21d8c543-33c2-45eb-b392-2cb7139344c6",
      "name": "Fetch binary file",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1040,
        400
      ],
      "parameters": {
        "url": "https://www.deutschebahn.com/resource/blob/8813300/bdf106f07186f66e4448f95aca02bd4a/Faktenblatt-ICE-L_Mai23-data.pdf",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file"
            }
          }
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "3ced3067-d82c-4bb4-b5fe-53a8d79c2177",
      "name": "Respond with attachment",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1260,
        400
      ],
      "parameters": {
        "options": {
          "responseHeaders": {
            "entries": [
              {
                "name": "content-disposition",
                "value": "=attachment; filename=\"my_document_{{ $now.toFormat('yyyy-MM-dd') }}.pdf\""
              }
            ]
          }
        },
        "respondWith": "binary"
      },
      "typeVersion": 1
    },
    {
      "id": "923186e9-d1d4-5fdc-a55e-eb3eff7fb434",
      "name": "Publication · Overview and setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -800,
        0
      ],
      "parameters": {
        "content": "# on get request and fetch binary file and respond with attachment\n\n## Purpose and structure\nThis folder contains the **on get request and fetch binary file and respond with attachment** workflow. Its executable nodes use `httpRequest`, `respondToWebhook`, `webhook`. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.\n\n## Setup\nImport inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.\n\n## Entry points\nOn GET request\n\n## Verification\nSanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.\n\n## Attribution\nhttps://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Http/0306_HTTP_Respondtowebhook_Import_Webhook.json\nMIT; preserve source notices.",
        "width": 700,
        "height": 800,
        "color": 1
      }
    }
  ],
  "connections": {
    "On GET request": {
      "main": [
        [
          {
            "node": "Fetch binary file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch binary file": {
      "main": [
        [
          {
            "node": "Respond with attachment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false
}
