AI Agents

Extract and Analyze X Tweets, Save Results to Google Sheets

19 nodes 325 147 Automatic trigger
Download

Workflow Description

Intelligent automation that monitors X tweets, analyzes them using an AI agent powered by OpenAI, categorizes content, and automatically stores results in Google Sheets while maintaining conversation context through memory buffers.

How it works

  1. 1.Activate Chat Trigger to initiate analysis workflow
  2. 2.Extract and organize tweet data from X into batches
  3. 3.Process each batch through advanced AI agent for content analysis
  4. 4.Store categorized results and insights in Google Sheets tables
  5. 5.Preserve context and historical data using memory system

Use cases

  • Monitor key accounts on X and auto-archive analyzed tweets
  • Automatically categorize and organize tweets by type or relevance in Sheets
  • Track trends and discussions with complete structured documentation

Requirements

  • Active X/Twitter account with API access
  • OpenAI API key
  • Full access to Google Sheets

Service Value

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

Apps Used

Twitter/X OpenAI Google Sheets Split In Batches Chat Trigger AI Agent Tool Memory

Details

Trigger Automatic trigger
Nodes 19
Apps 8
Views 325
Downloads 147

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)

/

Information Extractor

Information Extractor

#1

OpenAI Chat Model1

OpenAI

#2

If

If

#3

Google Sheets

Google Sheets

#4

Code

Code

#5

Loop Over Items

Split In Batches

#6

Replace Me

No Op

#7

No Operation, do nothing

No Op

#8

Sticky Note

Sticky Note

#9

Sticky Note1

Sticky Note

#10

Sticky Note2

Sticky Note

#11

Triggered on Restaurant Chat workflow

Execute Workflow Trigger

#12

When chat message received

Chat Trigger

#13

AI Agent

Agent

#14

OpenAI Chat Model

OpenAI

#15

Call n8n Workflow Tool

Tool Workflow

#16

Last 5 conversations Memory

Memory Buffer Window

#17

Sticky Note3

Sticky Note

#18

Sticky Note4

Sticky Note

#19