Generate AI-powered LinkedIn posts with Ollama, image creation, and Gmail delivery
Needs changesWhat this workflow does
This AI workflow has 13 nodes and runs when someone submits an n8n form (plus 1 other trigger). Along the way it connects HTTP Request, Ollama Chat Model and LinkedIn.
How it runs
Trigger: When someone submits an n8n form (plus 1 other trigger).
- LinkedIn Post Agent (AI Agent): runs an AI agent, with model: Ollama Chat Model; 1 tool (Tavily)
- Generate Image (HTTP Request): calls an HTTP API
- Image Prompt Agent (AI Agent): runs an AI agent, with model: Ollama Chat Model
- Convert to File: converts data to a file
- Generate Image (HTTP Request): calls an HTTP API
- Download Image (HTTP Request): calls an HTTP API
- Send Email: sends an email over SMTP
- LinkedIn: uses LinkedIn
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:
- AI Agent v1 (old agent modes) in LinkedIn Post Agent (v1.9), Image Prompt Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- HTTP Request Tool (legacy) in Tavily: replace with HTTP Request node connected to the AI Agent's Tool input.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) LinkedIn Post Agent (v1.9), Image Prompt Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
| HTTP Request Tool (legacy) Tavily | HTTP Request node connected to the AI Agent's Tool input |
Nodes used (9)
- AI Agent
@n8n/n8n-nodes-langchain.agent - n8n Form Trigger
n8n-nodes-base.formTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Convert to File
n8n-nodes-base.convertToFile - HTTP Request
n8n-nodes-base.httpRequest - HTTP Request Tool
@n8n/n8n-nodes-langchain.toolHttpRequest - Ollama Chat Model
@n8n/n8n-nodes-langchain.lmChatOllama - Send Email
n8n-nodes-base.emailSend - LinkedIn
n8n-nodes-base.linkedIn
From the author
This automation flow is designed to generate professional, research-backed LinkedIn posts based on a user-submitted topic and audience, enhance it with a visually aligned image prompt, and then automatically send the post and image via Gmail and/or publish it…