Turn TikTok trends into Instagram and Facebook posts with Apify, Gemini, and PostWire
UnknownWhat 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).
- Trend settings (Edit Fields (Set)): sets 8 fields: niche, hashtags, videos_per_hashtag…
- Scrape TikTok with Apify (HTTP Request): calls api.apify.com (POST)
- Keep popular recent videos (Filter): keeps only the items that match a condition
- Email me that Apify failed (Gmail): uses Gmail
- Skip videos already used (Remove Duplicates): removes duplicate items
- Most watched first (Sort): sorts the items
- Keep the top (Limit): keeps the first few items
- Bundle the videos (Aggregate): combines items into one
- Spot the trend with Gemini (Google Gemini): message (text)
- 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
Other Google Sheets + Gmail templates (2,102) · Other Google Gemini + Google Sheets templates (819) · Other Google Gemini + Gmail templates (518)
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)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Filter
n8n-nodes-base.filter - Remove Duplicates
n8n-nodes-base.removeDuplicates - Sort
n8n-nodes-base.sort - Limit
n8n-nodes-base.limit - Aggregate
n8n-nodes-base.aggregate - Gmail
n8n-nodes-base.gmail - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - If
n8n-nodes-base.if - Post Wire
n8n-nodes-postwire.postWire - Google Sheets
n8n-nodes-base.googleSheets
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…