Turn new YouTube uploads into WordPress blog posts
Each morning, draft and publish a companion blog post on your WordPress site for every new YouTube video you uploaded the day before.
Every morning at 8am Eastern Time, check my YouTube channel for new uploads from the last 24 hours and publish a companion blog post on my WordPress site for each one. Use a cron trigger that runs daily at 8am ET.
Steps the agent should follow:
1. Call YouTube List Channels with mine=true to find my channel, and read the uploads playlist ID from contentDetails.relatedPlaylists.uploads.
2. Call YouTube List Playlist Items against that uploads playlist to get the most recent videos. Keep only the items whose publishedAt is within the last 24 hours. If there are none, finish the run with no posts created.
3. For each candidate video, call YouTube Get Video with the videoId, requesting snippet, statistics, and contentDetails so the agent has the full title, description, tags, view count, like count, and duration. Note that YouTube transcripts are not exposed in this catalog, so the agent must work from the title, description, and tags rather than a full transcript.
4. Before drafting, call WordPress List Posts with a search query for the video ID (and per_page of 20, recent first). If any returned post's content already contains the video ID, skip that video so we never publish a duplicate companion post.
5. For every video that has not been blogged, draft a 600 to 800 word companion blog post that: opens with a hook tied to the video's topic; embeds the YouTube video at the top of the post by placing the URL https://www.youtube.com/watch?v={videoId} on its own line so WordPress auto-converts it into a YouTube embed block; summarizes the key points the video covers using the title, description, and tags; and closes with a clear call to action telling readers to watch the full video and subscribe to my channel.
6. Call WordPress Create a Post for each draft with status set to publish, the post title set to the video's title (or a slightly refined SEO-friendly variant), an appropriate category that matches the video topic, and a small footer line at the bottom of the content that includes the literal video ID (for example: "Video ID: {videoId}") so the duplicate check in step 4 will find it on future runs.
Integrations: youtube and wordpress. Workflow type: agent.
Additional information
What does this prompt do?
- Each morning, scans your YouTube channel for any new videos uploaded in the last 24 hours.
- Drafts a 600 to 800 word companion blog post that hooks readers, summarizes the key points from the video, embeds the YouTube player at the top, and ends with a watch and subscribe call to action.
- Publishes the post to your WordPress site in a category that matches the video topic, ready to be found through search.
- Skips videos that already have a companion post so you never publish the same video twice.
What do I need to use this?
- A YouTube channel where you are the owner, so the workflow can see your uploads.
- A WordPress site with publishing access and an application password generated from your WordPress profile.
- A category on your WordPress site where companion posts should be filed.
How can I customize it?
- Change the run time. The default is 8am Eastern, but you can pick any hour or switch to a weekly cadence.
- Adjust the post length, tone, and structure so the writing matches your blog voice.
- Pick a default WordPress category, or tell the agent how to choose categories based on the video's tags.
- Switch the publishing status to draft if you want to review every companion post before it goes live.
Frequently asked questions
Will this work for unlisted or scheduled YouTube videos?
How does it avoid posting the same video twice?
Does it use the video transcript?
Can the post go out as a draft for me to review first?
How is the YouTube video embedded in the blog post?
Stop writing companion blog posts by hand.
Connect YouTube and WordPress once, and Geni publishes a fresh companion article every time you upload a new video.