Automation

News Agent Email Digest Pipeline

An n8n news intelligence pipeline that stores subscriber preferences in Data Tables, runs daily or weekly domain scrapers, scores article relevancy, and sends formatted HTML email digests.

  • n8n n8n
  • Web Scraping
  • Relevancy Scoring
  • HTML Email
  • Data Tables
News Agent Email Digest Pipeline: case study visual

Operational outcome

News Agent Email Digest Pipeline

Automation

Measured result

Normalizes articles from multiple property and industry sources, scores relevancy, and sends daily or weekly HTML email digests

The challenge

A link dump is not a briefing

Industry publications use inconsistent page structures, so a single scraper is brittle. Unranked link dumps also overwhelm readers who only care about specific locations and topics, on a daily or weekly cadence.

Octacer built an n8n pipeline that starts with a preference form, stores those rules in n8n Data Tables, and then runs daily or weekly branches. Source URLs are routed to domain-specific scrapers, articles are mapped to a shared schema and scored for relevancy, and a formatted HTML email digest is sent to matching readers.

What was at risk

  • Every source looks different

    Publications do not share one page structure. A single scraper that assumes they do becomes brittle as soon as a source changes or a new source is added.

  • Readers do not want every article

    A raw list of links is not a briefing. Readers care about particular locations and topics, and they need those matches ranked, not dumped.

  • Cadence differs by reader

    Some readers want a daily digest and others want a weekly one. The same pipeline has to honour those preferences instead of sending one schedule to everyone.

Industry
Real estate & market intelligence
Project
Scheduled multi-source scraping and digest automation
Octacer's role
Full development
Status
Shipped

What we built

How the workflow works

Store the reader's rules, then score what actually matches.

  • n8n

    n8n

    Orchestration, form triggers, schedule branches, and sub-workflows

  • n8n

    n8n Data Tables

    Preference and subscriber configuration store

  • Gmail / HTML Email

    Formatted digest delivery

  1. Step 1: A reader sets locations, topics and cadence

    n8n n8n

    The reader submits a form with locations, topics, source URLs and a daily or weekly cadence. Those rules are stored in an n8n Data Table so later runs can find the right recipients.

  2. Step 2: A scheduled run scrapes, scores and sends the digest

    The daily or weekly trigger starts the matching branch, routes each source to its scraper, maps articles to a shared schema, scores them for relevancy, and sends a formatted HTML email digest.

Deliverables

What we delivered

  1. Preference intake form and payload builder

    An n8n form collects daily or weekly frequency, primary and secondary locations, source URLs, and topics into a structured payload.

    • An n8n form collects daily or weekly frequency
    • It also collects locations, source URLs and topics
    • Those answers are stored as a structured payload
  2. n8n Data Table preference persistence

    Subscriber rules and source lists are stored in n8n Data Tables so scheduled runs can filter matching recipients dynamically.

    • Subscriber rules and source lists are stored in n8n Data Tables
    • Scheduled runs can filter matching recipients from that store
    • Preferences persist between runs instead of being re-entered
  3. Dual daily (24h) and weekly (7d) triggers

    Separate schedule branches inspect stored cadence flags so daily and weekly subscribers execute on the right schedule.

    • Separate schedule branches exist for daily and weekly readers
    • Each branch inspects stored cadence flags
    • Daily and weekly subscribers run on the right schedule
  4. Domain-specific scraper sub-workflows

    Source URLs are split, normalized, and routed to dedicated scrapers per publication (such as property news domains).

    • Source URLs are split and normalized
    • Each publication is routed to a dedicated scraper
    • A single one-size scraper is not used for every domain
  5. Unified article schema and relevancy scoring

    Scraped items are mapped to a common schema (title, URL, description, content, date, source, category, location) and scored for relevancy.

    • Scraped items are mapped to a common schema
    • The schema includes title, URL, description, content, date, source, category and location
    • Articles are scored for relevancy before they go into the digest
  6. Formatted HTML email digest delivery

    Scored articles are assembled into a clean HTML email digest and sent through the connected Gmail/email node.

    • Scored articles are assembled into a clean HTML email digest
    • The digest is sent through the connected email node
    • Readers receive a briefing rather than an unranked list of links

Screens & evidence

Inside the build

Real screens from the project, each captioned with what it shows.

The n8n News Agent canvas, with scheduled triggers feeding source fetches, an AI scorer and the digest branch.
The n8n News Agent canvas, with scheduled triggers feeding source fetches, an AI scorer and the digest branch.
The article-normalization Code node, showing how source items are shaped before scoring.
The article-normalization Code node, showing how source items are shaped before scoring.
The LLM Relevance Scoring node, with its prompt and JSON output for ranking articles.
The LLM Relevance Scoring node, with its prompt and JSON output for ranking articles.
The newsletter HTML formatting node, with the schema used to build the digest.
The newsletter HTML formatting node, with the schema used to build the digest.
The sub-workflow that turns the scored articles into an HTML digest and sends it through Gmail.
The sub-workflow that turns the scored articles into an HTML digest and sends it through Gmail.

Engineering decisions

Three decisions that shaped the build

Give each publication its own scraper

Industry sites do not share one page structure. Source URLs are routed to dedicated sub-workflows so a change on one domain does not break every source.

Store preferences and honour daily or weekly cadence

Rules live in n8n Data Tables, and separate schedule branches inspect those flags so daily and weekly subscribers are not forced onto the same cadence.

Score articles before the email goes out

Items are mapped to a common schema and scored for relevancy so the message is a digest, not an unranked dump of links.

Validation

What we verified

Tested A walkthrough verified form submission, Data Table storage, weekly execution, article scraping, relevancy scoring and HTML email delivery.

Outcomes

What changed

  • Unified heterogeneous news sources into a single normalized article schema for scoring
  • Automated both daily and weekly digest branches from one Data Table preference store
  • Modularized domain scrapers and scoring into reusable n8n sub-workflows
  • Replaced manual news checks with scored HTML email digests tailored by location and topic

Are news sources still arriving as an unranked list of links?

Tell us which publications you follow and how daily or weekly preferences should be stored.

Discuss your automation

Need something like this? See the related service: AI apps and integrations.

Tell us about your project