Every time I publish a blog post, the same chore follows: open Telegram, paste the link, write a short version for X, count characters, post, then do it again for the next post. It takes five minutes and I still skip it half the time — which means half my posts never get seen anywhere except the blog itself.

So I built a small n8n workflow that watches the blog's RSS feed and does the posting for me. New post appears in the feed, the full version goes to Telegram, a 280-character version goes to X, and everything gets logged in a Google Sheet so nothing gets posted twice.

The workflow is free in the repo — 15_rss-to-social-poster.json — and here's how it works.

The pipeline, in plain terms

  1. RSS Feed Trigger polls your feed (every 30 minutes is a good start).
  2. Read Post Log pulls a Google Sheet tab that records everything already posted.
  3. Skip Already Posted drops any item whose link is already in that log.
  4. Validate & Clean strips HTML out of the feed body and checks the item actually has a title and a link.
  5. Keyword Filter keeps only what matches your INCLUDE list and drops anything with an EXCLUDE word.
  6. Compose Channel Posts writes two versions: the full text for Telegram and a short one for X.
  7. Post to Telegram and Post to X publish them, and Log Published Item writes the result back to the sheet.

17 working nodes, 6 sticky notes explaining each section. The Code nodes were tested offline (16 checks: dedupe, validation, filtering, both text versions, failure shaping) before I called it done.

The dedupe problem is the whole point

The naive version of this automation is "on new RSS item, post it." That breaks the second time the feed is polled: RSS readers re-serve items, feeds hiccup, and suddenly your channel has the same post three times.

The fix is boring and it works: a Post Log sheet with headers Link, Title, Published at, Channels, Stage, Detail. Every item is checked against the log before anything posts, and every outcome — published, skipped as invalid, filtered out, failed — gets written back with a reason. When something looks wrong, the sheet tells you exactly which stage it died at instead of leaving you to guess.

The keyword filter keeps it on-brand

Not everything in a feed deserves to go out. The filter node has INCLUDE and EXCLUDE lists at the top of its code. INCLUDE empty means "post everything valid." EXCLUDE ships blocking sponsored and job-posting words, which is what kept my channel from re-posting a sponsored roundup last month.

If an item gets filtered out, it still gets logged with the keyword reason, so you can see what the filter caught and tune the lists. That log is the difference between a filter you trust and a filter you quietly stop using.

One item, two versions

Telegram gets the full version: title, a couple of lines from the post, hashtags, link. X gets a 280-character version, and the composer already does the annoying maths for you — X counts every link as 23 characters, no matter how long the URL actually is, so the short version stays inside the limit even with a long link attached.

If you don't have X API access, delete the X node and Telegram still posts. The channels are independent by design.

When a post fails, it gets logged — not lost

Each publish step has failure handling attached: if Telegram fails, if X fails, or if the sheet write itself fails, the failure is shaped into a row and written to the Post Log. One channel failing never blocks the other — a Telegram outage doesn't stop the X post, and vice versa. Check the log tab when a post goes missing and you'll find the reason there.

Setup checklist

  • Put your feed URL in node 1 and set the poll interval.
  • Create a Google Sheet with a tab named Post Log and the headers above; point nodes 2, 5a, 7a, 11 and 12d at it.
  • For Telegram: create a bot with @botfather, add it to your channel as an admin, put the channel (e.g. @yourchannel) in node 9.
  • For X: add an HTTP Header Auth credential named Authorization with value Bearer YOUR_USER_ACCESS_TOKEN in node 10. It must be an OAuth 2.0 user token with tweet.write scope — an app-only bearer token cannot post.
  • Tune INCLUDE / EXCLUDE at the top of node 6 and HASHTAGS in node 8.

One honest note: the workflow file is structure-checked and its Code nodes passed offline tests — but run it once with your own feed before leaving it on. Feeds are all slightly different, and the first run is where you find out yours includes items you didn't expect.

If you don't want to build it yourself

The workflow above is free — grab it from the free n8n workflows repo. The Lead & Content Automation Pack ($29) has four more ready-to-import workflows from the same series (lead responder, review requests, content repurposer, form-to-invoice). And if you want something like this built for your own stack — different channels, different rules — the Custom n8n Workflow Build ($99) is the way to get it done for you.

Also published on Hashnode: [HASHNODE_URL]