This is an end-to-end automation workflow for LinkedIn content generation using OpenAI (GPT-4) and posting to LinkedIn. It:
- Fetches trending AI/data content from multiple RSS sources.
- Summarizes and rewrites the content using OpenAI (GPT-4).
- Sends a review email to ensure posts are approved before publishing.
- Stores posts in Google Sheets and posts to LinkedIn once approved.
- Fetches content from:
- TechCrunch
- Analytics Vidhya
- Machine Learning Mastery
- Uses OpenAI GPT-4 to summarize and rewrite articles.
- Sends drafts to Gmail for approval before posting.
- Saves approved posts in Google Sheets.
- Automatically posts approved content to LinkedIn.
- n8n account (self-hosted or n8n.cloud)
- LinkedIn API credentials for OAuth-based access to post on LinkedIn
- OpenAI API credentials for GPT-4 access
- Google Sheets credentials for saving approved posts
-
Clone/Import the Workflow:
- Import the provided workflow JSON file into your n8n instance.
-
Set Up Google Sheets:
- Create a Google Sheet with columns:
index,message,Approved,Posted. - Link your Google Sheets credentials in n8n.
- Create a Google Sheet with columns:
-
Link LinkedIn API:
- In n8n, connect your LinkedIn credentials via OAuth to allow posting to LinkedIn.
-
Link OpenAI API:
- Obtain your OpenAI API key and set up the OpenAI node in n8n.
-
Email Setup (Optional):
- Configure your Gmail or SMTP node to send emails for review before posting.
-
Cron Scheduler:
- The workflow runs automatically at specified times: 7 AM, 1 PM, 5 PM, and 9 PM IST.
- RSS Feed Reader nodes fetch the latest AI-related content.
- OpenAI rewrites the fetched articles into LinkedIn-ready posts.
- Email node sends the post for review.
- Once approved, the Google Sheets node stores the posts, and the LinkedIn node posts the content to LinkedIn.
MIT License (or other, depending on your choice)