Automate Pinterest content scraping using an advanced n8n workflow, BrightData, and an AI Agent (Claude/LangChain). This n8n template extracts structured content and saves it directly to Google Sheets.
Download this n8n workflow template and start using it instantly.
This powerful n8n workflow solves the challenge of dynamic, large-scale web scraping by integrating an AI Agent architecture with a professional scraping service. Unlike simple HTTP request flows, this n8n template uses a LangChain Agent to intelligently manage the scraping process, including launching the job, continuously checking the status (polling), and finally downloading the data once the status is 'ready'. This ensures reliability and handles the asynchronous nature of web scraping APIs.
The resulting raw data is then cleaned and structured by an n8n node dedicated to data extraction, transforming unstructured text into clean fields (Title, URL, Image URL). The final structured output is seamlessly saved into a Google Sheet, providing a complete, hands-free data pipeline entirely within n8n.
The entire process is initiated by the custom form n8n trigger:
BrightData Pinterest Scraping tool (an n8n node utilizing an HTTP POST request) to launch a scraping snapshot using the keyword. This returns a snapshotid.Check Scraping Status n8n node (HTTP GET request) to repeatedly poll BrightData using the snapshotid until the status changes from 'running' to 'ready'.Fetch Pinterest Snapshot Data n8n node to download the complete scraped dataset.Format & Extract Pinterest Content Code n8n node. This node uses custom JavaScript and regex to parse the raw text, extracting fields like Title, Post ID, Image URL, and Hashtags into structured JSON objects.Save Pinterest Data to Google Sheets n8n node appends the clean, structured data columns (Title, Content, Post URL, Image URL) to the designated Google Sheets document. This comprehensive n8n workflow provides a robust solution for content extraction.To set up this powerful n8n template, follow these steps:
Anthropic Chat Model node (using Claude 4 Sonnet).BrightData Pinterest Scraping, Check Scraping Status, and Fetch Pinterest Snapshot Data HTTP Request nodes with your actual BrightData API key.Save Pinterest Data to Google Sheets n8n node.datasetid in the BrightData n8n node with the ID of your intended Pinterest collector.GOOGLESHEETIDPLACEHOLDER in the Google Sheets n8n node with the ID of your target sheet. Ensure the sheet contains columns for 'Title', 'Content', 'Post URL', and 'Image URL'. Pinterest Keyword Input (Form Trigger): The starting n8n trigger. Configured to collect the 'Keywords' field, which feeds the input into the AI Agent.
Anthropic Chat Model (LangChain LM): Provides the intelligence for the AI Agent, utilizing the powerful claude-sonnet-4-20250514 model.
Keyword-based Scraping Agent (LangChain Agent): The control center n8n node. It is instructed to use three subsequent HTTP Request nodes as tools to launch, check, and download data, ensuring a reliable execution of the scraping n8n workflow.
BrightData Pinterest Scraping (HTTP Request Tool): This n8n node launches the scraping job. Key Configuration includes a POST request to the BrightData /datasets/v3/trigger endpoint, passing the user's keyword and BrightData specific query parameters (datasetid, type: discovernew, discoverby: keyword).
Check Scraping Status (HTTP Request Tool): This n8n node dynamically checks the status URL using the snapshotid returned from the previous step, allowing the AI Agent to perform necessary polling.
Fetch Pinterest Snapshot Data (HTTP Request Tool): Executes only when the status is 'ready'. This n8n node retrieves the actual scraped content from the BrightData API.
Format & Extract Pinterest Content (Code Node): Crucial processing n8n node. Contains custom JavaScript using regex patterns to parse the raw, text-based output into a structured format (e.g., extracting URL, Title, and Hashtags).
Save Pinterest Data to Google Sheets (Google Sheets Node): The final action n8n node. Configured to append the structured data (Title, Content, Post URL, Image URL) to the specified Google Sheet document, completing the automated data pipeline.
Deploy a robust n8n workflow to manage your Pinecone vector database indices and vectors. Use this n8n template for RAG applications and AI tool integration.

This robust n8n workflow automates the creation of photorealistic social media images using RunComfy's ComfyUI Flux Realism models. It manages prompts from Airtable, handles server lifecycle, and updates records automatically. Deploy this n8n template for scalable AI content generation.

Automate phishing threat detection using this robust n8n workflow. Integrate Outlook, VirusTotal, and URLScan.io to analyze suspicious URLs, classify threats, and report consolidated security results via Slack.

Build a robust n8n workflow to place subjects into iconic locations using the Replicate AI model. This n8n template features automated polling, robust error handling, and structured JSON output for production use.









































