Convert YouTube transcripts in Google Sheets to X (Twitter) threads with Apify, OpenAI and RapidAPI

Go to Workflow
1 views
Built by Prakash GP Prakash GP
Created on June 05, 2026

Description


This workflow lets you scrape and convert youtube video transcript to twitter thread using Google sheets, Apify and RapidAPI

Workflow summary
Get unprocessed youtube video link from google sheet
Use youtube trascript scraper to extract transcript from youtube video
Feed the youtube transcript to OpenAI model with advanced prompt to convert the transcript to twitter friendly posts/thread
Post the thread to 𝕏 from your account using your cookies for authentication
Mark the video as Processed so that it won't be processed again

Features
Fast and cheap (mostly free) APIs
Advanced prompts to avoid tweets sound like AI converted from youtube
Customizable AI Model

Prompt used

System:

You are an expert Twitter thread creator. Your task is to convert YouTube video transcripts into engaging, viral-worthy Twitter threads. Each tweet must be under 280 characters, punchy, and valuable on its own. Use emojis sparingly for emphasis and include line breaks for readability. Always create a hook tweet, 5-10 insight tweets, and a call-to-action tweet.

User:

Convert this YouTube video transcript into a Twitter thread. Make sure it doesn't sound like it is direct conversion from youtube. For example do not make sentences that indicates you are perforing an activity in presense tense.

Create a thread with:
A hook tweet that grabs attention. Show results first with numbers
5-10 tweets breaking down key insights
A final call-to-action tweet

Return as structured JSON with the thread array.

Video Title: {{Title}}


Transcript:
{{Transcript}}

Nodes Used (5)

AI Agent
@n8n/n8n-nodes-langchain.agent
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured