AI-powered X (Twitter) content generator and scheduler with LangChain and Blotato
UnknownWhat this workflow does
This AI workflow has 15 nodes and runs on a schedule (every 4 hours). Along the way it connects OpenRouter Chat Model, Google Sheets, Gmail and Google Drive and 1 more.
How it runs
Trigger: On a schedule (every 4 hours).
- AI: Generate X Post Content (AI Agent): runs an AI agent, with model: LLM: OpenRouter; output parser: Parser: Format AI Output to JSON
- Code: runs custom JavaScript code
- Google Sheets: append
- Google Sheets: uses Google Sheets
- If: checks a condition and branches into true / false
- Google Drive: work with file folder
- Blotato: uses Blotato
- Google Drive: download
- Gmail: uses Gmail
- Blotato: work with media
…plus 2 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @blotato/n8n-nodes-blotato is verified or supports 3.0 (used in Blotato: Post Text-Only Tweet, Blotato: Post Tweet with Image, Blotato: Upload Image Media).
Nodes used (10)
- OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets
n8n-nodes-base.googleSheets - Blotato
@blotato/n8n-nodes-blotato.blotato - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Google Drive
n8n-nodes-base.googleDrive - Code
n8n-nodes-base.code - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
This n8n template demonstrates how to use AI to fully automate the generation and scheduling of X (formerly Twitter) content based on a specific, predefined persona. Use cases are many: It's perfect for social media marketers looking to streamline content…