π± Generate & publish social media content with Gemini, Kie.ai, and Late API
β‘ 1,562 views Β· π± Social Media & Email Marketing
π‘ Pro Tip β Since TikTok doesnβt have a public API, getting data usually means fragile HTTP scraping. ScraperNode is a community node that gives you clean JSON for TikTok profiles, videos, and comments β drop it into your workflow and skip the parsing.
Description
π Overview
This workflow automates end-to-end social media publishing powered by Late API.
It generates text content with Google Gemini, creates branded visuals with Kie.ai, uploads media to Late, and publishes across multiple platforms (Facebook, Instagram, LinkedIn, TikTok).
Itβs a production-ready automation for marketing teams who want to save hours of work by letting AI handle both copywriting and design β all inside n8n.
βοΈ How it works
- Generate text content β Google Gemini produces platform-optimized copy (tone & length adapted to each network).
- Generate visuals β Kie.ai Seedream v4 creates branded 1080x1080 images.
- Upload to Late β media is stored using Lateβs upload API (small & large file handling).
- Publish β posts are created via Late API on enabled platforms with correct
{ platform, accountId }mapping. - Notify β success logs are sent via Slack, Discord, Email, and Webhook.
π Setup Steps
- Time to setup: ~10β15 minutes
- Steps:
- Add your API keys in n8n Credentials:
- Google Gemini API (PaLM)
- Kie.ai (Seedream)
- Late API
- Insert your Account IDs (Facebook, Instagram, LinkedIn, TikTok) into the Default Settings node.
- Choose which platforms to enable (
ENABLE_FACEBOOK,ENABLE_INSTAGRAM, etc.). - Set your Business Type and Content Topic (e.g., βa tech companyβ / βnew product launchβ).
- Execute the workflow.
- Add your API keys in n8n Credentials:
π Notes
- Sticky Notes are included in the workflow to guide each section: Overview, Prerequisites, Default Settings, Content Generation, Image Generation, Media Upload, Publishing Logic, Notifications, Error Handling.
- All API keys are handled via Credentials (no hardcoding).
- Fallback content is included in case Gemini fails to parse.
- Large image files (>4MB) are handled with Lateβs multipart upload flow.
πΈ Cost per Flow (Estimated)
- Late API: $0.00 within Free/Unlimited plans, or β $0.11/post on Build plan ($13/120 posts).
- Google Gemini: ~$0.0001β$0.0004 per post (β200 tokens in/out).
- Kie.ai (Seedream): β $0.01β$0.02 per generated image.
β‘οΈ Total: ~$0.01 β $0.12 per post, depending mainly on your Late plan & Kie.ai credits.
π― Use cases
- Marketing teams automating cross-platform campaigns.
- Solo founders posting content daily without design/copy effort.
- Agencies scaling social media management with AI + automation.
π’ Credits
- Built by Adrian (RoboMarketing) for the n8n Arena Challenge β September 2025.
- Powered by:
π Nodes Used
HTTP Request
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File