workflows.fit
Back to n8n workflows
n8n templateFreeBy Trung Tran

Extract Amazon book data & generate purchase reports with Decodo Scraper

Decodo Scraper API Workflow Template (n8n Automation Amazon Book Purchase Report) Watch the demo video below: [![Watch the video](https://s3.ap-southeast-1.amazonaws.com/automatewith.me/how-to-use-scraper-api-with-n8n...

DevelopmentCore NodesCommunicationHITLData & StorageAILangchainManual Trigger
Loading interactive preview...

Template notes

Decodo Scraper API Workflow Template (n8n Automation Amazon Book Purchase Report) Watch the demo video below: [![Watch the video](https://s3.ap-southeast-1.amazonaws.com/automatewith.me/how-to-use-scraper-api-with-n8n.jpg)](https://www.youtube.com/watch?v=9Kn583UJlqY) > This workflow demos how to use Decodo Scraper API to crawl any public web page (headless JS, device emulation: mobile/desktop/tablet), extract structured product data from the returned HTML, generate a purchase-ready report, and automatically deliver it as a Google Doc + PDF to Slack/Drive. 🚀 Try Decodo — Web Scraping & Data API (Coupon: TRUNG) ![Decodo Logo](https://s3.ap-southeast-1.amazonaws.com/automatewith.me/decodo-logo-black.jpg) Decodo is a powerful public data access platform offering managed web scraping APIs and proxy infrastructure to collect structured web data at scale. It handles proxies, anti-bot protection, JavaScript rendering, retries, and global IP rotation—so you can focus on data, not scraping complexity. Why Decodo - Managed Web Scraping API with anti-bot bypass & high success rates - Works with JS-heavy sites; outputs JSON/HTML/CSV - Easy integration (Python, Node.js, cURL) for eCommerce, SERP, social & general web data 🎟️ Special Discount Use coupon TRUNG to get the Advanced Scraping API plan — ~23,000 requests for ~$5.

Who’s it for - Creators / Analysts who need quick product lists (books, gadgets, etc.) with prices/ratings. - Ops & Marketing teams building weekly “top picks” reports. - Engineers validating the Decodo Scraper API + LLM extraction pattern before scaling.

How it works / What it does

1. Trigger – Manually run the workflow. 2. Edit Fields (manual) – Provide inputs: - targetUrl (e.g., an Amazon category/search/listing page) - deviceType (desktop | mobile | tablet) - Optional: maxItems, notes, reportTitle, reportOwner 3. Scraper API Request (HTTP Request → POST) Calls Decodo Scraper API with: - URL to crawl, headless JS enabled - Device emulation (UA + viewport) - Optional waitFor / executeJS to ensure late-loading content is captured 4. HTML Response Parser (Code/Function or HTML node) Pulls the HTML string from Decodo response and normalizes it (strip scripts/styles, collapse whitespace). 5. Product Analyzer Agent (LLM + Structured Output Parser) Prompts an LLM to extract structured “book” objects from the HTML: The Structured Output Parser enforces a strict JSON schema and drops malformed items. 6. Build 📚 Book Purchase Report (Code/LLM) Converts the JSON array into a Markdown (or HTML) report with: - Executive summary (top picks, average price/rating) - Table of items (rank, title, author, price, rating, link) - “Recommended to buy” shortlist (rules configurable) - Notes / owner / timestamp 7. Configure Google Drive Folder (manual) Choose/create a Drive folder for output artifacts. 8. Create Document File (Google Docs API) Creates a Doc from the generated Markdown/HTML. 9. Convert Document to PDF (Google Drive export) Exports the Doc to PDF. 10. Upload report to Slack Sends the PDF (and/or Doc link) to a chosen Slack channel with a short summary.

How to set up

1 Prerequisites - n8n (self-hosted or Cloud) - Decodo Scraper API key - OpenAI (or compatible) API key for the Analyzer Agent - Google Drive/Docs credentials (OAuth2) - Slack Bot/User token (files:write, chat:write)

2 Environment variables (recommended) - DECODOAPIKEY - OPENAIAPIKEY - DRIVEFOLDERID (optional default) - SLACKCHANNELID

3 Nodes configuration (high level) Edit Fields (Set node) Scraper API Request (HTTP Request → POST) HTML Response Parser (Code node) Product Analyzer Agent Build Book Purchase Report (Code/LLM) Create Document File Convert to PDF Upload to Slack