π± Curate and publish LinkedIn tech posts with NewsData, Gemini, Slack, and Jina AI
β‘ 40 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
Quick Overview
This workflow runs daily, pulls technology news from NewsData.io based on a day-specific topic, uses Google Gemini to pick an article and write a LinkedIn post, generates a matching image, requests approval in Slack, and publishes the approved post with the image to LinkedIn.
How it works
- Runs on a daily schedule and assigns a topic based on the current day of the week.
- Queries the NewsData.io Latest News API for recent US technology articles matching the chosen topic.
- Uses Google Gemini to select the single best article from the top results and rewrite it into a short, social-friendly summary with the article URL.
- Fetches the full article content via Jina AI Reader and uses Google Gemini to write a 250β350 word LinkedIn post from the extracted content.
- Uses Google Gemini to generate an image prompt from the drafted post and calls the Gemini image generation API to produce a 16:9 image.
- Sends the draft post to Slack for approve/reject input and pauses the workflow until a response is received (or the wait time limit is reached).
- If approved, attaches the generated image and publishes the post to your LinkedIn profile, otherwise the workflow ends without posting.
Setup
- Add a NewsData.io API key and update the HTTP request query parameters (apikey, country/category, and any topic keywords you want to use).
- Add Google Gemini (PaLM) API credentials and ensure the selected Gemini models are available for both text generation and image generation.
- Add a Jina AI Reader API key and set it in the Authorization header used to fetch the full article content.
- Add Slack OAuth credentials, choose the target user/channel, and confirm interactive approval (send-and-wait) works in your Slack workspace.
- Add LinkedIn OAuth2 credentials and update the target LinkedIn person/account ID used for publishing.
π Nodes Used
HTTP Request, Slack, LinkedIn, Schedule Trigger, AI Agent, Structured Output Parser
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File