LinkedIn content factory with OpenAI research & Replicate branded images
Needs changesWhat this workflow does
This AI workflow has 20 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI Chat Model, SerpApi (Google Search), Google Sheets and LinkedIn. It also calls api.replicate.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- 1. Get Pending Topic from Google Sheets (Google Sheets): uses Google Sheets
- 2. Research Topic & Find Viral Angle with AI (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (SerpAPI); output parser: Structured Output Parser
- 3. Generate LinkedIn Post Content with AI (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (SerpAPI); output parser: Structured Output Parser
- 4. Generate Branded Image Prompt (Code): runs custom JavaScript code
- 4.1. Generate Branded Image Prompt (Code): runs custom JavaScript code
- 5a. Start Image Generation (Replicate) (HTTP Request): calls api.replicate.com (POST)
- 5b. Check Image Status (HTTP Request): calls an HTTP API
- If: checks a condition and branches into true / false
- 6. Download Generated Image (HTTP Request): calls an HTTP API
- Wait: waits 2 seconds
…plus 3 more steps. See the full node list below.
Services it uses
HTTP calls to: api.replicate.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- SerpApi (Google Search) in SerpAPI, SerpAPI1: no direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| SerpApi (Google Search) SerpAPI, SerpAPI1 | No direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node |
Nodes used (12)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - SerpApi (Google Search)
@n8n/n8n-nodes-langchain.toolSerpApi - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Manual Trigger
n8n-nodes-base.manualTrigger - Wait
n8n-nodes-base.wait - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets
n8n-nodes-base.googleSheets - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - LinkedIn
n8n-nodes-base.linkedIn
From the author
Template Description: > Never run out of high-quality LinkedIn content again. This workflow is a complete content factory that takes a simple topic from a Google Sheet, uses AI to research a trending angle, writes a full post, generates a unique and…