Scrape and rewrite LinkedIn AI posts with Apify, Groq, OpenAI and Google Sheets

Go to Workflow
0 views
Built by Redowan Ahmed Farhan Redowan Ahmed Farhan
Created on June 10, 2026

Description

How it works
User submits a form with a LinkedIn profile URL and number of posts to scrape
Apify's LinkedIn Post Scraper actor fetches posts (no cookies required, ~$1 per 1,000 posts)
Posts are looped one at a time for AI processing
Groq AI verifies each post's authenticity and quality
Authentic posts are rewritten by OpenAI in a fresh, engaging style
Results (author, original post, rewritten post) are logged to Google Sheets

Set up steps
Estimated time: ~10 minutes
Connect Apify via OAuth2 (requires an Apify account)
Add your Groq API key in the Groq Chat Model node
Add your OpenAI API key in the OpenAI Chat Model node
Connect Google Sheets via OAuth2 and select your posts tracker spreadsheet
Use responsibly and in accordance with LinkedIn's Terms of Service

Nodes Used (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
Google Sheets
n8n-nodes-base.googleSheets
Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured