Automate scraping websites for new PDFs, extracting content, generating executive summaries using AI (Llama via OpenRouter), and tracking processing status in Google Sheets with this n8n workflow.
Download this n8n workflow template and start using it instantly.
• Financial analysts and researchers who need to monitor company reports and filings.
• Automation specialists looking for advanced n8n templates combining web scraping, AI, and structured data management.
• Users seeking to build custom knowledge base or news aggregation services using an n8n workflow.
• Developers needing an example of using the OpenRouter n8n node for large language models.
Keeping track of new company reports or regulatory filings published on various websites can be a massive manual effort. This advanced n8n workflow provides a fully automated solution. It systematically scrapes a target website for new PDF links, downloads the files, and uses a powerful Large Language Model (specifically Llama 4 Maverick via the OpenRouter n8n node) to generate concise, investor-focused executive summaries.
By leveraging Google Sheets for tracking, the n8n workflow ensures that no document is processed twice. This automation saves significant time, provides immediate insights via Discord, and demonstrates the power of combining web scraping and AI within a single, reliable n8n template.
This comprehensive n8n workflow utilizes multiple steps for automated processing.
Schedule Trigger n8n trigger (set weekly in this template).HTTP Request n8n node fetches the target website's content. The subsequent HTML n8n node extracts all links ending in .pdf (PDF links) from the HTML source.Code n8n node normalizes the relative links into absolute URLs. Simultaneously, the Get row(s) in sheet n8n node fetches previously tracked URLs from Google Sheets. These lists are combined and processed by Merge and Append or update row in sheet to ensure only new, unique URLs proceed.HTTP Request1 n8n node downloads the file. The Extract from File n8n node then converts the binary PDF into raw text content.AI Agent n8n node. This agent uses the OpenRouter Chat Model (Llama) and Simple Memory to follow a predefined prompt, generating an executive summary focusing on key actions and financial impacts.Code n8n node is used to split the lengthy AI summary into smaller chunks (max 1900 characters) suitable for posting. The final summary is delivered via the Discord n8n node.enviado_discord flag to true using Edit Fields1 and updating the corresponding row in Google Sheets via the Update row in sheet n8n node, confirming successful completion.To implement this n8n workflow, follow these steps:
OpenRouter Chat Model n8n node.Discord n8n node.HTTP Request n8n node with the URL of the website you wish to scrape.Code n8n node if the extracted PDF links are relative (currently set to https://www.playway.com).AI Agent n8n node to tailor the executive summary to your specific analytical needs. Schedule Trigger / Manual Trigger (n8n trigger): Defines the start of the n8n workflow, allowing for scheduled weekly execution or immediate manual runs.
HTTP Request (Scraper): Downloads the raw HTML content of the target website. Key configuration: Requires the target URL input.
HTML (n8n node): Extracts PDF links using the CSS selector a[href$=".pdf"] and returns them as an array of attributes (href).
Code (Listar los pdfs): A crucial custom script that iterates through the extracted links and constructs absolute URLs by prepending a defined base URL. This transforms the input for subsequent download steps.
Google Sheets (Get row(s), Append or update row, Update row): Used extensively for persistence. It checks for previously processed URLs, tracks new discoveries, and marks records as enviado_discord: true upon successful summarization.
HTTP Request1 (Downloader): Downloads the actual PDF file content based on the URL provided by the previous n8n node. Key configuration: Response format is set to file.
Extract from File (n8n node): Reads the downloaded PDF file data and extracts all contained text.
OpenRouter Chat Model (n8n node): Connects to the LLM (Llama 4 Maverick is pre-selected) via the OpenRouter API to provide the language processing capabilities for the AI Agent.
AI Agent (n8n node): Orchestrates the summarization process using the extracted text and the specified Llama model, adhering to a detailed executive summary prompt.
Code (Filtro caracteres max): Splits the large AI output text into smaller, Discord-compliant message sizes (chunks of 1900 characters).
Automate flight price tracking using this n8n workflow. Monitor API data against historical records and receive instant price drop or increase alerts via Gmail and Telegram.

Use this powerful n8n workflow to automate hourly monitoring of airport delay data via the FlightStats API. Log results to Google Sheets and send immediate Slack alerts for severe delays. Explore other useful n8n templates.

Boost your sales productivity with this n8n workflow. Automatically trigger daily research, enrich company data via Clearbit, scrape recent LinkedIn posts and Twitter activity, and compile it into a detailed email using this powerful n8n template.

A crucial n8n workflow template that loads content from multiple Google Drive documents within a specified folder and aggregates them into a single, clean JSON dictionary using an n8n Code node. Ideal for RAG or AI inputs.

Técnico en automatización y robótica, compartiré todo tipo de automatizaciones con la comunidad hispanohablante a través de youtube.







































