Templates / Analyze LinkedIn top posts with Apify and OpenAI and log 7 ideas to Sheets

Analyze LinkedIn top posts with Apify and OpenAI and log 7 ideas to Sheets

Ready for 3.0

by Jonas Frewert ✓ · 31 views · created 2026-04-06 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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”.

  1. Set Config (Edit Fields (Set)): sets 5 fields: apify_token, apify_actor_id, openai_api_key…
  2. Validate Config + Build Actor Input (Code): runs custom JavaScript code
  3. Apify Get LinkedIn Posts (HTTP Request): calls an HTTP API (POST)
  4. Normalize + Rank LinkedIn Posts (Code): runs custom JavaScript code
  5. OpenAI Analyze + Generate (HTTP Request): calls api.openai.com (POST)
  6. Parse OpenAI Output (Code): runs custom JavaScript code
  7. Prepare Google Sheets Rows (Code): runs custom JavaScript code
  8. Append Rows to Google Sheet (Google Sheets): append

Services it uses

Google Sheets

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (5)

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…

Excerpt from Jonas Frewert's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.