Documentation
HomeAPISign In
  • Getting Started
    • Overview
      • Core Concepts
      • Building your First Workflow
    • API Reference
  • Your Data
    • Brand Kits
    • Knowledge Bases
      • Add Data
        • Upload Files
        • Web Scrape
        • Import from Google Drive
        • Import from SQL Database
        • Import from Shopify
      • Knowledge Base Search
      • Knowledge Base Metadata
      • Knowledge Base API
  • Building Workflows
    • Workflow Concepts
      • Workflow Inputs
        • Input Types
      • Workflow Outputs
      • Variable Referencing
      • Liquid Templating
    • Workflow Steps
      • AI
        • Prompt LLM
          • Choosing a Model
          • Prompting Techniques
        • Transcribe Audio File
      • Web Research
        • Google Search
        • Web Page Scrape
      • Code
        • Run Code
        • Call API
        • Format JSON
        • Run SQL Query
        • Write Liquid Text
      • Flow
        • Condition
        • Iteration
        • Human Review
        • Content Comparison
        • Error
      • Data
        • Search Knowledge Base
        • Write to Knowledge Base
        • Get Knowledge Base File
      • AirOps
        • Workflow
        • Agent
      • Image & Video
        • Generate Image with API
        • Search Stock Images
        • Fetch Stock Image with ID
        • Resize Image
        • Screenshot from URL
        • Create OpenGraph Image
        • Create Video Avatar
      • SEO Research
        • Semrush
        • Data4SEO
      • Content Quality
        • Detect AI Content
        • Scan Content for Plagiarism
      • Content Processing
        • Convert Markdown to HTML
        • Convert PDF URL to Text
        • Group Keywords into Clusters
      • B2B Enrichment
        • Hunter.io
        • People Data Labs
      • CMS Integrations
        • Webflow
        • WordPress
        • Shopify
        • Contentful
        • Sanity
        • Strapi
      • Analytics Integrations
        • Google Search Console
      • Collaboration Integrations
        • Gmail
        • Google Docs
        • Google Sheets
        • Notion
        • Slack
    • Testing and Iteration
    • Publishing and Versioning
  • Running Workflows
    • Run Once
    • Run in Bulk (Grid)
    • Run via API
    • Run via Trigger
      • Incoming Webhook Trigger
      • Zapier
    • Run on a Schedule
    • Error Handling
  • Grids
    • Create a Grid
      • Import from Webflow
      • Import from Wordpress
      • Import from Semrush
      • Import from Google Search Console
    • Add Columns in the Grid
    • Run Workflows in the Grid
      • Add Workflow Column
      • Run Workflow Column
      • Map Workflow Outputs
      • Review Workflow Run Metadata
    • Review Content in the Grid
      • Review Markdown Content
      • Review HTML Content
      • Compare Content Difference
    • Publish to CMS from Grid
    • Pull Analytics in the Grid
    • Export as CSV
  • Copilot
    • Chat with Copilot
    • Edit Workflows with Copilot
    • Fix Errors with Copilot
  • Monitoring
    • Task Usage
    • Analytics
    • Alerts
    • Execution History
  • Your Workspace
    • Create a Workspace
    • Folders
    • Settings
    • Billing
    • Use your own LLM API Keys
    • Secrets
    • Team and Permissions
  • Chat Agents (Legacy)
    • Agent Quick Start
    • Chat Agents
    • Integrate Agents
      • Widget
      • Client Web SDK
  • About
    • Ethical AI and IP Production
    • Principles
    • Security and Compliance
Powered by GitBook
On this page
  • How to Configure the YouTube Integration Step
  • Output Format
  • How to Use the Results
  • Common Use Cases
  • How to Continue if the Integration Fails
  • Example Workflow

Was this helpful?

  1. Building Workflows
  2. Workflow Steps
  3. Collaboration Integrations

Youtube

The "YouTube Integration" step allows you to extract and process content from YouTube videos. This powerful tool helps you transform video content into usable text, enabling content repurposing, transcription services, and enhanced video analysis.

How to Configure the YouTube Integration Step

Configuring the step requires setting the parameters shown below:

[IMAGE: Screenshot of the YouTube Integration step configuration panel]

Action Type

