AI-Powered Content Generation from RSS Feeds via Slack Command - n8n Workflow

Use this powerful n8n workflow to monitor RSS feeds, generate topic ideas using Gemini AI, and create full content drafts—all triggered by simple commands directly within Slack.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Content marketers who need quick, data-driven ideas for daily social media posts.
Teams leveraging the n8n automation platform for integrated communication and AI tasks.
Agencies focusing on specific industry verticals (like hospitality tech) who rely on real-time news.
Users looking for advanced examples of how to build interactive, command-based systems using an n8n trigger in Slack.

Overview

Generating relevant, timely content often involves sifting through hundreds of headlines. This robust n8n workflow solves this problem by connecting multiple RSS feeds, processing them with Google Gemini AI, and creating a feedback loop entirely within Slack. The automation is initiated using a dedicated n8n trigger that listens for a simple command (like start). The resulting list of AI-clustered topics is presented in Slack, allowing users to select a concept (e.g., gen 5), which then prompts the AI to write a full LinkedIn-style draft. This is a prime example of leveraging n8n templates for efficient, conversational automation, significantly boosting content velocity while keeping the team inside their preferred communication tool.

How it Works

This complex n8n workflow operates in two main stages, driven by a Slack n8n trigger:


  1. Stage 1: Topic Generation (start command):

The user sends the start command in the monitored Slack channel, which activates the Slack n8n trigger.
The Code: parseslackcommand n8n node normalizes the input.
The Switch n8n node routes the flow to the RSS Read nodes.
Three concurrent RSS Read n8n nodes fetch the latest headlines from specialized industry feeds.
The results are merged and cleaned by the Code: makeheadlinepayload n8n node, which dedupes headlines and formats them for AI consumption.
The Gemini: clustertotopics n8n node analyzes the headlines and returns a structured JSON list of suggested topics.
The list is parsed and posted back to the original Slack thread via the Slack: posttopiclist n8n node.


  1. Stage 2: Draft Writing (gen N command):

The user replies in the thread with a number (e.g., 2), triggering the n8n workflow again.
The Switch n8n node routes the flow based on the gen command.
The Slack: fetchthreadreplies n8n node retrieves the conversation history.
The Code: picktopicfromthread n8n node identifies which specific topic (e.g., Topic 2) the user selected from the original list.
The Gemini: write
draft n8n node uses the selected topic and the original headline snippets (passed via context) to generate a 250-350 word draft post.
* The final draft is posted directly into the Slack thread by the Slack: post_draft n8n node.

Installation Guide

To deploy this comprehensive n8n templates solution, follow these steps:


  1. Import the n8n workflow: Copy the provided JSON code and paste it into your n8n instance using the 'New' -> 'Import from JSON' option.

  2. Configure Credentials:

You will need credentials for Slack API (Bot type) to handle the incoming messages (the n8n trigger) and post replies. Ensure the bot has permissions to read and post in the designated channel.
You must configure credentials for Google Gemini (PaLM) API to enable the AI generation steps.

  1. Set up the Slack Trigger: In the Slack: Incoming messages n8n node, select your Slack Bot credential and ensure the channelId parameter points to the correct collaboration channel where commands will be issued. Activate the n8n trigger.

  2. Review Code and RSS Feeds: Review the RSS Read n8n nodes to ensure the feed URLs are relevant to your needs. The Code n8n nodes are pre-configured for parsing and normalization, but may need minor adjustments if you change the command structure.

Node Details

Slack: Incoming messages (n8n trigger): The starting point of the n8n workflow. Configured to listen for new messages in a specific channel, routing the payload to be analyzed.
Code: parseslackcommand (n8n node): Essential for extracting commands like start or gen N from the raw Slack payload, making the n8n workflow interactive.
RSS Read (x3): Three different n8n node instances fetch specialized industry news feeds. This provides the raw data input for the AI analysis.
Merge: allfeeds: Combines the output from all three RSS feeds before processing.
Code: makeheadlinepayload (n8n node): Cleans, deduplicates, and truncates the headlines, limiting the dataset to 60 items to create an optimal prompt payload for the subsequent AI step.
Gemini: cluster
totopics: A core AI n8n node using Gemini 1.5 Flash. It takes the headlines and produces a strict JSON array of 10-30 paraphrased topics, serving as the content strategy brainstormer.
Switch: routebycommand: Directs the flow based on the command parsed by the initial Code n8n node, enabling dynamic routing within the n8n workflow.
Slack: fetch
threadreplies: Used to retrieve the entire thread history, which is critical for the gen command to find the original topic list posted by the bot.
Code: picktopicfromthread (n8n node): A complex code n8n node designed to read the user's numeric selection from the trigger payload and match it against the topic list found in the thread history, ensuring context is maintained.
Gemini: write_draft: The second AI n8n node, responsible for generating a 250-350 word draft based on the selected topic and incorporating contextual data from the original headlines.

Related n8n Workflows

Free

Nodes: 7 Nodes
Updated: December 26 2025
View all
Created by

Indie SaaS Builder @ Voicelyst AI | Product (UI/UX) Designer helping SaaS teams grow with UX & AI. 📈 🚀

Featured*