Use this powerful n8n workflow to scrape Amazon Bestsellers using Decodo API, extract structured data with an OpenAI agent, and automatically generate detailed PDF purchase reports for Slack and Google Drive.
Download this n8n workflow template and start using it instantly.
Market analysts needing real-time price and ranking data from large e-commerce sites.
Operations teams looking for ready-to-use n8n templates for data ingestion and reporting.
Developers utilizing the Decodo Scraper API and LangChain agents within an n8n node environment.
Users seeking high-level, production-ready n8n automation for AI-driven web scraping.
This advanced n8n workflow provides a complete solution for deep web scraping and automated business intelligence reporting. It addresses the challenge of scraping complex, JavaScript-heavy sites like Amazon by leveraging the Decodo Scraper API for reliable content retrieval. The raw HTML is then passed to an intelligent AI agent using the LangChain n8n node, which performs structured data extraction. Finally, the system compiles the insights into a professional, statistical report (analyzing prices, ratings, and categories), saves it as a Google Doc and PDF, and pushes the final artifact to Slack, showcasing the power of integrated AI and data operations within the n8n ecosystem. This end-to-end n8n workflow template minimizes manual data processing time and delivers actionable insights automatically.
When clicking ‘Execute workflow’ n8n trigger, initiating the automation on demand.Edit Fields n8n node configures the necessary Decodo API token and the Amazon Best Sellers URL, defining the inputs for the rest of the n8n workflow.Scraper API Request HTTP Request n8n node calls the Decodo API to crawl the target URL, handling rendering and headless JavaScript to ensure accurate data capture.HTML Response Parser code n8n node cleans the resulting raw HTML, preparing the text for the AI by stripping scripts, styles, and normalizing whitespace.Product Analyzer Agent (a LangChain n8n node), utilizing the OpenAI Chat Model and a Structured Output Parser, processes the cleaned text. The parser enforces a strict JSON schema, ensuring consistent extraction of book details like title, author, and price, a core function of this n8n workflow.Build 📚 Book Purchase Report code n8n node generates a detailed Markdown report based on the extracted structured JSON data, including KPIs, price distributions, and popularity rankings.Create document file), and finally converting and downloading it as a PDF (Convert document to PDF).Upload report to Slack n8n node to distribute the PDF file to the designated team channel, completing the automated distribution component of the n8n workflow.This n8n workflow requires credentials for four services: Decodo, OpenAI, Google Drive, and Slack.
Edit Fields n8n node, replace the placeholder text in the Authenticate_Token assignment with your actual Decodo API Key.OpenAI Chat Model n8n node with your OpenAI API Key credential, ensuring access to a capable model like gpt-4.1-mini.Configure Google Drive Folder n8n node, update the Drive Folder ID assignment to your preferred destination folder.files:write and chat:write scopes. Update the Channel ID in the Upload report to Slack n8n node to target your team's channel. When clicking ‘Execute workflow’ (Manual Trigger): This is the primary n8n trigger that starts the execution of the entire n8n workflow.
Edit Fields (Set n8n node): Configures the core input variables, including the Authenticate_Token for Decodo and the Amazon target url (https://www.amazon.com/Best-Sellers-Books/zgbs/books).
Scraper API Request (HTTP Request n8n node): Sends a POST request to the Decodo Scraper API (https://scraper-api.decodo.com/v2/scrape) to retrieve the fully rendered HTML of the Amazon page.
HTML Response Parser (Code n8n node): Uses custom JavaScript to clean the raw HTML, removing JavaScript, CSS, and excessive whitespace, making the output optimal for large language model ingestion.
Product Analyzer Agent (LangChain Agent n8n node): This n8n node leverages the AI model to intelligently extract structured book data (title, price, rank) from the cleaned text using a pre-defined JSON schema.
Structured Output Parser (LangChain n8n node): Ensures the data extracted by the AI adheres strictly to the required JSON format, guaranteeing reliable downstream processing in this n8n workflow.
Build 📚 Book Purchase Report (Code n8n node): Calculates statistical metrics (e.g., average price, median rating, category counts) and formats the data into a high-quality Markdown report.
Create document file (HTTP Request n8n node): Uses the Google Drive API to upload the generated Markdown as a new Google Document file.
Convert document to PDF (Google Drive n8n node): Exports the newly created Google Document into a portable PDF format, ready for distribution.
Upload report to Slack (Slack n8n node): The final step in the n8n workflow, distributing the generated PDF report to a specified Slack channel.
Use this powerful n8n workflow to automate the extraction of Amazon Best Seller product information using Bright Data's Web Unlocker and structured data cleanup via the Google Gemini n8n node.

Use this specialized n8n workflow template to automatically fetch HackerOne reports and extract actionable security insights, payloads, and techniques using the Google Gemini AI Chat Model.

Use this powerful n8n workflow to automatically extract, validate, and analyze legal citations from documents using the specialized PDF Vector n8n node and custom processing, resulting in detailed reports.

Scrape Amazon product titles and URLs across multiple search pages (1-10) using this powerful n8n workflow. Integrates Olostep for reliable, structured data extraction.

Leverage this advanced n8n workflow to reliably scrape Amazon product data using Scrape.do, clean and structure the raw HTML with the OpenAI n8n node (GPT-4), and automatically save the standardized results to Google Sheets. Start automating complex data extraction today.

Empowering small and medium businesses with smart automation and practical AI, no big tech team required. Youtube channel: youtube.com/@theStackExplorer







































