Extract and classify X posts using AI agent automation
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.Receive posts from X via dedicated chat trigger
- 2.Process and classify text using OpenAI AI agent
- 3.Extract key information and structured data
- 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
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (19)
OpenAI Chat Model
OpenAI
Execute Workflow
Execute Workflow
Execute "Generate a chart" tool
Execute Workflow Trigger
OpenAI - Generate Chart definition with Structured Output
HTTP Request
Set response
Set
When chat message received
Chat Trigger
Set Text output
Set
Set Text + Chart output
Set
AI Agent
Agent
Window Buffer Memory
Memory Buffer Window
Sticky Note1
Sticky Note
Sticky Note
Sticky Note
Sticky Note2
Sticky Note
OpenAI Chat Model Classifier
OpenAI
Sticky Note3
Sticky Note
Text Classifier - Chart required?
If
Sticky Note4
Sticky Note
User question + Agent initial response
Set
Information Extractor - User question
Information Extractor