Automated Twitter brand promotion with Anthropic Claude AI & Google Sheets reporting
Needs changesWhat this workflow does
This AI workflow has 20 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Anthropic Chat Model, Google Sheets and X (Formerly Twitter). It also calls api.twitterapi.io over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Automaticaly set todays Date (Edit Fields (Set)): sets 1 field: date
- Check if there's a Google Sheet for todays Date (Google Sheets): uses Google Sheets
- Code: runs custom JavaScript code
- SET KEYWORD (Edit Fields (Set)): sets 1 field: keyword
- Twitter Search by Keyword (HTTP Request): calls api.twitterapi.io
- Split tweets (Code): runs custom JavaScript code
- Compose Comment (AI Agent): runs an AI agent, with model: Anthropic Chat Model
- Merge: merges the data from its input branches
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Merge: merges the data from its input branches
…plus 7 more steps. See the full node list below.
Services it uses
HTTP calls to: api.twitterapi.io
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 Compose Comment (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Compose Comment (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (12)
- Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Merge
n8n-nodes-base.merge - Wait
n8n-nodes-base.wait - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - AI Agent
@n8n/n8n-nodes-langchain.agent - X (Formerly Twitter)
n8n-nodes-base.twitter
From the author
This n8n workflow promotes your brand/company/platform by mentioning it in Twitter comments. The responses look human-like, the workflow is robust and designed to avoid bans. Good to know The workflow is configured to maximize efficiency while minimizing…