Generate and schedule social media posts with OpenAI, Google Sheets and Buffer
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs on a schedule (cron 0 6 * * *) (plus 1 other trigger). Along the way it connects Google Sheets, OpenAI and Slack. It also calls api.bufferapp.com over HTTP.
How it runs
Trigger: On a schedule (cron 0 6 * * *) (plus 1 other trigger).
- Get Pending Content (Google Sheets): uses Google Sheets
- Prepare Error Data (Edit Fields (Set)): sets 5 fields: error_message, content_id, execution_id…
- Validate Required Fields (If): checks a condition and branches into true / false
- Update Sheet - Failed (Google Sheets): update
- Process Each Item (Loop Over Items (Split in Batches)): loops over the items in batches
- Send Error Alert (Slack): uses Slack
- Generate LinkedIn Post (OpenAI): uses OpenAI
- Send Success Summary (Slack): uses Slack
- Generate Twitter Post (OpenAI): uses OpenAI
- Generate Facebook Post (OpenAI): uses OpenAI
…plus 6 more steps. See the full node list below.
Services it uses
HTTP calls to: api.bufferapp.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 (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - OpenAI
@n8n/n8n-nodes-langchain.openAi - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Slack
n8n-nodes-base.slack - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Automate your social media content pipeline from idea to scheduled post. This workflow reads content ideas from a Google Sheet, uses OpenAI to generate platform-optimized posts for LinkedIn, X (Twitter), and Facebook, then schedules them via Buffer — all with…