π± Publish AI-written newsletters and LinkedIn posts from WordPress with Gemini, Google Sheets and Gmail
β‘ 69 views Β· π± Social Media & Email Marketing
π‘ Pro Tip β If youβre pulling LinkedIn data through HTTP requests or dealing with API restrictions, thereβs a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search β you just pass a URL and get structured data back.
Description
How it works
This workflow fetches the latest blog post from a WordPress API and checks against a Google Sheets tracker to prevent duplicate processing. If a new post is found, the workflow updates the tracker and cleans the blog data. The cleaned content is then sent to a Gemini-powered AI agent to generate a newsletter and LinkedIn teaser. Finally, the workflow distributes the content via LinkedIn and Gmail to subscribers.
Step-by-step
-
Detect new blog content
- Schedule Trigger β Runs the workflow automatically at intervals.
- HTTP Request β Fetches the latest blog post from WordPress.
- Last ID β Retrieves the last processed blog ID from Google Sheets.
- If β Compares IDs to check if the blog is new.
- Update Last ID β Updates the sheet with the latest blog ID.
-
Clean and generate AI content
- data cleanse β Cleans HTML, extracts title, content, and image.
- AI Agent2 β Generates newsletter and teaser content.
- Google Gemini Chat Model β Provides AI model for content generation.
-
Distribute content across channels
- Format Response β Parses and structures AI output.
- Create a post β Publishes content on LinkedIn.
- Email List β Fetches subscriber emails from Google Sheets.
- Loop Over Items β Iterates through each recipient.
- Send Email β Sends HTML newsletter via Gmail.
Why use this?
- Automates end-to-end blog promotion workflow
- Prevents duplicate publishing using ID tracking
- Uses AI to generate engaging content instantly
- Saves time on manual posting and emailing
- Easily scalable for growing audiences
π Nodes Used
Google Sheets, HTTP Request, Gmail, LinkedIn, Schedule Trigger, AI Agent
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File