{
  "workflow": {
    "id": 3332,
    "name": "Capture website screenshots via Google Sheets to Google Drive with CustomJS",
    "views": 2676,
    "recentViews": 0,
    "totalViews": 2676,
    "createdAt": "2025-03-26T09:57:20.649Z",
    "description": "![workflow.png](fileId:1053)\n\n# n8n Workflow: Automating Website Screenshots from Google Sheets\n\nThis n8n workflow captures screenshots of websites listed in a Google Sheet and saves them to Google Drive using the CustomJS PDF Toolkit.\n\n[@custom-js/n8n-nodes-pdf-toolkit](@custom-js/n8n-nodes-pdf-toolkit)\n\n## Features\n\n- **Monitors** a Google Sheet for new rows with website URLs.\n- **Captures** screenshots of the websites using the CustomJS PDF Toolkit.\n- **Uploads** the screenshots to a specified Google Drive folder.\n\n# Notice \nCommunity nodes can only be installed on self-hosted instances of n8n.\n\n## Requirements\n\n- **Self-hosted** n8n instance\n- A **Google Sheets** document containing website URLs and Titles.\n- A **Google Drive** folder to store the screenshots.\n- A **CustomJS API key** for website screenshots.\n- **n8n credentials** for Google Sheets and Google Drive.\n\n## Workflow Steps\n\n1. **Google Sheets Trigger**\n\n   - Monitors a specified sheet for new rows.\n   - Extracts the `URL` and `Title` from the row.\n\n2. **Website Screenshot Node**\n\n   - Uses CustomJS PDF Toolkit to take a screenshot of the given URL.\n\n3. **Google Drive Upload**\n   - Saves the screenshot to a specific Google Drive folder.\n   - Uses the `Title` column as the filename.\n\n## Setup Guide\n\n### 1. Connect Google Sheets\n\n- Ensure your Google Sheet has a column named `Url` for website URLs and `Name` for website names.\n- Set up Google Sheets credentials in n8n.\n\n### 2. Configure CustomJS API\n\n- Sign up at [CustomJS](https://www.customjs.space).\n- Retrieve your API key from the profile page.\n![1.png](fileId:1054)\n- Add your API key as n8n credentials.\n![2.png](fileId:1052)\n\n### 3. Set Up Google Drive\n\n- Create a folder in Google Drive to store screenshots.\n- Copy the folder ID and set it in the Google Drive node in n8n.\n\n## Perfect for:\n\n- **Website monitoring**\n- **Generating visual archives of web pages**\n- **Automating content curation**\n\nThis workflow streamlines the process of capturing and organizing website screenshots efficiently.\n",
    "workflow": {
      "meta": {
        "instanceId": "b503899dfd9ae32bbf8e1f446a1f2c9b3c59f80c79b274c49b1606b7ae9579e1"
      },
      "nodes": [
        {
          "id": "21da7bb6-6544-4756-9d0a-ab8ae21650d4",
          "name": "Google Sheets Trigger",
          "type": "n8n-nodes-base.googleSheetsTrigger",
          "position": [
            -120,
            -20
          ],
          "parameters": {
            "event": "rowAdded",
            "options": {},
            "pollTimes": {
              "item": [
                {
                  "mode": "everyMinute"
                }
              ]
            },
            "sheetName": {
              "__rl": true,
              "mode": "list",
              "value": "gid=0",
              "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1SP8Y-qffC96ZV3ueVUYWP5pjqtaycaM7Kbv5L-ztw5g/edit#gid=0",
              "cachedResultName": "Sheet1"
            },
            "documentId": {
              "__rl": true,
              "mode": "list",
              "value": "1SP8Y-qffC96ZV3ueVUYWP5pjqtaycaM7Kbv5L-ztw5g",
              "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1SP8Y-qffC96ZV3ueVUYWP5pjqtaycaM7Kbv5L-ztw5g/edit?usp=drivesdk",
              "cachedResultName": "URL list"
            }
          },
          "typeVersion": 1
        },
        {
          "id": "39a9a0a3-13c7-4271-bca4-31848201e48b",
          "name": "Take a screenshot of a website",
          "type": "@custom-js/n8n-nodes-pdf-toolkit.websiteScreenshot",
          "position": [
            160,
            -20
          ],
          "parameters": {
            "urlInput": "={{ $json.Url }}"
          },
          "typeVersion": 1
        },
        {
          "id": "1dc3cb1a-99ee-4e85-b628-0f4a77149728",
          "name": "Store Screenshots",
          "type": "n8n-nodes-base.googleDrive",
          "position": [
            400,
            -20
          ],
          "parameters": {
            "name": "={{ $json.Title }}.png",
            "driveId": {
              "__rl": true,
              "mode": "list",
              "value": "My Drive"
            },
            "options": {},
            "folderId": {
              "__rl": true,
              "mode": "list",
              "value": "1oFbmzgG2fsRix45r5JtowYjAdwskJ0P6",
              "cachedResultUrl": "https://drive.google.com/drive/folders/1oFbmzgG2fsRix45r5JtowYjAdwskJ0P6",
              "cachedResultName": "screenshots"
            }
          },
          "typeVersion": 3
        }
      ],
      "pinData": {},
      "connections": {
        "Google Sheets Trigger": {
          "main": [
            [
              {
                "node": "Take a screenshot of a website",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Take a screenshot of a website": {
          "main": [
            [
              {
                "node": "Store Screenshots",
                "type": "main",
                "index": 0
              }
            ]
          ]
        }
      }
    },
    "lastUpdatedBy": 29,
    "workflowInfo": {
      "nodeCount": 3,
      "nodeTypes": {
        "n8n-nodes-base.googleDrive": {
          "count": 1
        },
        "n8n-nodes-base.googleSheetsTrigger": {
          "count": 1
        },
        "@custom-js/n8n-nodes-pdf-toolkit.websiteScreenshot": {
          "count": 1
        }
      }
    },
    "status": "published",
    "readyToDemo": null,
    "user": {
      "name": "CustomJS",
      "username": "customjs",
      "bio": "",
      "verified": true,
      "links": [
        "https://www.customjs.space"
      ],
      "avatar": "https://gravatar.com/avatar/942ecdadf17761bc7f516b67fb0f3617809720caf8912cfd1815ed2a9f8b9ad3?r=pg&d=retro&size=200"
    },
    "nodes": [
      {
        "id": 58,
        "icon": "file:googleDrive.svg",
        "name": "n8n-nodes-base.googleDrive",
        "codex": {
          "data": {
            "resources": {
              "generic": [
                {
                  "url": "https://n8n.io/blog/your-business-doesnt-need-you-to-operate/",
                  "icon": " 🖥️",
                  "label": "Hey founders! Your business doesn't need you to operate"
                },
                {
                  "url": "https://n8n.io/blog/why-this-product-manager-loves-workflow-automation-with-n8n/",
                  "icon": "🧠",
                  "label": "Why this Product Manager loves workflow automation with n8n"
                },
                {
                  "url": "https://n8n.io/blog/aws-workflow-automation/",
                  "label": "7 no-code workflow automations for Amazon Web Services"
                }
              ],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googledrive/"
                }
              ],
              "credentialDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/"
                }
              ]
            },
            "categories": [
              "Data & Storage"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0"
          }
        },
        "group": "[\"input\"]",
        "defaults": {
          "name": "Google Drive"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiB2aWV3Qm94PSIwIDAgODEgNzMiPjx1c2UgeGxpbms6aHJlZj0iI2EiIHg9Ii41IiB5PSIuNSIvPjxzeW1ib2wgaWQ9ImEiIG92ZXJmbG93PSJ2aXNpYmxlIj48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0ibm9uZSI+PHBhdGggZmlsbD0iIzAwNjZkYSIgZD0ibTYuMDQ4IDYxLjI2IDMuNTI4IDYuMDk0Yy43MzMgMS4yODMgMS43ODcgMi4yOTEgMy4wMjQgMy4wMjRsMTIuNi0yMS44MUgwYTguMyA4LjMgMCAwIDAgMS4xIDQuMTI0eiIvPjxwYXRoIGZpbGw9IiMwMGFjNDciIGQ9Ik00MCAyMi45MSAyNy40IDEuMWMtMS4yMzcuNzMzLTIuMjkxIDEuNzQxLTMuMDI0IDMuMDI0TDEuMSA0NC40NDVBOC4zIDguMyAwIDAgMCAwIDQ4LjU2OGgyNS4yeiIvPjxwYXRoIGZpbGw9IiNlYTQzMzUiIGQ9Ik02Ny40IDcwLjM3OGMxLjIzNy0uNzMzIDIuMjkxLTEuNzQxIDMuMDI0LTMuMDI0bDEuNDY2LTIuNTIgNy4wMS0xMi4xNDJhOC4zIDguMyAwIDAgMCAxLjEtNC4xMjRINTQuNzk4bDUuMzYzIDEwLjUzOHoiLz48cGF0aCBmaWxsPSIjMDA4MzJkIiBkPSJNNDAgMjIuOTEgNTIuNiAxLjFDNTEuMzYzLjM2NyA0OS45NDMgMCA0OC40NzcgMEgzMS41MjRjLTEuNDY2IDAtMi44ODcuNDEyLTQuMTI0IDEuMXoiLz48cGF0aCBmaWxsPSIjMjY4NGZjIiBkPSJNNTQuNzk5IDQ4LjU2OEgyNS4ybC0xMi42IDIxLjgxYzEuMjM3LjczMyAyLjY1NyAxLjEgNC4xMjQgMS4xaDQ2LjU1MmMxLjQ2NiAwIDIuODg3LS40MTIgNC4xMjQtMS4xeiIvPjxwYXRoIGZpbGw9IiNmZmJhMDAiIGQ9Ik02Ny4yNjIgMjQuMjg0IDU1LjYyNCA0LjEyNEM1NC44OTEgMi44NDEgNTMuODM3IDEuODMzIDUyLjYgMS4xTDQwIDIyLjkxbDE0LjggMjUuNjU5aDI1LjE1NWE4LjMgOC4zIDAgMCAwLTEuMS00LjEyNHoiLz48L2c+PC9zeW1ib2w+PC9zdmc+"
        },
        "displayName": "Google Drive",
        "typeVersion": 3,
        "nodeCategories": [
          {
            "id": 3,
            "name": "Data & Storage"
          }
        ]
      },
      {
        "id": 841,
        "icon": "file:googleSheets.svg",
        "name": "n8n-nodes-base.googleSheetsTrigger",
        "codex": {
          "data": {
            "alias": [
              "CSV",
              "Spreadsheet",
              "GS"
            ],
            "resources": {
              "generic": [],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.googlesheetstrigger/"
                }
              ],
              "credentialDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/"
                }
              ]
            },
            "categories": [
              "Data & Storage",
              "Productivity"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0"
          }
        },
        "group": "[\"trigger\"]",
        "defaults": {
          "name": "Google Sheets Trigger"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,P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2Mi4yMTJoLTYuNjcyeiIvPjwvZz48L3N2Zz4="
        },
        "displayName": "Google Sheets Trigger",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 3,
            "name": "Data & Storage"
          },
          {
            "id": 4,
            "name": "Productivity"
          }
        ]
      }
    ],
    "categories": [
      {
        "id": 36,
        "name": "File Management"
      }
    ],
    "image": [
      {
        "id": 1052,
        "url": "https://n8niostorageaccount.blob.core.windows.net/n8nio-strapi-blobs-prod/assets/2_e924a2a24b.png"
      },
      {
        "id": 1053,
        "url": "https://n8niostorageaccount.blob.core.windows.net/n8nio-strapi-blobs-prod/assets/workflow_c5af8fc945.png"
      },
      {
        "id": 1054,
        "url": "https://n8niostorageaccount.blob.core.windows.net/n8nio-strapi-blobs-prod/assets/1_354480d9e7.png"
      }
    ]
  }
}