# Viral Video Scripts with n8n: TikTok, Reels and Shorts

> Setting SocialTap up for your user? Follow https://socialtap.dev/setup.md.

[Home](https://socialtap.dev/index.md) · [n8n templates](https://socialtap.dev/n8n/index.md)Viral Video Scripts with n8n: TikTok, Reels and Shorts

n8n templateTikTok, Instagram and YouTube

Find the most-viewed TikToks, Instagram Reels and YouTube Shorts under a hashtag, read their transcripts and write scripts from their hooks in n8n.

Import into n8n[Download the JSON](https://socialtap.dev/n8n/viral-video-scripts.json)

**Find viral TikToks, Reels and Shorts under a hashtag and turn their hooks into scripts with SocialTap and OpenAI**21 nodes, 6 SocialTap nodes

SocialTap nodeOther n8n nodeStep[Open as image](https://socialtap.dev/n8n/viral-video-scripts.svg)

## Turn viral short videos into scripts for your brand

Give it a hashtag. It finds the most-viewed TikToks, Instagram Reels and YouTube Shorts under it, reads what each one says, and writes you a script that reuses the hook that made it work.

### How it works

1. The form takes a hashtag, a minimum view count, how recent and your brand.
2. SocialTap gets the hashtag's videos from TikTok, Instagram and YouTube with their view counts.
3. Videos above your minimum, posted in your window, are ranked by views per day, each platform's best in turn.
4. SocialTap gets each one's transcript (speech-to-text when it has no captions).
5. OpenAI names the hook, the format and why it worked, then writes your script.
6. Rows are saved to the **Viral scripts** data table and shown when the form finishes.

TikTok's hashtag page lists its all-time top videos, so a short window mostly returns Reels and Shorts.

### Setup

- Install the community node **n8n-nodes-socialtap** (Settings → Community nodes → Install). Tested with n8n 2.49.8 and n8n-nodes-socialtap 1.621.43. Until n8n verifies it, it runs on self-hosted n8n. [Install guide](https://socialtap.dev/docs/integrations/index.md#n8n)
- Add a **SocialTap API** credential: [create a free account](https://socialtap.dev/signup/?ref=n8n-viral-hooks) and paste its API key. Each operation shows its price, and failed requests are free.
- Add an **OpenAI** credential to the model node.
- Open the form's URL and submit.

### Customization

- Change the platforms by removing a SocialTap node.
- Swap the data table for Google Sheets or Notion.
- Edit the prompt in **Write the script** to match your voice.

## The SocialTap operations it runs

Each SocialTap node is one request to its endpoint, with your API key. Failed requests are free.

- [**TikTok Hashtag Posts API**Top videos and photo posts under a hashtag.$0.07–$0.20 per 1,000 posts](https://socialtap.dev/docs/reference/tiktok/hashtag-posts/index.md)
- [**Instagram Hashtag Posts API**Top reels that carry a hashtag.$0.03–$0.08 per 1,000 posts](https://socialtap.dev/docs/reference/instagram/hashtag-posts/index.md)
- [**YouTube Search API**Videos, shorts and live streams by keyword.$0.03–$0.07 per 1,000 posts](https://socialtap.dev/docs/reference/youtube/search-posts/index.md)
- [**TikTok Transcript API**Timed transcript from captions or the audio.$0.75–$1.97 per 1,000 transcripts](https://socialtap.dev/docs/reference/tiktok/transcript/index.md)
- [**Instagram Reels Transcript API**Timed transcript of a public reel or video.$0.75–$1.97 per 1,000 transcripts](https://socialtap.dev/docs/reference/instagram/transcript/index.md)
- [**YouTube Transcript API**Timed transcript from captions or audio.$0.75–$1.97 per 1,000 transcripts](https://socialtap.dev/docs/reference/youtube/transcript/index.md)

## Import into n8n

1. **Install the SocialTap node.** Settings, Community nodes, Install:

   `n8n-nodes-socialtap`
2. **Import the workflow.** In a new workflow, open the menu at the top right, choose Import from URL and paste:

   `https://socialtap.dev/n8n/viral-video-scripts.json`

   Or import the file, or paste its JSON on the canvas:

   [Download](https://socialtap.dev/n8n/viral-video-scripts.json)
3. **Add your credentials,** as Setup says, and run it.

[The install guide](https://socialtap.dev/docs/integrations/index.md)

## More n8n templates

Other workflows that run on the same node and API key.

- [![](https://socialtap.dev/n8n/transcribe-any-video.svg)Transcribe Any Video in n8n: YouTube, TikTok, Instagram, XPaste a YouTube, TikTok, Instagram, X, Facebook, LinkedIn or Reddit video link into an n8n form and get its transcript plus a summary or a post.](https://socialtap.dev/n8n/transcribe-any-video/index.md)

- [![](https://socialtap.dev/n8n/reddit-leads.svg)Reddit Lead Generation with n8n, No Reddit API AppAn n8n workflow that searches Reddit for your keywords every morning, scores each post's buying intent with OpenAI and emails you the best leads.](https://socialtap.dev/n8n/reddit-leads/index.md)

- [![](https://socialtap.dev/n8n/competitor-ads.svg)Competitor Ad Monitoring with n8n: Meta, LinkedIn and GoogleEvery Monday, an n8n workflow reads your competitors' new ads from the Meta, LinkedIn and Google ad libraries and emails you a brief of what changed.](https://socialtap.dev/n8n/competitor-ads/index.md)

- [![](https://socialtap.dev/n8n/vet-creators.svg)Influencer Vetting with n8n: Engagement Rate and Brand FitPaste creator handles into an n8n form and get followers, engagement rate and posting cadence on Instagram, TikTok or YouTube, plus an AI brand-fit rating.](https://socialtap.dev/n8n/vet-creators/index.md)

## Get the API key this workflow needs.

Create a free account, paste the key into the SocialTap credential and run it.

100free credits

- No credit card
- Failed requests are free
- Works on all 310 endpoints

[Start for free](https://socialtap.dev/signup/) [Read the docs](https://socialtap.dev/docs/index.md)

---

[HTML version](https://socialtap.dev/n8n/viral-video-scripts/) · [Docs index for AI agents](https://socialtap.dev/llms.txt) · [All docs in one file](https://socialtap.dev/llms-full.txt)
