{
  "workflow_name": "Convert any URL sent to a webhook into a PDF in Google Drive",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "URL received (webhook)",
          "app": {
            "key": "webhook",
            "fm_app": "webhook"
          },
          "eventSlug": "capture",
          "eventTitle": "Capture Webhook Response",
          "layoutDirection": "horizontal",
          "stepNumber": 1
        },
        "targetPosition": "bottom",
        "type": "trigger",
        "stepNumber": 1,
        "expanded": true,
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "application": "webhook",
        "stepID": "1",
        "action": "capture",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "url": "https://example.com/report",
          "name": "Quarterly report"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "url": "https://example.com/report",
              "name": "Quarterly report"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Render the URL to PDF",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "browser",
            "fm_app": "browser"
          },
          "eventSlug": "generate_pdf",
          "eventTitle": "Generate PDF from URL"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "url": "{webhook1.url}",
          "page_size": "A4",
          "orientation": "portrait",
          "filename": "{webhook1.name}"
        },
        "application": "browser",
        "action": "generate_pdf",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Save the PDF to Drive",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "google_drive",
            "fm_app": "google_drive"
          },
          "eventSlug": "create_file_from_text",
          "eventTitle": "Create File From Text"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "file_name": "{webhook1.name}",
          "file_content": "{browser2.url}"
        },
        "application": "google_drive",
        "action": "create_file_from_text",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 525,
          "y": 0
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "main_end_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      }
    ],
    "edges": [
      {
        "id": "e-1-2",
        "source": "1",
        "target": "2",
        "type": "step",
        "data": []
      },
      {
        "id": "e-2-3",
        "source": "2",
        "target": "3",
        "type": "step",
        "data": []
      },
      {
        "id": "e-3-main_end_placeholder",
        "source": "3",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Convert any URL sent to a webhook into a PDF in Google Drive",
    "folder": "all",
    "description": "POST a URL to the webhook and the Browser renders it to a PDF filed in Google Drive — a one-endpoint archiving service.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}