n8nflow.net logo

Generate & Publish Social Media Content with Gemini, Kie.ai, and Late API

by Adrianβ€’Updated: Last update 4 days agoβ€’Source: n8n.io
Loading workflow viewer...

Getting Started

πŸ“˜ 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

  1. Generate text content β†’ Google Gemini produces platform-optimized copy (tone & length adapted to each network).
  2. Generate visuals β†’ Kie.ai Seedream v4 creates branded 1080x1080 images.
  3. Upload to Late β†’ media is stored using Late’s upload API (small & large file handling).
  4. Publish β†’ posts are created via Late API on enabled platforms with correct { platform, accountId } mapping.
  5. Notify β†’ success logs are sent via Slack, Discord, Email, and Webhook.

πŸ›  Setup Steps

  • Time to setup: ~10–15 minutes
  • Steps:
    1. Add your API keys in n8n Credentials:
      • Google Gemini API (PaLM)
      • Kie.ai (Seedream)
      • Late API
    2. Insert your Account IDs (Facebook, Instagram, LinkedIn, TikTok) into the Default Settings node.
    3. Choose which platforms to enable (ENABLE_FACEBOOK, ENABLE_INSTAGRAM, etc.).
    4. Set your Business Type and Content Topic (e.g., β€œa tech company” / β€œnew product launch”).
    5. Execute the workflow.

πŸ“ 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