Skip to main content

Create LinkedIn news posts with Google Gemini, OpenAI images and Slack

Workflow preview

Workflow preview
100%
Create LinkedIn news posts with Google Gemini, OpenAI images and Slack preview
Open on n8n.io

1. Workflow Overview

Quick Overview This scheduled workflow pulls the latest AI related articles from NewsAPI, uses Google Gemini to filter and draft a LinkedIn post plus image prompt, generates an image with OpenAI, u...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.httprequest, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.gmail, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.extractfromfile

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Create LinkedIn news posts with Google Gemini, OpenAI images and Slack
Workflow name
Create LinkedIn news posts with Google Gemini, OpenAI images and Slack

Quick Overview

This scheduled workflow pulls the latest AI-related articles from NewsAPI, uses Google Gemini to filter and draft a LinkedIn post plus image prompt, generates an image with OpenAI, uploads the image and post to LinkedIn via its API, and sends status notifications through Gmail and Slack.

How it works

  1. Runs on a schedule and requests the latest AI/tech articles from NewsAPI.
  2. Checks whether the NewsAPI response contains any results and emails via Gmail if no articles are available.
  3. Sends the first returned article to Google Gemini to decide whether it is suitable for a professional LinkedIn post.
  4. Parses Gemini’s JSON decision, continues only if the article is approved, and emails via Gmail if it is rejected as not relevant.
  5. Uses Google Gemini to generate LinkedIn post copy and an AI image prompt from the approved article, then cleans and parses the model output into structured JSON.
  6. Generates an image from the prompt with OpenAI, fetches the LinkedIn user profile, registers a LinkedIn media upload, converts the image data for upload, and uploads it to LinkedIn.
  7. Creates a LinkedIn UGC post that includes the generated text and uploaded image asset, then sends a success notification to a Slack channel.

Setup

  1. Add credentials for Google Gemini (PaLM API), OpenAI, LinkedIn OAuth2, Gmail OAuth2, and Slack, and ensure the LinkedIn connection has permission to upload media and publish posts.
  2. Replace YOUR_NEWS_API_KEY_HERE in the NewsAPI request URL with your NewsAPI key and adjust the query, language, and pageSize if needed.
  3. Update the Gmail recipient addresses used for “no news” and “not relevant” notifications.
  4. Set the Slack channel for success notifications.
  5. In the LinkedIn image upload step, replace YOUR_GENRATED_UPLOAD_URL with the upload URL returned by LinkedIn’s registerUpload response (and map it dynamically) so the PUT upload targets the correct URL.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Scheduled Workflow Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 2 - Fetch Latest News Articles

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 3 - Validate News Availability

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 4 - AI News Quality Filter

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1.1

Block 5 - Notify for not availability of news

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 6 - Notify not relevent data for publishing

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 7 - Check Content Relevance

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 8 - Generate LinkedIn Post Content

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1.1

Block 9 - Prepare Filter News data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Clean AI Response Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Generate AI Post Image

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 2.1

Block 12 - Register LinkedIn Media Upload

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 13 - Extrect Binary to Base 64

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1.1

Block 14 - Extrect Base64 to file

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 15 - Put Image on Linkedin API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 16 - Create Post on Linkedin

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 17 - Notify on Success

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.4

Block 18 - Get ProfileInfo

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 19 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 25 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Create LinkedIn news posts with Google Gemini, OpenAI images and Slack
Complexity advanced
Nodes 25
Categories Social Media, Multimodal AI
Author WeblineIndia
Published 08 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16176/16176.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create LinkedIn news posts with Google Gemini, OpenAI images and Slack do?

Quick Overview This scheduled workflow pulls the latest AI related articles from NewsAPI, uses Google Gemini to filter and draft a LinkedIn post plus image prompt, generates an image with OpenAI, u...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.