Generate LinkedIn posts with GPT-4, preview on WhatsApp, and auto-publish
Needs changesWhat this workflow does
This AI workflow has 13 nodes and runs on a schedule (every day). Along the way it connects OpenAI Chat Model, WhatsApp Business Cloud and LinkedIn.
How it runs
Trigger: On a schedule (every day).
- Prepare Search Topics (Function): runs custom JavaScript (legacy Function node)
- AI Content Generator (AI Agent): runs an AI agent, with model: OpenAI GPT-4 Model
- Process AI Content (Function): runs custom JavaScript (legacy Function node)
- Send Content Preview (WhatsApp Business Cloud): uses WhatsApp Business Cloud
- WhatsApp Approval Gateway (WhatsApp Business Cloud): uses WhatsApp Business Cloud
- Check Approval Status (If): checks a condition and branches into true / false
- Format LinkedIn Post (Function): runs custom JavaScript (legacy Function node)
- Send Decline Notification (WhatsApp Business Cloud): uses WhatsApp Business Cloud
- Publish to LinkedIn (LinkedIn): uses LinkedIn
- Restart Content Generation (Execute Sub-workflow): calls another n8n workflow
…plus 1 more step. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:
- Function (legacy) in Prepare Search Topics, Process AI Content, Format LinkedIn Post: replace with Code node, mode 'Run Once for All Items'.
- AI Agent v1 (old agent modes) in AI Content Generator (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 |
|---|---|
| Function (legacy) Prepare Search Topics, Process AI Content, Format LinkedIn Post | Code node, mode 'Run Once for All Items' |
| AI Agent v1 (old agent modes) AI Content Generator (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Function
n8n-nodes-base.function - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - If
n8n-nodes-base.if - LinkedIn
n8n-nodes-base.linkedIn - Execute Sub-workflow
n8n-nodes-base.executeWorkflow
From the author
Workflow Overview Transform your LinkedIn presence with this powerful AI-driven automation workflow that generates and posts high-quality thought leadership content automatically. Let this AI Agent, generate content for you, sends it to your whatsapp for you…