Find relevant X tweets based on your profile and suggest responses
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs when someone submits an n8n form (“Perfect Niche Tweets”). Along the way it connects OpenAI Chat Model. It also calls api.twitterapi.io over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Perfect Niche Tweets”).
- Get User Tweets (HTTP Request): calls api.twitterapi.io
- Map Tweets (Code): runs custom JavaScript code
- User Profile Analyser (AI Agent): runs an AI agent, with model: o3-mini; output parser: profile schema
- Keyword Analyser (AI Agent): runs an AI agent, with model: 4.1-mini; output parser: keywords schema
- combine keywords (Code): runs custom JavaScript code
- Split Out: splits a list into separate items
- Get relevant tweets (HTTP Request): calls api.twitterapi.io
- Aggregate: combines items into one
- Tweet Writer (AI Agent): runs an AI agent, with model: o3-mini; output parser: tweet schema
- Replace em dash (Code): runs custom JavaScript code
…plus 2 more steps. See the full node list below.
Services it uses
HTTP calls to: api.twitterapi.io
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - n8n Form Trigger
n8n-nodes-base.formTrigger - Split Out
n8n-nodes-base.splitOut - Aggregate
n8n-nodes-base.aggregate - AI Agent
@n8n/n8n-nodes-langchain.agent - HTML
n8n-nodes-base.html - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
What This Workflow Does Step 1: Analyzes your recent tweets for personality & style Step 2: Generates strategic keywords based on your profile Step 3: Searches for trending tweets in your niche Step 4: Creates personalized responses & original tweets Step 5:…