Templates / Turn TikTok trends into Instagram and Facebook posts with Apify, Gemini, and PostWire

Turn TikTok trends into Instagram and Facebook posts with Apify, Gemini, and PostWire

Unknown

by PostWire ✓ · 0 views · created 2026-10-30 · Social Media, Multimodal AI

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 20 nodes and runs on a schedule (every day at 07:00). Along the way it connects Gmail, Google Gemini, Google Sheets and Postwire (community). It also calls api.apify.com over HTTP.

How it runs

Trigger: On a schedule (every day at 07:00).

  1. Trend settings (Edit Fields (Set)): sets 8 fields: niche, hashtags, videos_per_hashtag…
  2. Scrape TikTok with Apify (HTTP Request): calls api.apify.com (POST)
  3. Keep popular recent videos (Filter): keeps only the items that match a condition
  4. Email me that Apify failed (Gmail): uses Gmail
  5. Skip videos already used (Remove Duplicates): removes duplicate items
  6. Most watched first (Sort): sorts the items
  7. Keep the top (Limit): keeps the first few items
  8. Bundle the videos (Aggregate): combines items into one
  9. Spot the trend with Gemini (Google Gemini): message (text)
  10. Read the trend (Edit Fields (Set)): sets 3 fields: plan, sources, date

…plus 9 more steps. See the full node list below.

Services it uses

GmailGoogle GeminiGoogle SheetsPostwire (community)

HTTP calls to: api.apify.com

Before you upgrade to n8n 3.0

We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

  • Check that n8n-nodes-postwire is verified or supports 3.0 (used in Post to Instagram and Facebook).

Nodes used (13)

From the author

Quick Overview This workflow runs daily, scrapes top TikTok videos for chosen hashtags via Apify, uses Google Gemini to identify a repeatable trend and generate captions plus an image prompt, creates an image with Gemini, publishes to Instagram and Facebook…

Excerpt from PostWire's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.