AI Agents

Process X Posts with AI Analysis and Redis Caching

30 nodes 300 121 Automatic trigger
Download

Workflow Description

Intelligent workflow that captures posts from X via chat trigger, extracts information, analyzes content with OpenAI, and stores results in Redis for quick retrieval. Uses conditional logic and manual input options for flexibility.

How it works

  1. 1.Receive posts from X through chat trigger or manual activation
  2. 2.Extract and structure post data with information extraction and custom code
  3. 3.Analyze content using OpenAI and cache results in Redis
  4. 4.Validate output through conditional logic before final processing

Use cases

  • Automatically classify and filter X posts by topic or sentiment
  • Extract actionable data from social media conversations at scale
  • Generate AI-powered responses to common inquiries on X in real-time

Requirements

  • Active OpenAI API key with sufficient quota
  • Operational Redis instance with network access
  • X API credentials with data access permissions
  • n8n chat trigger configured and enabled

Service Value

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

Apps Used

Twitter/X OpenAI Redis Chat Trigger

Details

Trigger Automatic trigger
Nodes 30
Apps 4
Views 300
Downloads 121

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 (30)

/

When clicking ‘Test workflow’

Manual Trigger

#1

No Operation, do nothing1

No Op

#2

Information Extractor

Information Extractor

#3

OpenAI Chat Model

OpenAI

#4

get wait seconds

Code

#5

Set last_seen

Redis

#6

Get waiting_reply

Redis

#7

Mod input

Set

#8

waiting_reply?

If

#9

When chat message received

Chat Trigger

#10

Set waiting_reply

Redis

#11

Get buffer

Redis

#12

Delete buffer_in

Redis

#13

Delete waiting_reply

Redis

#14

WaitSeconds

Wait

#15

Buffer messages

Redis

#16

Set buffer_count increment

Redis

#17

Get last_seen

Redis

#18

Get buffer_count

Redis

#19

Map ouput

Set

#20

Check Inactivity + Count

If

#21

Delete waiting_reply1

Redis

#22

No Operation, do nothing2

No Op

#23

Wait

Wait

#24

When Executed by Another Workflow

Execute Workflow Trigger

#25

Mock input data

Set

#26

No Operation, do nothing3

No Op

#27

Sticky Note

Sticky Note

#28

Sticky Note1

Sticky Note

#29

Sticky Note2

Sticky Note

#30