Data & Databases

Extract and classify X posts using AI agent automation

19 nodes 288 116 Automatic trigger
Download

Workflow Description

Advanced workflow that captures posts from X, analyzes them through an OpenAI-powered AI agent, automatically extracts key data and categorizes content, while maintaining conversation memory for improved future analysis and data enrichment.

How it works

  1. 1.Receive posts from X via dedicated chat trigger
  2. 2.Process and classify text using OpenAI AI agent
  3. 3.Extract key information and structured data
  4. 4.Store context and results in workflow memory buffer

Use cases

  • Monitor X accounts and extract marketing insights automatically
  • Analyze sentiment and engagement on posts in real-time
  • Categorize content types and identify potential leads from interactions

Requirements

  • Active X account with API access credentials
  • Valid OpenAI API key configured
  • Basic understanding of AI agent workflows

Service Value

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

Apps Used

OpenAI Twitter/X Chat Trigger AI Agent Memory If

Details

Trigger Automatic trigger
Nodes 19
Apps 6
Views 288
Downloads 116

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

/

OpenAI Chat Model

OpenAI

#1

Execute Workflow

Execute Workflow

#2

Execute "Generate a chart" tool

Execute Workflow Trigger

#3

OpenAI - Generate Chart definition with Structured Output

HTTP Request

#4

Set response

Set

#5

When chat message received

Chat Trigger

#6

Set Text output

Set

#7

Set Text + Chart output

Set

#8

AI Agent

Agent

#9

Window Buffer Memory

Memory Buffer Window

#10

Sticky Note1

Sticky Note

#11

Sticky Note

Sticky Note

#12

Sticky Note2

Sticky Note

#13

OpenAI Chat Model Classifier

OpenAI

#14

Sticky Note3

Sticky Note

#15

Text Classifier - Chart required?

If

#16

Sticky Note4

Sticky Note

#17

User question + Agent initial response

Set

#18

Information Extractor - User question

Information Extractor

#19