Auto-post X videos with OpenRouter AI captions & Google Sheets deduplication
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs on a schedule (every hour). Along the way it connects Google Sheets, X (Formerly Twitter) and OpenRouter Chat Model. It also calls api.twitter.com over HTTP.
How it runs
Trigger: On a schedule (every hour).
- Get User ID (HTTP Request): calls api.twitter.com
- Get Tweets with Videos (HTTP Request): calls an HTTP API
- Filter Video Tweets (Code): runs custom JavaScript code
- Check Existing URLs (Google Sheets): append
- Edit Fields (Edit Fields (Set)): sets or maps fields
- Append or update row in sheet (Google Sheets): append or update
- Check New Videos (If): checks a condition and branches into true / false
- Generate Tweet Text (AI Agent): runs an AI agent, with model: OpenRouter Chat Model
- Post to X (X (Formerly Twitter)): uses X (Formerly Twitter)
- Update Spreadsheet (Google Sheets): append or update
Services it uses
Other Google Sheets + OpenRouter templates (210) · Other X (Twitter) + Google Sheets templates (50) · Other X (Twitter) + OpenRouter templates (14)
HTTP calls to: api.twitter.com
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)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - X (Formerly Twitter)
n8n-nodes-base.twitter - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
From the author
Who’s it for Marketers, creators, and social managers who want hands-off reposting of a specific X (Twitter) user’s videos — with on-brand AI captions and clean, deduplicated logs. What it does / How it works On a schedule, the workflow resolves a target…