Quick overview
This workflow runs daily (or manually) to fetch recent videos from a list of TikTok accounts via Apify, transcribes each video with OpenAI, generates content insights and translations, and then appends or updates one row per video in Google Sheets.
How it works
- Runs on a daily schedule (or manually) and loads configuration values like the date window, video limit, output language, and Apify actor.
- Reads the TikTok usernames to monitor from the
accounts tab in Google Sheets.
- Calls the Apify TikTok Scraper API to retrieve the latest videos for each configured account.
- Filters and normalizes the results to keep only videos published within the last N days and extracts metrics, captions, hashtags, and download URLs.
- Downloads each video file and transcribes it with OpenAI speech-to-text.
- Sends the transcription plus caption and hashtags to OpenAI to extract a hook, classify the content, infer the video format, and translate the transcription.
- Writes the combined video metadata, transcription, and AI insights to the
insights tab in Google Sheets using an append-or-update operation.
Setup
- Create a Google Sheets spreadsheet with an
accounts sheet containing a username column (TikTok handles) and an insights sheet to store the results.
- Add Google Sheets OAuth2 credentials in n8n and select your spreadsheet and the correct tabs in the read and write steps.
- Add an Apify API token as an HTTP Header Auth credential and ensure the configured actor name matches the TikTok scraper you want to run.
- Add an OpenAI API credential for transcription and analysis, and set the desired model, language, date window, and per-account result limit in the configuration values.
- Test the workflow manually with a few accounts, then enable the schedule to run automatically at your chosen time.
Additional info
Track trending TikTok videos and save insights to Google Sheets
Need help customizing?
Contact me for consulting and support : Linkedin
MY NEW YOUTUBE CHANNEL
👉 Subscribe to my new YouTube channel. Here I'll share videos and Shorts with practical tutorials and FREE templates for n8n.
