Generate 7 new LinkedIn posts from top Apify posts using OpenAI and save to Google Sheets
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets. It also calls api.openai.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set Config (Edit Fields (Set)): sets 5 fields: apify_token, apify_actor_id, openai_api_key…
- Validate Config + Build Actor Input (Code): runs custom JavaScript code
- Apify Get LinkedIn Posts (HTTP Request): calls an HTTP API (POST)
- Normalize + Rank LinkedIn Posts (Code): runs custom JavaScript code
- OpenAI Analyze + Generate (HTTP Request): calls api.openai.com (POST)
- Parse OpenAI Output (Code): runs custom JavaScript code
- Prepare Google Sheets Rows (Code): runs custom JavaScript code
- Append Rows to Google Sheet (Google Sheets): append
Services it uses
HTTP calls to: api.openai.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 (5)
- Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Manual Trigger
n8n-nodes-base.manualTrigger
From the author
This workflow helps you turn your best-performing LinkedIn posts into a repeatable content creation system. It pulls LinkedIn post data from Apify, normalizes and ranks the posts by impressions, identifies the strongest-performing content, and sends the top…