Back to Templates
This n8n workflow automates Pinterest content scraping based on user-provided keywords using BrightData's API and Claude Sonnet 4 AI agent. The system intelligently processes keywords, initiates scraping jobs, monitors progress, and formats the extracted data into structured outputs.
claude-sonnet-4-20250514
https://api.brightdata.com/datasets/v3/trigger
dataset_id
: gd_lk0sjs4d21kdr7cnlv
include_errors
: true
type
: discover_new
discover_by
: keyword
limit_per_input
: 2
https://api.brightdata.com/datasets/v3/progress/{snapshot_id}
https://api.brightdata.com/datasets/v3/snapshot/{snapshot_id}
Anthropic API
ANTHROPIC_CREDENTIAL_ID
BrightData API
BRIGHT_DATA_API_KEY
Google Sheets OAuth2
GOOGLE_SHEETS_CREDENTIAL_ID
Replace the following placeholders with actual values:
WEBHOOK_ID_PLACEHOLDER
: Form trigger webhook IDGOOGLE_SHEET_ID_PLACEHOLDER
: Target Google Sheets document IDWORKFLOW_VERSION_ID
: n8n workflow versionINSTANCE_ID_PLACEHOLDER
: n8n instance identifierWORKFLOW_ID_PLACEHOLDER
: Unique workflow identifierUser Input (Keywords)
↓
AI Agent Processing (Claude)
↓
BrightData Scraping Job Creation
↓
Status Monitoring Loop
↓
Data Retrieval (when ready)
↓
Content Formatting & Extraction
↓
Google Sheets Storage
Each scraped Pinterest pin contains:
Initial Setup:
Running the Workflow:
Monitoring Progress:
Accessing Results:
limit_per_input
parameterCreate a copy of the sample sheet structure:
https://docs.google.com/spreadsheets/d/SAMPLE_SHEET_ID/edit
Required columns:
For any questions or support, please contact: Email or
fill out this form