Generate AI News LinkedIn Posts with GPT-4o-mini, NewsAPI, and Qdrant

Go to Workflow
194 views
Built by Lucien Lucien
Created on June 08, 2026

Description

Overview
Automated LinkedIn content generator that:

Fetches trending AI news using NewsAPI
Enhances content with Qdrant vector store context
Generates professional LinkedIn posts using GPT-4o-mini
Tracks email interactions in Google Sheets
🛠️ Prerequisites
API Keys : NewsAPI, OpenAI (GPT-4o-mini), Qdrant
Accounts : Gmail Oauth, Google Sheets, LinkedIn developer API
Environment Variables :
OPENAI_API_KEY
NEWSAPI_KEY
QDRANT_URL/QDRANT_API_KEY
📁 Google Sheets Setup
Create a spreadsheet with these columns:

ISO date
Email address
Unique ID
"Approve" or "Reject"

⚙️ Setup Instructions
Pre-populate Qdrant :
Create collection "posts" with LinkedIn post examples
Add 10+ example posts for style reference
Node Configuration :
Update Gmail credentials (OAuth2)
Set fromEmail/toEmail in email nodes
Configure Google Sheets document IDs
Test Workflow :
Run Schedule Trigger manually first
Verify email notifications work
Check Qdrant vector store connectivity

🎨 Customization Options
Tone Adjustment : Modify system message in "AI Agent"
Post Style : Update prompt in "Generate LinkedIn Post"
Filter Criteria : Edit NewsAPI URL parameters
Scheduling : Change interval in Schedule Trigger

Nodes Used (9)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi
Gmail
n8n-nodes-base.gmail
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Qdrant Vector Store
@n8n/n8n-nodes-langchain.vectorStoreQdrant
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured