Automated tweet generator & publisher with GPT-4, Discord, and Google Sheets
Needs changesWhat this workflow does
This AI workflow has 33 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Discord, Google Sheets and X (Formerly Twitter) and 2 more.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Get Brief (Execute Sub-workflow): calls another n8n workflow
- Notion: get many (block)
- Idea creator (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Aggregate: combines items into one
- Edit Fields (Edit Fields (Set)): sets 1 field: Post Idea
- Edit Fields (Edit Fields (Set)): sets 1 field: content
- AI Content creator (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 3 tools (Check History, Get_Brand_Brief, Get_Content_Fedback); memory: Simple Memory
- Rewriter (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Check Examples); memory: Simple Memory
- Send post for approval (Discord): send and wait for a reply (message)
- If: checks a condition and branches into true / false
…plus 11 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 Content creator (v1.8), Rewriter (v1.8): 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) AI Content creator (v1.8), Rewriter (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (18)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - AI Agent
@n8n/n8n-nodes-langchain.agent - Discord
n8n-nodes-base.discord - If
n8n-nodes-base.if - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Edit Fields (Set)
n8n-nodes-base.set - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Manual Trigger
n8n-nodes-base.manualTrigger - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - X (Formerly Twitter)
n8n-nodes-base.twitter - Google Sheets
n8n-nodes-base.googleSheets - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Notion
n8n-nodes-base.notion - Aggregate
n8n-nodes-base.aggregate - OpenAI
@n8n/n8n-nodes-langchain.openAi
From the author
AI Twitter Content Machine – Write, Refine & Publish Tweets on Autopilot This workflow is perfect for creators, solopreneurs, and personal brands who want to consistently publish bold, high-performing content on X (Twitter) — without writing a single line…