GenAiHub

Last checked 24 November 2026 — responded normally.

Render LinkedIn carousel slides with Google Gemini and Google Drive

Quick overview

Live
Open / InstallLast updated November 24, 2026

Description

Quick overview This sub-workflow is executed by a parent workflow to generate a single slide image with Google Gemini, optionally save a preview to Google Drive, upload the image to LinkedIn via the Images API, and return only the resulting image URN and metadata to the parent. How it works Receives slide configuration from a parent workflow execution, including the image prompt, slide index, LinkedIn owner URN, and rendering options. Validates that all required inputs are present and stops with a clear error if any fields are missing. Calls the Google Gemini image generation API to render the slide using the provided aspect ratio and image size. Extracts the generated image from the response, converts it to binary, and retries the generation up to three times if no usable image is returned or if the image exceeds LinkedIn’s size limit. Optionally uploads the generated image to Google Drive to create a preview link. Initializes an image upload with the LinkedIn Images API, uploads the image bytes to the returned upload URL, and returns only the LinkedIn image URN, slide index, alt text, and optional Drive preview URL to the parent. Setup Configure Google Gemini (PaLM) API credentials and ensure the workflow can call the Gemini image generation endpoint. Configure LinkedIn OAuth2 credentials with permission to initialize and upload images, and provide the correct LinkedIn-Version value via the parent workflow input. (Optional) Configure Google Drive OAuth2 credentials and choose the target Drive/folder if you want preview images saved to Google Drive. In the parent workflow, pass the required fields to this sub-workflow: image_prompt, author_urn, linkedin_version, image_aspect, image_size, and slide_index (and optionally alt_text). Requirements Need to have a parent workflow. Additional info This is a sub workflow which means, it will need a parent workflow. This workflow is used to prevent N8N's execution timeout errors by outsourcing image rendering and generation to a sub-worflow instead of doing it all in the parent workflow. An n8n automation workflow template by Prakhyat.

Community Metrics

Views
0
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

Prakhyat

Platform

web

Pricing model

free

Categories

  • Automation

Tags

  • n8n
  • workflow
  • http-request
  • google-drive
  • code

Capabilities

  • 3 nodes

Information

TypeWorkflow
Sourcen8n
AddedSeptember 8, 2026

Comments

?

Others in the same category, ranked by how often they are opened.