Render LinkedIn carousel slides with Google Gemini and Google Drive
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs when another workflow calls it. Along the way it connects Google Drive. It also calls generativelanguage.googleapis.com and api.linkedin.com over HTTP.
How it runs
Trigger: When another workflow calls it.
- Validate Slide Input (Code): runs custom JavaScript code
- Generate Slide Image (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Convert Base64 to Binary (Code): runs custom JavaScript code
- Has Image? (If): checks a condition and branches into true / false
- Upload Preview to Drive (Google Drive): uses Google Drive
- Merge: merges the data from its input branches
- Retry Guard (Code): runs custom JavaScript code
- LinkedIn: Initialize Upload (HTTP Request): calls api.linkedin.com (POST)
- Upload Image Bytes (HTTP Request): calls an HTTP API (PUT)
- Return URN Only (Code): runs custom JavaScript code
Services it uses
Other Google Gemini + Google Drive templates (272) · Other LinkedIn + Google Gemini templates (48) · Other LinkedIn + Google Drive templates (24)
HTTP calls to: generativelanguage.googleapis.com, api.linkedin.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Google Drive
n8n-nodes-base.googleDrive - Merge
n8n-nodes-base.merge
From the author
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…