# Schedule YouTube posts with OpenAI API

> The OpenAI API is for developers who build their own agent, so the YouTube copy comes from your code rather than a chat window. Give your agent Tesselith's tools through the Responses API's hosted MCP tool and it can write titles and descriptions for videos your app has already stored, then schedule them. Your app decides which video link goes in and when the upload runs.

Canonical: https://tesselith.com/ai-agents/openai-api/youtube

## An upload assistant inside a course platform

A small course platform lets instructors record lectures on their phones. When a lecture finishes processing, the backend sends the transcript and the public playback link to an agent built on the Responses API. The agent drafts a YouTube title and description, and schedules the upload for the course's release date. Instructors can open the draft in Tesselith before that date arrives.

## A video desk for a regional newsroom

A regional news site makes a short explainer video for each local story its reporters flag as a video piece. The newsroom's internal tool passes the headline, the article text and the public URL of the rendered video to an OpenAI-powered agent. The agent drafts a title under 70 characters and a description with the article link at the top, then flags any draft that mentions a named person for an editor to review.

## Refreshing product demo descriptions from a catalogue

An online furniture store keeps a spreadsheet of forty product demo videos. A nightly script finds rows where the price or dimensions changed, and the agent rewrites the YouTube description with the current figures. It only attaches a video again when the file URL in the spreadsheet has changed, and anything that needs a new schedule goes to the store's ops team first.

## Prompts to try

- "Draft a YouTube title under 70 characters and a description of about 200 words for the video at the URL in this request."
- "Using the attached transcript, write chapter timestamps for the YouTube description and keep each chapter title under six words."
- "Attach the public video URL to a YouTube draft, then schedule it for the lecture's release date at 9am UTC."
- "Rewrite the YouTube description with the new price and dimensions, and keep the first 150 characters about the product itself."
- "List the YouTube drafts that have no video attached so the ops team can fix their links before they go live."

## Tips

- Put the limits in your system prompt. YouTube titles cap at 100 characters and descriptions at 5,000, and only about 60 to 70 title characters show in search. A model left alone will often run past them, so check the length in code too.
- Give the model the transcript, and the topic too. Timestamps and claims in the description should come from what is actually said. Otherwise the agent writes a plausible chapter list that does not match the video.
- Validate tags before they go out. Tags can total 500 characters, so count them in your code rather than trusting the model. Dropping duplicates and unrelated terms is a small check that saves a lot of cleanup.
- Add a human step between drafting and scheduling if the copy faces customers. Store the draft, show it to an editor, and call the schedule step only after approval. Publishing now and deleting always need confirmation anyway.

## Questions people ask

### Can my agent publish a video without a person approving it?

Your code can call publish_now, but Tesselith asks for confirmation before publishing or deleting. Build your own approval step into the app so nothing goes out unchecked.

### How does the agent get the video file?

It doesn't read from your disk. Give it a public URL, and upload_media_from_url attaches the file from that address.

### What is the YouTube title character limit?

100 characters, though only about 60 to 70 show in search results.

---
Tesselith · https://tesselith.com · Full site index: https://tesselith.com/llms.txt
