{"id":"cd511635-392d-4c30-9991-e12375194bbb","slug":"n8n-8965-generate-and-publish-social-posts-with-gemini-kie-ai-a","name":"Generate and publish social posts with Gemini, Kie.ai, and Zernio API","description":"Quick overview\nGenerate & publish social media content with Gemini, Kie.ai, and Zernio API\n\nHow it works\nGoogle Gemini (gemini-2.5-flash) generates platform-optimized copy for Facebook, Instagram, LinkedIn, and TikTok, returned as structured JSON with hashtags and a suggested posting time.\nKie.ai Seedream v4 creates a branded 1080x1080 image; the workflow polls the task until the CDN image URL is ready.\nThe image is uploaded to Zernio: direct multipart upload for files up to 4MB, presigned upload (init + PUT) for larger files up to 5GB.\nA post is created on each enabled platform through the Zernio posts endpoint, with the correct platform and accountId mapping, and published immediately.\nAll platform responses are merged into one success report with ready-to-send messages for Slack, Discord, email, and webhook notifications.\n\nSetup\nGoogle Gemini (gemini-2.5-flash) generates platform-optimized copy for Facebook, Instagram, LinkedIn, and TikTok, returned as structured JSON with hashtags and a suggested posting time.\nKie.ai Seedream v4 creates a branded 1080x1080 image; the workflow polls the task until the CDN image URL is ready.\nThe image is uploaded to Zernio: direct multipart upload for files up to 4MB, presigned upload (init + PUT) for larger files up to 5GB.\nA post is created on each enabled platform through the Zernio posts endpoint, with the correct platform and accountId mapping, and published immediately.\nAll platform responses are merged into one success report with ready-to-send messages for Slack, Discord, email, and webhook notifications.\n\nRequirements\nGoogle Gemini (gemini-2.5-flash) generates platform-optimized copy for Facebook, Instagram, LinkedIn, and TikTok, returned as structured JSON with hashtags and a suggested posting time.\nKie.ai Seedream v4 creates a branded 1080x1080 image; the workflow polls the task until the CDN image URL is ready.\nThe image is uploaded to Zernio: direct multipart upload for files up to 4MB, presigned upload (init + PUT) for larger files up to 5GB.\nA post is created on each enabled platform through the Zernio posts endpoint, with the correct platform and accountId mapping, and published immediately.\nAll platform responses are merged into one success report with ready-to-send messages for Slack, Discord, email, and webhook notifications.\n\nCustomization\nEdit the Gemini prompt to change tone, language, platform mix, or content structure\nSwap the image model or prompt in the Kie.ai node\nReplace publishNow with scheduledFor (ISO 8601 UTC) to schedule posts instead of publishing instantly\nWire the prepared notification payload into your own Slack, Discord, or email nodes\nSwap the manual trigger for a Schedule or Webhook trigger for full autopilot\n\nAdditional info\nSticky notes inside the workflow document every section: overview, credentials, content generation, image generation, media upload, publishing logic, notifications, and error handling. Fallback content is included in case Gemini returns unparseable JSON. Estimated cost per run: about $0.02 for one Seedream image, a fraction of a cent for Gemini text, and no per-post cost from Zernio (usage-based pricing). Built by Adrian (RoboMarketing) for the n8n Arena Challenge, September 2025; updated for the Late to Zernio rebrand with the new presigned upload flow.","capabilities":["workflow","automation","documents","HTTP Request","httpRequest","Development","Core Nodes","Code"],"protocols":[],"safetyScore":80,"overallRank":79,"trustScore":null,"trust":null,"source":"N8N_TEMPLATES","updatedAt":"2026-10-09T19:45:07.648Z"}