Select the specific YouTube action you want to perform:

  • Extract Transcript: Retrieve the transcript from a YouTube video

Video URL or ID

Enter the YouTube video URL or ID from which you want to extract the transcript.

Examples:

  • Full URL: https://www.youtube.com/watch?v=dQw4w9WgXcQ

  • Short URL: https://youtu.be/dQw4w9WgXcQ

  • Video ID: dQw4w9WgXcQ

You can use Liquid syntax to dynamically reference a YouTube URL from a previous step:

{{ step_1.output.youtube_url }}

Language (Optional)

Specify the language of the transcript you want to retrieve. If the video has transcripts in multiple languages, this parameter helps select the correct one.

  • Default: Auto-detect (retrieves the default transcript for the video)

  • Options include: English, Spanish, French, German, etc.

Output Format

The YouTube Integration step returns a JSON object containing the transcript data:

{
  "video_id": "dQw4w9WgXcQ",
  "video_title": "Rick Astley - Never Gonna Give You Up (Official Music Video)",
  "channel_name": "Rick Astley",
  "transcript": [
    {
      "text": "We're no strangers to love",
      "start": 0.0,
      "duration": 2.38
    },
    {
      "text": "You know the rules and so do I",
      "start": 2.38,
      "duration": 4.16
    },
    {
      "text": "A full commitment's what I'm thinking of",
      "start": 6.54,
      "duration": 3.42
    },
    {
      "text": "You wouldn't get this from any other guy",
      "start": 9.96,
      "duration": 4.28
    }
  ],
  "full_text": "We're no strangers to love\nYou know the rules and so do I\nA full commitment's what I'm thinking of\nYou wouldn't get this from any other guy\n...",
  "language": "en",
  "duration_seconds": 213
}

[IMAGE: Screenshot showing an example of the YouTube Integration results in the AirOps interface]

Understanding the Output

  • video_id: The unique identifier of the YouTube video

  • video_title: The title of the YouTube video

  • channel_name: The name of the YouTube channel that published the video

  • transcript: An array of transcript segments, each containing:

    • text: The transcribed text segment

    • start: The start time of the segment in seconds

    • duration: The duration of the segment in seconds

  • full_text: The complete transcript as a single string with line breaks

  • language: The language code of the transcript

  • duration_seconds: The total duration of the video in seconds

How to Use the Results

You can access the transcript data in subsequent workflow steps using Liquid syntax. For example:

To access the complete transcript text:

{{ step_2.output.full_text }}

To access the video title:

{{ step_2.output.video_title }}

To loop through transcript segments in an LLM prompt:

{% for segment in step_2.output.transcript %}
[{{ segment.start | divided_by: 60 | floor }}:{{ segment.start | modulo: 60 | round }}] {{ segment.text }}
{% endfor %}

Common Use Cases

  • Creating blog posts or articles from video content

  • Generating show notes for podcasts or video episodes

  • Analyzing video content for key topics and themes

  • Creating timestamped summaries of long videos

  • Building searchable video content libraries

  • Translating video content into different languages

  • Creating social media snippets from video transcripts

How to Continue if the Integration Fails

By default, the YouTube Integration step will terminate the workflow if it fails. To continue the workflow if the step fails, click "Continue" at the bottom of the settings panel.

[IMAGE: Screenshot showing the "Continue" option in the step settings]

The step will return the following keys when it fails:

  • output: this will be null

  • error:

    • message: the message returned from the step

    • code: the error code representing the error

Common error causes include:

  • Invalid YouTube URL or video ID

  • Video not found or removed

  • No transcript available for the video

  • Specified language not available

Example Workflow

Here's a common pattern using the YouTube Integration step:

  1. Start with a YouTube video URL

  2. Use the "YouTube Integration" step to extract the video transcript

  3. Use an LLM step to analyze the transcript and:

    • Generate a concise summary of the video

    • Extract key points and takeaways

    • Create timestamped chapter markers

  4. Use another LLM step to transform the content into a blog post or article

  5. Use a CMS integration (like WordPress or Webflow) to publish the repurposed content

This workflow enables you to efficiently repurpose video content into written formats, extending the reach of your content and making it accessible in multiple formats while saving hours of manual transcription and writing time.

Last updated 2 months ago

Was this helpful?