Scrape and rewrite LinkedIn AI posts with Apify, Groq, OpenAI and Google Sheets
UnknownWhat this workflow does
This AI workflow has 11 nodes and runs when someone submits an n8n form (“Linkedin Post Scrapping ”). Along the way it connects Groq Chat Model, OpenAI Chat Model, Google Sheets and Apify (community).
How it runs
Trigger: When someone submits an n8n form (“Linkedin Post Scrapping ”).
- Run an Actor and get dataset (Apify): run actor and get dataset (actors)
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Verify The authenticity (AI Agent): runs an AI agent, with model: Groq Chat Model; memory: Simple Memory; output parser: Structured Output Parser
- If: checks a condition and branches into true / false
- Rewrite post (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Append row in sheet (Google Sheets): append
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @apify/n8n-nodes-apify is verified or supports 3.0 (used in Run an Actor and get dataset).
Nodes used (10)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Apify
@apify/n8n-nodes-apify.apify - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Sheets
n8n-nodes-base.googleSheets - AI Agent
@n8n/n8n-nodes-langchain.agent - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
From the author
How it works 1. User submits a form with a LinkedIn profile URL and number of posts to scrape 2. Apify's LinkedIn Post Scraper actor fetches posts (no cookies required, ~$1 per 1,000 posts) 3. Posts are looped one at a time for AI processing 4. Groq AI…