{
  "name": "Automate Actions After PDF Generation with PDFMonkey",
  "nodes": [
    {
      "id": "bca61663-2317-4f5a-8117-e417ab9ffcb1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -380
      ],
      "parameters": {
        "width": 860,
        "height": 500,
        "content": "# React to PDFMonkey Callback\nWhen a PDF is generated by PDFMonkey, retrieve the PDF file and use it as needed.\n\n### Configuration\nCopy the webhook URL and add it to your PDFMonkey Webhooks dashboard "
      }
    },
    {
      "id": "31ef2b09-e36f-4a9d-8eef-724211d7e2d4",
      "name": "On PDFMonkey generation process end",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -140,
        160
      ]
    },
    {
      "id": "08cfde4f-637b-4cf4-a2c2-92e4e15ad6cc",
      "name": "Check if generation was successful",
      "type": "n8n-nodes-base.if",
      "position": [
        120,
        160
      ]
    },
    {
      "id": "051ec2f5-e96e-41dd-a753-db70cd1a1729",
      "name": "On success: download the PDF file",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        520,
        140
      ]
    }
  ],
  "connections": {
    "On success: download the PDF file": {
      "main": [
        []
      ]
    },
    "Check if generation was successful": {
      "main": [
        [
          {
            "node": "On success: download the PDF file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On PDFMonkey generation process end": {
      "main": [
        [
          {
            "node": "Check if generation was successful",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}