
Option 1: The Slack RSS App
Slack has an official RSS app that posts new feed items in a channel.
- Add the RSS app to your workspace from the Slack app directory (an admin may need to approve it).
- In the channel where updates should appear, type:
/feed subscribe https://example.com/feed.xmlOther commands: /feed list shows the subscriptions in the channel with their IDs, and /feed remove ID stops one. The app checks feeds periodically, so updates can take a little while to arrive. Find the right feed URL with the Feed Finder.
Option 2: An Automation Tool
Use Zapier, Make, IFTTT or n8n when you need filters ("only items mentioning our product"), formatting, or the same feed in several places. A typical flow: RSS – new item in feed → Filter – title contains keyword → Slack – send channel message.
Option 3: Incoming Webhook and a Script
For full control over the message layout, create a Slack app with an incoming webhook and post items yourself.
- Create an app at api.slack.com/apps, choose Incoming Webhooks and switch them on.
- Click Add New Webhook to Workspace, pick a channel and copy the webhook URL. Keep it secret.
- Run the script below every 10 minutes with cron.
<?php
$feeds = ['https://example.com/feed.xml'];
$webhook = 'https://hooks.slack.com/services/T000/B000/XXXX';
$stateFile = __DIR__ . '/slack-seen.json';
$esc = fn($s) => str_replace(['&', '<', '>'], ['&', '<', '>'], $s);
$firstRun = !is_file($stateFile);
$seen = $firstRun ? [] : json_decode(file_get_contents($stateFile), true);
foreach ($feeds as $feed) {
$data = json_decode(@file_get_contents('https://rssfeeds.com/api/v1/feed?nocontent=1&count=10&url=' . urlencode($feed)), true);
if (($data['status'] ?? '') !== 'ok') continue;
foreach (array_reverse($data['items']) as $item) {
$id = $item['guid'] ?: $item['link'];
if (isset($seen[$id])) continue;
$seen[$id] = time();
if ($firstRun) continue;
$section = ['type' => 'section', 'text' => ['type' => 'mrkdwn', 'text' => '*<' . $item['link'] . '|' . $esc($item['title']) . '>*' . "\n" . $esc(mb_substr($item['description'], 0, 280))]];
if ($item['thumbnail']) $section['accessory'] = ['type' => 'image', 'image_url' => $item['thumbnail'], 'alt_text' => $item['title']];
$payload = ['text' => $item['title'] . ' ' . $item['link'], 'unfurl_links' => false, 'blocks' => [$section, ['type' => 'context', 'elements' => [['type' => 'mrkdwn', 'text' => $esc($data['feed']['title'])]]]]];
$ch = curl_init($webhook);
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ['Content-Type: application/json'], CURLOPT_POSTFIELDS => json_encode($payload)]);
curl_exec($ch);
curl_close($ch);
sleep(1);
}
}
arsort($seen);
file_put_contents($stateFile, json_encode(array_slice($seen, 0, 2000, true)));The script uses our RSS to JSON API, so RSS, Atom and JSON Feed all work. The first run only records existing items, so the channel isn't flooded.
Ideas for Feeds in Slack
| Channel | Feeds |
|---|---|
| #marketing | Your own blog, competitors' blogs, a Google News search for your brand |
| #engineering | GitHub releases of your dependencies, status pages of your cloud providers, security advisories |
| #support | Your product changelog and help-centre updates |
| #social | Mentions on Reddit via a Reddit search feed |
| #random | Your company podcast or YouTube channel |
Keep Channels Useful
- Put feeds in dedicated channels; mixing them into conversation channels buries both.
- Prefer filtered or "top" feeds for high-volume sources.
- Turn off link unfurling for busy feeds to keep messages compact.
- Review subscriptions every few months and remove what nobody reads.
Sources and Further Reading
- Add RSS Feeds to SlackSlack Help Center