> ## Documentation Index
> Fetch the complete documentation index at: https://docs.videodb.io/llms.txt
> Use this file to discover all available pages before exploring further.

# GenAI Video to YouTube

> Automate AI-generated video creation from Notion ideas and publish directly to YouTube using Zapier and VideoDB.

This workflow explains how to automate the creation and publishing of AI-generated (GenAI) videos to YouTube using VideoDB. The goal is to enable a fully automated YouTube channel where video ideas added in Notion automatically result in generated videos uploaded to YouTube.

## Goals

1. Automate the generation of AI-based videos from Notion database entries
2. Upload generated videos directly to a connected YouTube channel
3. Use target labels to route tasks efficiently and avoid duplicate triggers
4. Enable creators to scale video publishing with minimal manual effort

<iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/ihgeH6slPqk" title="GenAI Video to YouTube" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

## Prerequisites

* A Zapier account to create and manage workflows
* Access to VideoDB with an active API key
* A Notion account with a database for storing video ideas and descriptions
* A YouTube account connected to Zapier for video uploads
* Basic familiarity with Zapier workflows and triggers

## Workflow 1: Generate AI Video

### Step 1: Notion Database Setup

Create a new database in Notion called *GenAI Video Ideas*. Add fields such as *Name* (video title) and *Description* (prompt for video content).

### Step 2: Trigger Setup in Zapier

1. Create a new Zap
2. Set the trigger to *New Database Item* in Notion
3. Select the *GenAI Video Ideas* database

### Step 3: Generate Video with VideoDB

1. Add an action using VideoDB - *Generate Video*
2. Authenticate with API key from the VideoDB dashboard
3. Pass in the Notion fields (*Name* and *Description*) as the prompt
4. Configure settings (e.g., 30 seconds duration, vertical aspect ratio, with subtitles)
5. Assign a **target label** (e.g., `YT upload`) to ensure the correct next workflow is triggered
6. Test and verify that a Job ID (token) is returned

### Step 4: Publish Workflow 1

Once tested, activate this workflow to automatically start video generation.

## Workflow 2: Upload Generated Video to YouTube

### Step 1: Trigger Setup

1. Create another Zap
2. Set the trigger to *AI Generated Video Created* in VideoDB
3. Use the same target label (`YT upload`) so only matching jobs trigger this workflow

### Step 2: YouTube Upload Configuration

1. Add an action using YouTube - *Upload Video*
2. Connect your YouTube account to Zapier
3. Map video fields:
   * Title: from Notion *Name*
   * Description: e.g., *"GenAI Video created by VideoDB"*
   * Video File: use the *Download URL* from VideoDB output
4. Optional settings: leave thumbnail empty, mark video as *Public*, and set "not made for kids"

### Step 3: Test and Publish Workflow 2

Run a test to verify upload works. Publish the workflow to activate automatic uploads.

## Workflow Templates

<CardGroup cols={2}>
  <Card title="Part 1: Generate AI Video" href="https://zapier.com/shared/1c89ba5342e1e14bacffab645281d492230a9e9e" icon="sparkles">
    Generate AI videos from Notion ideas and prompts
  </Card>

  <Card title="Part 2: Upload Generated Video to YouTube" href="https://zapier.com/shared/4d2d476f15d277f8bd694a1f3c31b0d611765e13" icon="youtube">
    Publish generated videos directly to YouTube
  </Card>
</CardGroup>
