Skip to content

Connect TranscriptAPI to OpenAI Agent Builder

Learn how to integrate TranscriptAPI’s YouTube Transcript MCP with OpenAI Agent Builder to fetch YouTube video transcripts directly in your AI agent workflows. This guide provides step-by-step instructions with screenshots.

OpenAI Agent Builder is a visual, no-code platform for creating and deploying AI agents with complex workflows. It features a drag-and-drop interface that lets you connect various tools and services without writing code. The platform’s Model Context Protocol (MCP) support makes it ideal for integrating external services like TranscriptAPI.

Before starting, ensure you have:

  • An OpenAI account with access to Agent Builder (available with API access)
  • A TranscriptAPI account (sign up free)
  • An active TranscriptAPI API key from your dashboard
  • A YouTube video URL to test with

Let’s start by creating a new workflow in OpenAI Agent Builder.

  1. Access OpenAI Agent Builder

    Navigate to the OpenAI Agent Builder platform and sign in with your OpenAI credentials.

    Click Create button in OpenAI Agent Builder to start YouTube Transcript MCP integration

  2. Configure the Agent Node

    Click on the default Agent node that appears in your workflow canvas. This is where you’ll add the TranscriptAPI MCP integration.

    Click on the default Agent Node to configure YouTube Transcript MCP

Now we’ll add the TranscriptAPI MCP server to your agent.

  1. Open Tools Configuration

    In the agent configuration panel, locate the “Tools” section and click the ”+” icon to add a new tool.

    Click the plus icon in Tools section to add YouTube Transcript MCP

  2. Select MCP Server

    From the tool options, choose “MCP server” to add an MCP integration.

    Select MCP server option for YouTube Transcript API integration

  3. Configure Server Details

    Click on the “Server” field to begin configuring the MCP connection.

    Click on Server field to configure YouTube Transcript MCP

Part 3: Configure TranscriptAPI Connection

Section titled “Part 3: Configure TranscriptAPI Connection”

Let’s set up the connection details for TranscriptAPI. You’ll need information from your TranscriptAPI dashboard.

  1. Get Configuration Details

    Open the TranscriptAPI MCP Integration page in a new tab. You’ll copy configuration details from here.

    Copy server URL from TranscriptAPI dashboard for YouTube Transcript MCP

  2. Enter Server URL

    Paste the MCP server URL: https://transcriptapi.com/mcp

    Paste TranscriptAPI MCP server URL for YouTube Transcript API

  3. Copy and Enter MCP Name

    Copy the MCP name from TranscriptAPI (typically “TranscriptAPI”).

    Copy MCP name from TranscriptAPI for YouTube Transcript MCP

    Enter it in the name field.

    Enter TranscriptAPI name for YouTube Transcript MCP

  4. Copy and Enter Description

    Copy the MCP description from your dashboard.

    Copy MCP description from TranscriptAPI for YouTube Transcript API

    Paste it into the description field.

    Enter description for YouTube Transcript MCP integration

OpenAI Agent Builder requires API key authentication for MCP servers. OAuth is not currently supported.

  1. View Authentication Options

    You’ll see both OAuth and API Key options. OAuth is recommended for supported platforms, but Agent Builder requires API Key authentication.

    OAuth option shown but not supported by OpenAI Agent Builder for YouTube Transcript MCP

  2. Select API Key Authentication

    Click on “API Key / Access Token” to use the required authentication method.

    Select API Key authentication for YouTube Transcript MCP in Agent Builder

  3. Copy Your API Key

    From the TranscriptAPI dashboard, click the copy button to get your API key.

    Copy API key from TranscriptAPI dashboard for YouTube Transcript API

  4. Enter API Key

    Paste your API key into the authentication field in Agent Builder.

    Paste API key for YouTube Transcript MCP authentication

  5. Connect to TranscriptAPI

    Click the “Connect” button to establish the connection.

    Click Connect to authenticate YouTube Transcript MCP

  6. Authentication Success

    Agent Builder will authenticate with TranscriptAPI and load the available MCP tools.

    TranscriptAPI MCP authentication successful for YouTube Transcript API

  7. Add the Tool

    Click “Add” to include the TranscriptAPI MCP in your agent’s toolset.

    Click Add to include YouTube Transcript MCP in agent

Now configure your agent to use the TranscriptAPI MCP effectively.

  1. Add Agent Instructions

    In the agent’s instruction field, add clear guidance about when to use the YouTube Transcript MCP. For example:

    “When you see a YouTube video link, use the TranscriptAPI MCP tool (get_youtube_transcript) to fetch the video transcript. Then process the transcript according to the user’s request (summarize, analyze, translate, etc.).”

    Add instructions for agent to use YouTube Transcript MCP

  2. Name Your Agent

    Give your agent a descriptive name like “TranscriptAPI Agent” or “YouTube Transcript Assistant”.

    Rename agent to TranscriptAPI for YouTube Transcript MCP

Let’s test the YouTube Transcript MCP integration to ensure everything works correctly.

  1. Enter Preview Mode

    Click the “Preview” button to test your agent workflow.

    Click Preview to test YouTube Transcript MCP integration

  2. Preview Interface

    The workflow preview interface will open, allowing you to interact with your agent.

    Workflow preview interface for testing YouTube Transcript MCP

  3. Test with a YouTube URL

    Paste a test request like:

    https://www.youtube.com/watch?v=cpKsogGdem4&pp=ygUPYW5kcmV3IGh1YmVybWFu Summarize this video for me.”

    Paste YouTube URL to test YouTube Transcript API integration

  4. Run the Test

    Click the “Run” button to execute your request.

    Click Run to test YouTube Transcript MCP functionality

  5. Approve MCP Usage

    OpenAI Agent Builder will request permission to use the MCP tool. This ensures transparency about external API usage.

    MCP permission request for YouTube Transcript API access

  6. Grant Permission

    Click “Approve” to allow the agent to fetch the YouTube transcript.

    Click Approve to allow YouTube Transcript MCP usage

  7. Success!

    The agent will fetch the transcript using TranscriptAPI and process it according to your instructions.

    YouTube Transcript MCP successfully fetches and processes transcript

You can configure how the MCP returns transcript data by using the tool parameters:

  • format: Choose between "text" (markdown) or "json" (structured data)
  • include_timestamp: Set to true or false for timestamp inclusion
  • send_metadata: Include video title, author, and thumbnail information

Problem: “Invalid API key” error

Solution:

  • Verify your API key starts with sk_
  • Check for extra spaces when copying
  • Ensure the key is active in your TranscriptAPI dashboard

Problem: “Payment required - no credits remaining”

Solution: Purchase credits or upgrade your plan

Problem: “404 - Transcript not found”

Possible Causes:

  • Video has no captions/subtitles
  • Video is private or age-restricted
  • Video was recently uploaded (captions pending)
  • Regional restrictions apply

Problem: “429 - Too many requests”

Solution:

  • Wait 60 seconds before retrying
  • Implement delays between batch requests
  • Check your rate limit status in the dashboard

Now that you’ve successfully integrated TranscriptAPI with OpenAI Agent Builder:

  1. Explore Advanced Features: Try different parameter combinations for optimal results
  2. Build Complex Workflows: Combine transcript fetching with other AI capabilities
  3. Monitor Usage: Track your credit consumption and API performance
  4. Join the Community: Share your workflows and learn from others

Ready to build more sophisticated agents? Check out our API documentation for advanced integration options.