// guides

Send RSS feeds to Slack with a keyword filter (free, incoming webhook)

Post only the RSS or Atom items that match your keywords into a Slack channel. Slack's own RSS app can't filter; one incoming webhook and a free tested script can. Works on the free plan.

Updated 2026-11-12 · about 10 minutes

Rather not set it up yourself? Describe your task in one sentence and we'll build and test it for you, free →

Steps

  1. Create a Slack incoming webhook

    Go to api.slack.com/apps, click Create New App (From scratch), pick your workspace, open Incoming Webhooks, switch it on and click Add New Webhook to Workspace. Choose the channel and copy the URL that starts with https://hooks.slack.com/services/. Anyone with that URL can post to the channel, so keep it out of public repos.

  2. Download the agent and try a dry run

    Get the free RSS to Discord agent (it posts to Slack and Telegram too). Run FEEDS=https://hnrss.org/newest?q=n8n python3 rss_to_discord.py --dry-run: it prints the items it would post and posts nothing, so you can check the feed and your keywords first.

  3. Set your feeds and keywords

    Set FEEDS to one or more feed URLs separated by commas, KEYWORDS=n8n,postgres to keep only items whose title or text contains one of them, EXCLUDE=-rc,beta to drop pre-releases, and TITLE_ONLY=1 if matching the post text is too loose. Then set SLACK_WEBHOOK_URL.

  4. Run it every 15 minutes

    The first run only remembers what is already in the feeds, so the channel isn't flooded (use --post-existing once if you want them). Then cron */15 * * * * on any always-on machine, or a free GitHub Actions schedule.

Isn't there a built-in way?

Yes, and it's the simplest route if you want every post: Slack's own RSS app, which Slack says is available on all plans. Add it from the Slack Marketplace, then type /feed subscribe https://example.com/feed in the channel (/feed list and /feed remove ID manage subscriptions). It posts every new item in the feed. It can't keep only the posts that mention your product, a competitor or a tool you use, and you can't change the message format. That's the gap the script fills: it filters before anything reaches the channel.

What arrives in Slack

One message per matching item: the title in bold, linked to the post (*<link|title>* in Slack's markup). The characters &, < and > in titles are escaped the way Slack asks, so a title with an ampersand isn't read as markup. At most MAX_PER_RUN items are posted per run (10 by default), 0.6 s apart, and a 429 from Slack is retried after the wait it asks for.

What we tested (12 Nov 2026)

We ran the agent with Python 3.13 against a local test feed of three items and a local stand-in for a Slack incoming webhook. We didn't test against a real Slack workspace.

TestResult
First runfirst run: remembered 3 existing item(s), nothing posted
First run with --post-existing3 messages, each {"text": "*<https://example.com/a|n8n 2.44 released &amp; faster>*"}, with the ampersand escaped
Run again straight after0 new matching item(s) posted: nothing is posted twice
KEYWORDS=n8n and EXCLUDE=-rc,beta1 of 3 posted: the stable n8n release. The 2.45.0-rc.1 beta item and the unrelated Postgres item were skipped
Webhook answers 404Since 13 Nov 2026: the failed item is logged as error: posting ... HTTP Error 404: Not Found, the other items still go out, and the run ends with 2 new matching item(s) posted, 1 failed (will retry next run) and exit code 1. Only the failed item is retried; the next run posted it once

A note on that last test: before 13 November a failed post stopped the whole run and nothing was remembered, so items already posted came back on the next run. That's fixed; re-download the script if you got it earlier. If you post to Slack and Discord or Telegram and only one of them fails, the item is retried on all of them, so fix a dead webhook rather than letting it fail for days. The same update keeps text like <tips> or a < b in titles (only real formatting tags such as <b> are removed).

When Slack refuses the message

These answers come from Slack's incoming webhook docs, not from our test: 404 no_service means the webhook was removed or the app uninstalled (create a new one), 404 channel_not_found or 410 channel_is_archived means the channel is gone or archived, 403 action_prohibited means a workspace admin blocked it, and 400 invalid_payload means the JSON was malformed.

Feeds worth filtering

Prefer n8n?

An RSS Feed Trigger node, an If node for the keywords and an HTTP Request node that POSTs {"text": ...} to your webhook URL do the same job, or use the Slack node with a bot token (see n8n Slack node errors if it answers invalid_auth or not_in_channel). Want the same in Telegram? See RSS to Telegram with a keyword filter. Want emails in Slack too? See forwarding email to Slack.

Skip the setup: free download

The RSS to Discord agent does all of this. It's tested, MIT-licensed, and comes as an n8n workflow plus a Python script.

Get the free RSS to Discord agent → Or have us build yours →

FAQ

Can Slack filter an RSS feed by keyword?

Not with Slack's own RSS app: it posts every new item. To keep only matching posts, something has to read the feed and filter it first, like this script or an n8n workflow, then post through an incoming webhook.

Is it free?

Yes. Incoming webhooks work on Slack's free plan, RSS feeds are free to read, and the agent is MIT-licensed.

Will it post old items when I start?

No. The first run only remembers what is already in the feed. Add --post-existing once if you do want them.

Can it post to several channels?

Each webhook posts to one channel. Run the script once per channel with its own SLACK_WEBHOOK_URL, FEEDS and STATE_FILE.

Can I get the same items in Discord or Telegram at the same time?

Yes. Set DISCORD_WEBHOOK_URL, or TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID, as well as SLACK_WEBHOOK_URL.

Related guides

New guides

Want one built for your task?

Describe it in one sentence. We build it, test it and email it to you, usually within 24h. Free while we're in beta.

We'll only email you about your agent and TaskToAgent.