{
  "name": "Pinterest keyword-based content scraper with AI agent & BrightData automation",
  "nodes": [
    {
      "id": "5234018f-d12c-439f-9713-2a7cd9cb239f",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -240,
        320
      ]
    },
    {
      "id": "e3ebf96d-a8d9-41cf-b5bc-d7eda3776aa2",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        -200
      ],
      "parameters": {
        "width": 500,
        "height": 260,
        "content": "🤖 AI Agent  \nProcesses input keyword via language model (Claude). Acts as controller for all scraping-related steps.\n"
      }
    },
    {
      "id": "b47df625-4d67-4d9c-b94c-dc32a09077be",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1080,
        260
      ],
      "parameters": {
        "width": 320,
        "height": 260,
        "content": "⏱️ Wait Timer (Disabled)  \nWaits 1 minute before retrying scraping status. Currently disabled but useful for longer jobs.\n"
      }
    },
    {
      "id": "a674d3dc-ff9f-42fc-8bc4-737a64ef0bd1",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        700,
        360
      ],
      "parameters": {
        "width": 320,
        "height": 260,
        "content": "📦 Download Scraped Data  \nFetches scraped Pinterest data once the snapshot status is \"ready\". This returns actual content data.\n"
      }
    },
    {
      "id": "966c2317-199b-439a-9651-37fde866eae2",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        360
      ],
      "parameters": {
        "width": 280,
        "height": 260,
        "content": "🔄 Check Snapshot Progress  \nContinuously checks scraping status (like \"running\", \"ready\") using `snapshot_id`. Loops until data is ready.\n"
      }
    },
    {
      "id": "28aaa784-5cb2-42db-b170-284cbf3bfcdb",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        280
      ],
      "parameters": {
        "width": 280,
        "height": 280,
        "content": "🚀 Launch Scraping Job  \nSends the keyword to BrightData API using POST request to create a scraping snapshot. Returns a `snapshot_id`.\n"
      }
    },
    {
      "id": "38c7467d-cc5f-4e7e-acfc-339e9700ff49",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        200
      ],
      "parameters": {
        "width": 280,
        "height": 260,
        "content": "🧠 Claude Sonnet 4 Model  \nUsed to intelligently process, understand, or enrich keywords before initiating scrape via the AI agent.\n"
      }
    },
    {
      "id": "5fc7d5ee-83a4-4f5f-b41b-270af43f6f2c",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        -240
      ],
      "parameters": {
        "width": 260,
        "height": 280,
        "content": "📥 Keyword Input Form  \nUser submits keywords here to initiate scraping. This is the entry trigger for the Pinterest automation.\n"
      }
    },
    {
      "id": "dcdb9696-579f-49fc-bab0-3f81a4f87595",
      "name": "BrightData Pinterest Scraping",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        140,
        400
      ]
    },
    {
      "id": "9657f18e-62d4-44d4-8537-39175b983f17",
      "name": "Check Scraping Status",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        460,
        480
      ]
    },
    {
      "id": "d2af5353-509f-4a82-b861-f66c5add7abb",
      "name": "Fetch Pinterest Snapshot Data",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        800,
        460
      ]
    },
    {
      "id": "72be1274-d741-46b1-8fb9-edfd4dc44e69",
      "name": "Pinterest Keyword Input",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        40,
        -120
      ]
    },
    {
      "id": "ea43cb15-38f9-46c7-b1da-320a2687d65a",
      "name": "Wait for 1 Minute",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        1180,
        360
      ]
    },
    {
      "id": "834ca6f4-0f62-4de3-a321-20455864df1f",
      "name": "Keyword-based Scraping Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        360,
        -120
      ]
    },
    {
      "id": "29790c94-25fc-4bb3-89ec-1bc64bf0558d",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        -480
      ],
      "parameters": {
        "width": 660,
        "height": 140,
        "content": "📌 Notes Placeholder  \nCurrently unused — ideal for adding documentation, reminders, or tips related to this automation.\n"
      }
    },
    {
      "id": "65d06d4d-4ff4-4db6-a8fa-3ffb4cc144e6",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        -200
      ],
      "parameters": {
        "width": 380,
        "height": 280,
        "content": "\"This is the final output step where formatted Pinterest content is saved for future use, reporting, or distribution.\""
      }
    },
    {
      "id": "7bad4070-9b30-4929-89c0-7130a6021349",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        -220
      ],
      "parameters": {
        "width": 260,
        "height": 280,
        "content": "Extracts and structures scraped Pinterest data into clean fields like Title, URL, Content, Image URL, Hashtags, etc."
      }
    },
    {
      "id": "e5e34ef4-5344-4aff-9dc9-3094362c35f0",
      "name": "Format & Extract Pinterest Content",
      "type": "n8n-nodes-base.code",
      "position": [
        880,
        -120
      ]
    },
    {
      "id": "7528da1f-032c-49f6-b088-997119a72b36",
      "name": "Save Pinterest Data to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1260,
        -120
      ]
    },
    {
      "id": "1ed9bda3-86ca-4699-b5a5-c90672a7dc9f",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        700,
        -520
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Create a copy of this sample sheet:\n\nhttps://docs.google.com/spreadsheets/d/SAMPLE_SHEET_ID/edit"
      }
    }
  ],
  "connections": {
    "Wait for 1 Minute": {
      "ai_tool": [
        [
          {
            "node": "Keyword-based Scraping Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Keyword-based Scraping Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Check Scraping Status": {
      "ai_tool": [
        [
          {
            "node": "Keyword-based Scraping Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Pinterest Keyword Input": {
      "main": [
        [
          {
            "node": "Keyword-based Scraping Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Keyword-based Scraping Agent": {
      "main": [
        [
          {
            "node": "Format & Extract Pinterest Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "BrightData Pinterest Scraping": {
      "ai_tool": [
        [
          {
            "node": "Keyword-based Scraping Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Pinterest Snapshot Data": {
      "ai_tool": [
        [
          {
            "node": "Keyword-based Scraping Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Format & Extract Pinterest Content": {
      "main": [
        [
          {
            "node": "Save Pinterest Data to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}