{
  "id": "rZUGnDWjoGy2pTfc",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Scrape Product Info from Website URLs in Google Sheets using Dumpling AI",
  "tags": [],
  "nodes": [
    {
      "id": "723c50fc-f9bb-4a9c-ba59-929afa88affc",
      "name": "Watch New Website URL in Google Sheets",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        -400,
        -40
      ],
      "parameters": {
        "event": "rowAdded",
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1yUCXVTVaFZTAx3x-5CgqwOx1syJ0Xhop9XcPZUFKojI/edit#gid=0",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1yUCXVTVaFZTAx3x-5CgqwOx1syJ0Xhop9XcPZUFKojI/edit?usp=drivesdk",
          "cachedResultName": "lead's website"
        }
      },
      "credentials": {
        "googleSheetsTriggerOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "2adc3154-b6d7-4e70-8dea-d41ab6d76e60",
      "name": "Extract Product Info with Dumpling AI",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -180,
        -40
      ],
      "parameters": {
        "url": "https://app.dumplingai.com/api/v1/extract",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"url\": \"{{ $json.Website }}\",\n  \"schema\": {\n    \"productName\": \"string\",\n    \"price\": \"string\",\n    \"review\": \"string?\",\n    \"productDescription\": \"string\"\n  }\n}\n",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "7e9fad7a-df64-4dbd-b78c-680f25e0cdab",
      "name": "Split Extracted Products",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        40,
        -40
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "results"
      },
      "typeVersion": 1
    },
    {
      "id": "bbc22f2d-a5df-4461-aaa2-ada5ea1cc348",
      "name": "Append Product Info to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        260,
        -40
      ],
      "parameters": {
        "columns": {
          "value": {
            "price": "={{ $json.price }}",
            "productName": "={{ $json.productName }}",
            "productDescription": "={{ $json.productDescription }}"
          },
          "schema": [
            {
              "id": "productName",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "productName",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "price",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "price",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "review",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "review",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "productDescription",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "productDescription",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 1143304403,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1yUCXVTVaFZTAx3x-5CgqwOx1syJ0Xhop9XcPZUFKojI/edit#gid=1143304403",
          "cachedResultName": "product details"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1yUCXVTVaFZTAx3x-5CgqwOx1syJ0Xhop9XcPZUFKojI",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1yUCXVTVaFZTAx3x-5CgqwOx1syJ0Xhop9XcPZUFKojI/edit?usp=drivesdk",
          "cachedResultName": "lead's website"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "d93a9076-63e9-46fe-9b29-efe78215dc98",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -380,
        -280
      ],
      "parameters": {
        "width": 540,
        "height": 320,
        "content": "### \ud83d\udecd\ufe0f Scrape Product Info from Website URLs in Google Sheets using Dumpling AI\n\nThis workflow monitors a Google Sheet for new rows containing website URLs. When a new URL is added:\n\n1. It sends the URL to **Dumpling AI** to extract product data like `productName`, `price`, and `productDescription`\n2. If multiple products are found, it splits them into individual items\n3. It appends the cleaned data into another sheet titled **\"product details\"**\n\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b90d016a-e6b0-4629-a5d6-d5e6636868b4",
  "connections": {
    "Split Extracted Products": {
      "main": [
        [
          {
            "node": "Append Product Info to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Product Info with Dumpling AI": {
      "main": [
        [
          {
            "node": "Split Extracted Products",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Watch New Website URL in Google Sheets": {
      "main": [
        [
          {
            "node": "Extract Product Info with Dumpling AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}