Quick overview
This workflow builds and publishes a daily “personal newspaper” by pulling stories from RSS feeds, scoring and deduplicating them with OpenAI (or TypeSafe Jev), committing the issue JSON to GitHub for Cloudflare Pages to deploy, and sending the live issue to Telegram with 👍/👎 feedback links.
How it works
- Runs every day at 7 AM based on the configured schedule and loads the workflow’s feed list, editorial taste, language, and publishing settings.
- Reads the last N days of 👍/👎 votes from an n8n Data Table and converts them into learned section/source weights and an updated taste note used for today’s ranking.
- Fetches each RSS/Atom feed over HTTP, tracks feed health (stale or repeatedly failing feeds) in an n8n Data Table, and extracts recent items while removing duplicates and UTM-tracked links.
- Scores each story for fit, importance, and promotional content using either TypeSafe Jev (typesafe.ai) or OpenAI, then applies learned weights, enforces optional section scope rules, and ranks candidates per section.
- Uses OpenAI to group stories that report the same real-world event and merges duplicates, keeping the best representative story per event.
- Uses OpenAI to rewrite selected stories into a consistent per-section format and generate a three-sentence daily brief in the target language.
- Builds an issue JSON file with story metadata, feed-health notices, and vote links, commits it to GitHub, waits for the Cloudflare Pages GitHub check-run to complete, and notifies Telegram with either an interactive widget card or a plain text message.
Setup
- Create an OpenAI API credential in n8n (used for scoring, same-event grouping, section rewriting, and the daily brief) and set a valid model name in
llmModel.
- Add a GitHub API credential with access to your target repository, then set
githubOwner, githubRepo, githubBranch, issuePath, and siteUrl to match your Cloudflare Pages-connected site.
- (Optional) Add an HTTP Bearer credential for TypeSafe Jev and keep
useJev enabled, or set useJev to false to score with OpenAI only.
- Add Telegram bot credentials (or provide
telegramBotToken) and set telegramChatId (and the error-alert chat ID) so the workflow can post success and failure notifications.
- After activating, copy the production URL of the “Reader clicks 👍 or 👎” webhook and paste it into
feedbackWebhookUrl so vote links in the published issue write back to the daily_paper_votes Data Table.