AI Agents

Process Slack messages with AI and publish to X

47 nodes 286 129 Automatic trigger
Download

Workflow Description

Advanced automation template that retrieves messages from Slack, processes them using Gemini AI, organizes them into batches, and automatically publishes to X (formerly Twitter) with filtering and conditional controls for quality assurance.

How it works

  1. 1.Receive incoming messages from configured Slack channels
  2. 2.Analyze and process text using Gemini AI and LLM chain logic
  3. 3.Batch organize processed messages for efficient handling
  4. 4.Apply filtering rules and conditional criteria to content
  5. 5.Publish approved messages to X platform automatically

Use cases

  • Automatically share Slack team updates to X audience
  • Filter and refine Slack content before public distribution
  • Schedule announcements from Slack at specific times

Requirements

  • Active Slack workspace connected to n8n
  • Gemini API keys and language model configuration
  • X account with publishing permissions
  • Customizable batch size and filtering rule settings

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Slack Gemini LLM Chain Split In Batches Twitter/X

Details

Trigger Automatic trigger
Nodes 47
Apps 5
Views 286
Downloads 129

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (47)

/

Get Last Week's Messages

Slack

#1

Simplify Message

Set

#2

Group By User

Code

#3

Split Out

Split Out

#4

Messages to Items

Code

#5

Get User

Slack

#6

Aggregate

Aggregate

#7

Split Out1

Split Out

#8

Get Thread

Slack

#9

Aggregate1

Aggregate

#10

Simplify Thread Comments

Set

#11

Filter

Filter

#12

Message Ref

No Op

#13

Split Out2

Split Out

#14

Map Reply UserIds

Set

#15

Get Reply Users

Slack

#16

Google Gemini Chat Model

Gemini Model

#17

Summarise Threads

LLM Chain

#18

Aggregate2

Aggregate

#19

Aggregate Reply Users

Aggregate

#20

Reply Users

Set

#21

Google Gemini Chat Model1

Gemini Model

#22

Loop Over Items

Split In Batches

#23

Aggregate3

Set

#24

Aggregate4

Aggregate

#25

When Executed by Another Workflow

Execute Workflow Trigger

#26

Switch

Switch

#27

Map Users to Messages

Execute Workflow

#28

Get User Info

Set

#29

Fetch Message Replies

Execute Workflow

#30

Has ReplyUsers?

If

#31

Messages to Items1

Code

#32

Aggregate Results

Set

#33

Team Member Weekly Report Agent

LLM Chain

#34

Merge with Results

Set

#35

Team Weekly Report Agent

LLM Chain

#36

Google Gemini Chat Model2

Gemini Model

#37

Post Report in Team Channel

Slack

#38

Sticky Note

Sticky Note

#39

Sticky Note1

Sticky Note

#40

Sticky Note2

Sticky Note

#41

Summarize Message Threads

Execute Workflow

#42

Sticky Note3

Sticky Note

#43

Sticky Note4

Sticky Note

#44

Sticky Note5

Sticky Note

#45

Monday @ 6am

Schedule Trigger

#46

Sticky Note6

Sticky Note

#47