All work

Automation workflow · 2025 · n8n automation, Integrations

Amazon-to-Pinterest content automation

A scheduled enrichment and publishing pipeline using Google Sheets as a transparent, retry-safe operational queue.

Problem

Affiliate content requires repetitive extraction, copy generation, image preparation, publishing, and status tracking.

My role

Workflow design, scraping, local-LLM integration, image handling, and Pinterest publishing

Stack

  • n8n
  • Ollama
  • Mistral
  • ScraperAPI
  • Pinterest API
  • Google Sheets
  • Drive

How the work moves

  1. Step 01Sheet queueEligible product rows
  2. Step 02EnrichmentScrape + local LLM JSON
  3. Step 03Media2:3 image + Drive archive
  4. Step 04PublishPinterest API + confirmed status

The business problem

Affiliate publishing repeats the same fragile sequence: find a product, extract reliable details, write platform-specific copy, prepare media, publish, and remember what succeeded.

Workflow design

Google Sheets acts as a visible queue. The enrichment workflow selects rows with a product URL but no completed data, extracts the ASIN, scrapes the page, selects the best image, and asks a local Mistral model for JSON-only title and description output.

The publishing workflow prepares a 2:3 image, archives it in Drive, and calls the Pinterest API. A row changes state only after Pinterest confirms creation, keeping failed work retryable and avoiding intentional duplicate publication.