AI-generated LinkedIn posts with OpenAI, Google Sheets & email approval workflow
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs on a schedule (every day). Along the way it connects OpenAI Chat Model, Google Sheets, Gmail and LinkedIn.
How it runs
Trigger: On a schedule (every day).
- Get Data from Sheets (Google Sheets): uses Google Sheets
- Generate Post Content (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Data Formatting (Edit Fields (Set)): sets 3 fields: Post Content, Post Description, Instructions
- Send Content Confirmation (Gmail): send and wait for a reply
- Content Confirmation Logic (Switch): routes items into 3 branches
- If: checks a condition and branches into true / false
- Regenerate Post Content (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Update Google Sheet (Google Sheets): update
- Get Image (HTTP Request): calls an HTTP API
- Post Without Image (LinkedIn): uses LinkedIn
…plus 1 more step. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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)
- HTTP Request
n8n-nodes-base.httpRequest - Schedule Trigger
n8n-nodes-base.scheduleTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Sheets
n8n-nodes-base.googleSheets - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail - Switch
n8n-nodes-base.switch - If
n8n-nodes-base.if - LinkedIn
n8n-nodes-base.linkedIn
From the author
How it works This workflow automates the process of creating, approving, and optionally posting LinkedIn content from a Google Sheet. Here's a high-level overview: 1. Scheduled Trigger: Runs automatically based on your defined time interval (daily, weekly,…