Breaking news aggregator with SendGrid and PostgreSQL
UnknownUnknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.
Community nodes
These come from third-party npm packages. In n8n 3.0 unverified community packages are off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
n8n-nodes-scrapegraphai(Scrape Regulatory Page)
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Scrapegraph Ai
n8n-nodes-scrapegraphai.scrapegraphAi - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - SendGrid
n8n-nodes-base.sendGrid - Postgres
n8n-nodes-base.postgres
What it does
Breaking News Aggregator with SendGrid and PostgreSQL ⚠️ COMMUNITY TEMPLATE DISCLAIMER: This is a community-contributed template that uses ScrapeGraphAI (a community node). Please ensure you have the ScrapeGraphAI community node installed in your n8n instance before using this template. This workflow automatically scrapes multiple government and regulatory websites, extracts the latest policy or compliance-related news, stores the data in PostgreSQL, and instantly emails daily summaries to your team through SendGrid. It is ideal for compliance professionals and industry analysts who need near real-time awareness of regulatory changes impacting their sector. Pre-conditions/Requirements Prerequisites - n8n instance (self-hosted or n8n.cloud) - ScrapeGraphAI community node installed - Operational SendGrid account - PostgreSQL database accessible from n8n - Basic knowledge of SQL for table creation Required Credentials - ScrapeGraphAI API Key – Enables web scraping and parsing - SendGrid API Key – Sends email notifications - PostgreSQL Credentials – Host, port, database, user, and password Specific Setup Requirements | Resource | Requirement | Example Value | |----------------|------------------------------------------------------------------|------------------------------| | PostgreSQL | Table with columns: id, title, url, source, publishedat| newsupdates | | Allowed Hosts | Outbound HTTPS access from n8n to target sites & SendGrid endpoint| https://.gov, https://api.sendgrid.com | | Keywords List | Comma-separated compliance terms to filter results | GDPR, AML, cybersecurity | How it works This workflow automatically scrapes multiple government and regulatory websites, extracts the latest policy or compliance-related news, stores the data in PostgreSQL, and instantly emails daily summaries to your team through SendGrid. It is ideal for compliance professionals and industry analysts who need near real-time awareness of regulatory changes impacting their sector. Key Steps: - Schedule Trigger: Runs once daily (or at any chosen interval). - ScrapeGraphAI: Crawls predefined regulatory URLs and returns structured article data. - Code (JS): Filters results by keywords and formats them. - SplitInBatches: Processes articles in manageable chunks to avoid timeouts. - If Node: Checks whether each article already exists in the database. - PostgreSQL: Inserts only new articles into the newsupdates table. - Set Node: Generates an email-friendly HTML summary. - SendGrid: Dispatches the compiled summary to compliance stakeholders. Set up steps Setup Time: 15-20 minutes 1. Install ScrapeGraphAI Node: - From n8n, go to “Settings → Community Nodes → Install”, search “ScrapeGraphAI”, and install. 2. Create PostgreSQL Table: sql CREATE TABLE newsupdates ( id SERIAL PRIMARY KEY, title TEXT, url TEXT UNIQUE, source TEXT, publishedat TIMESTAMP ); 3. Add Credentials: - Navigate to “Credentials”, add ScrapeGraphAI, SendGrid, and PostgreSQL credentials. 4. Import Workflow: - Copy the JSON workflow, paste into “Import from Clipboard”. 5. Configure Environment Variables (optional): - REGNEWSKEYWORDS, SENDTOEMAILS, DBTABLENAME. 6. Set Schedule: - Open the Schedule Trigger node and define your preferred cron expression. 7. Activate Workflow: - Toggle “Active”, then click “Execute Workflow” once to validate all connections. Node Descriptions Core Workflow Nodes: - Schedule Trigger – Initiates the workflow at the defined interval. - ScrapeGraphAI – Scrapes and parses news listings into JSON. - Code – Filters articles by keywords and normalizes timestamps. - SplitInBatches – Prevents database overload by batching inserts. - If – Determines whether an article is already stored. - PostgreSQL – Executes parameterized INSERT statements. - Set – Builds the HTML email body. - SendGrid – Sends the daily digest email. Data Flow: 1. Schedule Trigger → ScrapeGraphAI → Code → SplitInBatches → If → PostgreSQL → Set → SendGrid Customization Examples Change Keyword Filtering j