n8n

How to Transcribe YouTube with OpenAI Transcripts?

Turn any YouTube link into clean text in a simple chat. Paste a video URL, and get a transcript or a formatted answer in seconds. Great for study notes, research, and quick content review without watching the full video.

The chat message trigger collects the URL and shows a friendly title and prompt. A Python code step checks if the link looks like a valid YouTube video. The decision step routes good links to an API call and sends helpful messages for invalid links. A web request calls Supadata to pull the transcript. The OpenAI step then formats or summarizes the text based on your prompt. Set steps prepare the final message, and the webhook reply sends it back to the chat.

You need API keys for Supadata and OpenAI, and a short prompt that fits your use case. Expect major time savings by turning long videos into fast reading. Teams can build summaries, course notes, or content drafts from any link. After adding keys and testing one URL, enable the workflow and share the chat link with your team.

What are the key features?

  • Chat message trigger with custom title, subtitle, and input placeholder for a clear user flow.
  • Python code step validates and cleans the YouTube URL before processing.
  • Decision step routes valid and invalid inputs and sends user friendly messages.
  • HTTP request to Supadata fetches the video transcript through a simple API.
  • OpenAI formats or summarizes the transcript using your prompt and settings.
  • Set steps map the final text and error messages for a clean response.
  • Webhook reply returns the answer directly in the chat thread.
  • Basic error handling shows API errors and invalid URL feedback to the user.

What are the benefits?

  • Reduce manual viewing from 30 minutes to about 3 minutes by reading a transcript or summary.
  • Streamline content prep by up to 80 percent through one chat entry point.
  • Improve consistency by removing copy and paste errors when collecting transcripts.
  • Connect a chat interface with Supadata and OpenAI without custom code.
  • Handle many links per day with the same process and minimal oversight.

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with OpenAI and Supadata. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create an OpenAI credential. Choose API Key, paste your key from the OpenAI account API page, and save.
  4. Open the HTTP Request node. Add the Supadata endpoint URL from your Supadata docs. In Headers, add your Supadata API key as required by their API page and save.
  5. Open the Chat Trigger node. Review the title, subtitle, and input placeholder. Keep the wording clear so users paste a YouTube URL.
  6. Open the Code node. Confirm the URL validator uses a YouTube pattern and sets a clear error message when the link is not valid.
  7. Open the If node. Confirm the condition checks the is_valid field from the code output and routes valid items to the HTTP request.
  8. Open the OpenAI node. Edit the prompt text to match the format you want, such as summary, bullet notes, or cleaned transcript.
  9. Check the Set nodes. Ensure the fields map to the OpenAI output content for success and to the error text for failures.
  10. Enable the workflow and open the chat link. Paste a known YouTube video URL and watch the execution in the n8n debug panel.
  11. If you see an invalid URL message, test another link. If you see unauthorized errors, confirm both API keys are correct and active.
  12. If the transcript is empty, confirm the video supports transcription in Supadata or adjust the query parameters per their docs.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Supadata

Sign up

Basic (Free): $0 / mo, 100 credits / mo, 1 request/second

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.