{
  "name": "screenshot",
  "nodes": [
    {
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        440,
        580
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "name": "Create Web + Email Item",
      "type": "n8n-nodes-base.functionItem",
      "position": [
        630,
        580
      ],
      "parameters": {
        "functionCode": "item.website = \"https://uproc.io\";\nitem.email = \"user@example.com\";\n\nreturn item;"
      },
      "typeVersion": 1
    },
    {
      "name": "Send Email",
      "type": "n8n-nodes-base.awsSes",
      "position": [
        1660,
        600
      ],
      "parameters": {
        "body": "=Hi,\n<br><br>\nThese are your screenshots:<br>\n<table border=\"0\">\n<tr>\n<th>Simple screenshot</th><th>Fullpage screenshot</th>\n<tr>\n<td style=\"vertical-align: top; text-align: center\"><img src=\"{{$node[\"Generate Screenshot\"].json[\"message\"][\"result\"]}}\" width=\"320\"></td>\n<td style=\"vertical-align: top; text-align: center\"><img src=\"{{$node[\"Generate FullPage\"].json[\"message\"][\"result\"]}}\" width=\"320\"></td>\n</tr>\n</table>\n<br><br>\nThank you!",
        "subject": "Your screenshots!",
        "fromEmail": "REPLACE_WITH_FROMEMAIL",
        "isBodyHtml": true,
        "toAddresses": [
          "={{$node[\"Create Web + Email Item\"].json[\"email\"]}}"
        ],
        "additionalFields": {}
      },
      "typeVersion": 1
    },
    {
      "name": "Generate FullPage",
      "type": "n8n-nodes-base.uproc",
      "position": [
        850,
        510
      ],
      "parameters": {
        "url": "={{$node[\"Create Web + Email Item\"].json[\"website\"]}}",
        "tool": "getUrlScreenshot",
        "group": "image",
        "width": "640",
        "fullpage": "yes",
        "additionalOptions": {}
      },
      "typeVersion": 1
    },
    {
      "name": "Generate Screenshot",
      "type": "n8n-nodes-base.uproc",
      "position": [
        840,
        680
      ],
      "parameters": {
        "url": "={{$node[\"Create Web + Email Item\"].json[\"website\"]}}",
        "tool": "getUrlScreenshot",
        "group": "image",
        "width": "640",
        "fullpage": "no",
        "additionalOptions": {}
      },
      "typeVersion": 1
    },
    {
      "name": "Get File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1050,
        510
      ],
      "parameters": {
        "url": "={{$node[\"Generate FullPage\"].json[\"message\"][\"result\"]}}",
        "options": {},
        "responseFormat": "file",
        "allowUnauthorizedCerts": true
      },
      "typeVersion": 1
    },
    {
      "name": "Get File1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1050,
        680
      ],
      "parameters": {
        "url": "={{$node[\"Generate Screenshot\"].json[\"message\"][\"result\"]}}",
        "options": {},
        "responseFormat": "file",
        "allowUnauthorizedCerts": true
      },
      "typeVersion": 1
    },
    {
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1460,
        600
      ],
      "parameters": {
        "mode": "passThrough"
      },
      "typeVersion": 1
    },
    {
      "name": "Upload Screenshot",
      "type": "n8n-nodes-base.dropbox",
      "position": [
        1270,
        680
      ],
      "parameters": {
        "path": "/screenshots/sample.png",
        "binaryData": true
      },
      "typeVersion": 1
    },
    {
      "name": "Upload fullpage",
      "type": "n8n-nodes-base.dropbox",
      "position": [
        1270,
        510
      ],
      "parameters": {
        "path": "/screenshots/sample_fullpage.png",
        "binaryData": true
      },
      "typeVersion": 1
    },
    {
      "id": "ae28ea3c-8ca6-5bf6-b41e-469361f39746",
      "name": "Publication · Overview and setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -800,
        0
      ],
      "parameters": {
        "content": "# screenshot\n\n## Purpose and structure\nThis folder contains the **screenshot** workflow. Its executable nodes use `awsSes`, `dropbox`, `functionItem`, `httpRequest`, `manualTrigger`, `merge`, `uproc`. 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 clicking 'execute'\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/Functionitem/0031_Functionitem_Dropbox_Automation_Webhook.json\nMIT; preserve source notices.",
        "width": 700,
        "height": 800,
        "color": 1
      }
    }
  ],
  "active": false,
  "settings": {},
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get File": {
      "main": [
        [
          {
            "node": "Upload fullpage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get File1": {
      "main": [
        [
          {
            "node": "Upload Screenshot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload fullpage": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate FullPage": {
      "main": [
        [
          {
            "node": "Get File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Screenshot": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Generate Screenshot": {
      "main": [
        [
          {
            "node": "Get File1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Create Web + Email Item",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Web + Email Item": {
      "main": [
        [
          {
            "node": "Generate FullPage",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate Screenshot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
