This YouTube-to-Notion automation agent seamlessly bridges your YouTube content library with your Notion workspace by automatically enriching video metadata. The agent runs on a schedule you define, queries your Notion database for new videos, fetches comprehensive details from YouTube (including video statistics, channel information, and engagement metrics), and updates your Notion pages with this enriched data—all without manual intervention.
Key benefits and time savings:
Target use cases:
This agent is perfect for content creators, marketing professionals, and team leads who maintain video libraries in Notion and want to automate the tedious process of gathering YouTube metadata. Whether you're managing a single channel or monitoring multiple creators, this workflow eliminates repetitive data collection tasks and ensures your Notion database stays synchronized with your YouTube presence.
You'll benefit most if you:
Why it's needed: Notion serves as your central database where videos are stored and enriched. The agent queries this database to find new videos and updates them with YouTube metadata, creating a unified content management system.
Setup steps:
Create a Notion integration:
TaskAGI YouTube Enrichment (or your preferred name)Copy your API key:
Share your database with the integration:
Identify your database ID:
https://notion.so/workspace/[DATABASE_ID]?v=...
/ and before ?
a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6
Configure in TaskAGI:
Configuration in TaskAGI: Your Notion database should include at minimum:
dQw4w9WgXcQ)Why it's needed: YouTube's API provides the rich metadata your Notion database needs—view counts, engagement metrics, channel information, and video descriptions. This creates a comprehensive content record without manual research.
Setup steps:
Create a Google Cloud project:
TaskAGI YouTube Integration
Enable the YouTube Data API:
Create API credentials:
Configure in TaskAGI:
How to obtain API keys/credentials:
These documentation nodes provide reference information:
YouTube Video Enrichment Agent
Content Management and your industryPurpose: Determines when the agent runs automatically
Configuration:
Daily, Weekly, or Every X hours
09:00 AM)Recommendation: Start with daily execution to keep your database fresh without excessive API usage.
Purpose: Fetches videos from your Notion database that need enrichment
Configuration:
YouTube Video ID is not empty AND View Count is empty
100 (processes up to 100 videos per run)Expected output: A list of video records with their YouTube IDs
Purpose: Processes each video individually
Configuration:
video (reference as {{video}} in subsequent nodes)Purpose: Isolates the YouTube video ID from your Notion record
Configuration:
{{video.properties['YouTube Video ID'].rich_text[0].plain_text}}
videoId
Example: From dQw4w9WgXcQ, extracts the clean ID for API calls
Purpose: Retrieves video statistics and metadata
Configuration:
{{videoId}}
snippet.title → Video titlestatistics.viewCount → Total viewsstatistics.likeCount → Likessnippet.description → Full descriptioncontentDetails.duration → Video lengthOutput variables (automatically created):
{{youtubeVideoDetails.title}}
{{youtubeVideoDetails.viewCount}}
{{youtubeVideoDetails.likeCount}}
Purpose: Fetches channel-level data
Configuration:
{{youtubeVideoDetails.channelId}}
statistics.subscriberCount → Channel subscriberssnippet.title → Channel namesnippet.description → Channel descriptionOutput variables:
{{youtubeChannelInfo.subscriberCount}}
{{youtubeChannelInfo.title}}
Purpose: Formats YouTube data into Notion field structure
Configuration: Create a function that maps YouTube data to Notion fields:
{
"Title": youtubeVideoDetails.title,
"View Count": youtubeVideoDetails.viewCount,
"Like Count": youtubeVideoDetails.likeCount,
"Channel Name": youtubeChannelInfo.title,
"Subscriber Count": youtubeChannelInfo.subscriberCount,
"Description": youtubeVideoDetails.description
}
Tip: Match field names exactly to your Notion database structure
Purpose: Writes enriched data back to your Notion database
Configuration:
{{video.id}}
Merge (preserves existing data)Result: Your Notion page now contains complete YouTube metadata
✅ Success indicators:
❌ Common issues and solutions:
Once testing succeeds:
Congratulations! Your YouTube-to-Notion automation is now live and saving you hours of manual work. 🎉
Explore these powerful automation agents that complement your workflow.
This AI agent turns YouTube videos to WordPress blog posts automatically.
Generate short form content from longer YouTube videos automatically. This agent intelligently cuts & crops relevant par...
Extract comments from YouTube videos including user feedback, engagement metrics, and sentiment analysis data. Simple fo...