Automate LinkedIn content from Twitter AI posts with GPT-4 and Google Sheets
Needs changesWhat this workflow does
This AI workflow has 32 nodes and runs on a schedule (every day) (plus 2 other triggers). Along the way it connects Google Sheets, OpenRouter Chat Model, Telegram and LinkedIn.
How it runs
Trigger: On a schedule (every day) (plus 2 other triggers).
- Get AI Tweets (HTTP Request): calls an HTTP API
- Google Sheets: uses Google Sheets
- Filter: keeps only the items that match a condition
- Clean Tweets (Code): runs custom JavaScript code
- Limit: keeps the first few items
- Max (Limit): keeps the first few items
- Loop Tweets (Loop Over Items (Split in Batches)): loops over the items in batches
- AI Agent: runs an AI agent, with model: 4.; output parser: Structured Output Parser
- Get Post Timings (Code): runs custom JavaScript code
- Find Existing Tweet (Google Sheets): uses Google Sheets
…plus 15 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (17)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Sheets
n8n-nodes-base.googleSheets - No Operation, do nothing
n8n-nodes-base.noOp - Switch
n8n-nodes-base.switch - Wait
n8n-nodes-base.wait - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Limit
n8n-nodes-base.limit - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Telegram
n8n-nodes-base.telegram - Aggregate
n8n-nodes-base.aggregate - Google Sheets Trigger
n8n-nodes-base.googleSheetsTrigger - Filter
n8n-nodes-base.filter - LinkedIn
n8n-nodes-base.linkedIn
From the author
How it works - Automates daily LinkedIn post creation from trending AI tweets. - Fetches latest tweets, processes content, checks for duplicates, converts to LinkedIn-ready format, schedules, and posts automatically. Set up steps - Setup required: Google…