Automate social media posts from website articles with Gemini AI, LinkedIn & X/Twitter
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER 🎉 Early Black Friday Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
What it does
This workflow automates content syndication and posting to LinkedIn and X/Twitter. It takes existing long-form articles and generates from them engaging social posts optimized for each platform.
The workflow takes links to existing articles from a given sitemap. It randomly selects the next article to republish, making sure that articles are not repeated. For simplicity it uses a Google spreadsheet to track the articles that have already been republished.
Requirements
- Existing sitemap
- Google Gemini API key (or other model provider's key)
- Google Sheets credentials
- LinkedIn credentials
- X/Twitter credentials
How to set up
- Adjust the schedule as needed (by default triggers daily at noon)
- Configure parameters in the parameters node:
- Set the sitemap URL (e.g. https://example.com/sitemap.xml)
- Set the language of the posts
- Enable/disable channels as needed
- Configure Google Sheets credentials for get processed articles and add processed articles nodes
- Create a new Google spreadsheet document with "url", "status", "timestamp", "LinkedIn post" and "Twitter post" columns
- Specify that spreadsheet document in get processed articles node (other nodes will take it from here)
- Add Google Gemini API key for the model (or change to any other model of choice)
- Configure LinkedIn and X/Twitter credentials for publishing