Blog

How to Ask Naval Anything by Building an Agent That Watched His Whole Channel

Turn one YouTube channel into something you can question, with every answer pinned to the second it was said.

No machine learning background needed. No team, and no budget beyond a weekend.

I build research tools on top of YouTube transcripts. youtubetranscript.dev is one of mine, so read what follows knowing I have a horse in this race.

What you'll learn:


Have you ever tried to find the one thing someone said, in a video you watched a year ago?

On Christmas Day 2019, Naval Ravikant posted How to Get Rich.

It runs three hours, thirty-five minutes and thirty-six seconds.

It has been watched more than 14 million times.

Someone broke it into chapters, so the part about "a calm mind, a fit body, a house full of love" starts at 2:37:59.

That works for one video.

Naval's channel has 268 of them. The idea you half remember could be in any of them.

A person has already solved this once, by hand. In 2020 Eric Jorgenson published The Almanack of Naval Ravikant, which, in his words, "collects and curates Naval's wisdom from Twitter, Podcasts, and Essays over the past decade."

It's free to read online, and it's excellent.

It's also finished. It can't answer the question you have tonight, and it doesn't cover anything Naval has said since.

You can build a living version of that book for any channel you learn from. An agent that has read every transcript and answers from them.

There's a method to it. Let's go through each part:

  1. The timestamp
  2. The transcripts
  3. The chunks
  4. The answer
  5. The refresh

The timestamp: the part most people skip

Rule: no timestamp, no answer.

Ask a general chatbot what Naval thinks about wealth and you'll get a confident essay that sounds roughly like him.

Some of it will be his.

Some will be the internet's summary of him.

Some will be invented.

You have no way to tell which.

Now picture the same answer with a link under each claim. Each link opens the video at the second he said it. You click, you listen for twenty seconds, and you know.

I call this the receipt rule. Every sentence the agent writes carries a receipt: the video, and the moment in it.

Every step below exists to keep that receipt attached. If a step breaks it, your agent becomes the generic chatbot again, only slower.

An answer you can't check is a rumor with good grammar.

The transcripts: where weekend projects die

Rule: take the whole channel, not the hits.

The popular videos are the ones you already remember. The obscure ones are where the answer you can't find is hiding.

Naval is an unusual case. He publishes edited transcripts of his own podcast. The How to Get Rich page on nav.al is the whole conversation in text, with Naval and Nivi labelled.

Most channels have nothing like it. You'll be pulling transcripts from YouTube.

And that's where it breaks.

A DEV tutorial from October 2026 tested the standard open-source library, youtube-transcript-api, from a cloud server.

Five requests. Five failures. Every one said "YouTube is blocking requests from your IP."

On the same server, a popular tool for listing a channel's videos returned an empty list, with no error at all.

The author's advice is worth taping to your monitor: "If your channel job reports zero videos, check where it runs before you debug your code."

Add the videos that have no captions, which need speech-to-text from the audio, and the plumbing can eat the whole weekend before you've built anything.

The system step:

  1. List every video on the channel from its @handle.
  2. Pull captions where they exist, and transcribe the audio where they don't.
  3. For every line of text, keep three things: the video ID, the start time and the title.

Lose the start time here and no later step can bring it back.

One warning before you move on. Much of Naval's channel is conversation, and YouTube's automatic captions don't say who is talking. In How to Get Rich, Nivi asks the questions.

If your agent can't tell the two voices apart, one day it will quote Nivi as Naval, with a perfectly good timestamp.

Where a channel publishes labelled transcripts, as nav.al does, prefer them. Where it doesn't, have the agent say "in this conversation" instead of "Naval said."

What one real transcript looks like

On November 18 I ran How to Get Rich through youtubetranscript.dev, which is one of mine.

One API call with the video ID, captions only. It came back in a single response: 6,365 timed lines, about 44,000 words, the full three and a half hours. It cost 1 credit.

Then I looked for the calm-mind passage.

The chapter starts at 2:37:59. The line itself is at 2:39:16, where Naval introduces what he calls his favorite tweet of his own:

"a calm mind a fit body and a house full of love these things cannot be bought they must be earned"

That 77-second gap is the receipt rule in small. A chapter tells you roughly where to look. The transcript gives you the second, and that's the link your agent should cite.

The same file shows the speaker problem, and one I hadn't expected.

There are no speaker labels. At 2:46:45 the line "you summarized this entire Tweed storm with two words productize yourself" is Nivi talking to Naval, and nothing in the text says so.

The automatic captions also never spell the host's name right. The word "Naval" appears zero times in those 44,000 words. He's "navall" three times and, at 0:54, "Nepal": "you probably know Nepal from his Twitter account". A keyword search for his name finds nothing, which is one more reason the chunks get searched by meaning.

Nivi points to the fix himself at 0:46: there's "a clean transcript" in the show notes and on nav.al.

For one video, paste the link into the box on youtubetranscript.dev and press Extract. You get the transcript with timestamps, and your first 10 transcripts are free, with no card.

For the build, use the API, because it takes whole channels. Send it the @handle and it lists every upload, then a batch request transcribes them, each line with its video ID and start time. Videos without captions are transcribed from the audio. Channel jobs come with the $9 plan, up to 500 videos a job, so Naval's 268 fit in one, at 1 credit for each video that has captions.

The chunks: the boring part that decides everything

Rule: a model can only answer from what the search hands it.

Don't feed the agent whole transcripts.

Cut each one into chunks of about one idea, a minute or two of speech. Carry the video ID and start time into every chunk.

Then make the chunks searchable by meaning. You turn each chunk into an embedding, a list of numbers that captures what it's about. That way a question about "wanting less" can find a passage that never uses those words.

Nobody shares a screenshot of their chunking step. It still decides the quality of every answer you'll ever get.

There's a known weakness here. Anthropic wrote it up in a September 2024 post on contextual retrieval: "traditional RAG solutions remove context when encoding information."

A chunk that says "and that's why you should never do it" means nothing once it's cut loose from the minute before it.

Their fix is to put a sentence or two of context in front of each chunk before embedding it. In their tests:

For a video channel the cheap version is easy. Before you embed a chunk, write the video title and one line on what the conversation is about at that point.

"From How to Get Rich, on why renting out your time won't make you rich" gives the search far more to grip than a bare quote does.

The answer: the agent must be allowed to say no

Rule: answer from the chunks, or don't answer.

When you ask a question, the agent searches, takes the best-matching chunks and writes an answer from those alone. A timestamp link goes after each claim.

How many chunks? Anthropic's tests found that passing 20 worked better than passing 5 or 10. Start at 20 and narrow only if answers get muddy.

The instruction that matters most goes in the prompt, in plain words. If the chunks don't answer the question, say so.

"But won't that make it less useful?"

It makes it the only version worth using.

An agent that answers every question in a creator's voice, whether or not he ever addressed it, is worse than no agent. It puts words in a real person's mouth, with a link that looks like proof.

A refusal is how you learn the agent is honest. Every "he doesn't cover that here" makes the next real answer more believable.

So build a test set before you trust it:

Run the set every time you change the chunk size, the search or the prompt.

That's the effort bar. Thirteen questions, written down, run after every change. If you haven't written them, you haven't tried yet.

The refresh: the easy part

Rule: a channel agent that stops reading is an almanac again.

Channels keep publishing. Once a week:

  1. Ask for the channel's video list.
  2. Transcribe anything new.
  3. Chunk it, add the context line, embed it.
  4. Run your thirteen questions.

If a known answer stops coming back, look at the chunks and the search before you blame the model. That's where it usually goes wrong.

Keep the interface plain. A text box, an answer, and the sources underneath as clickable timestamps.

The sources are what people will use. Most of the time the answer just tells you which twenty seconds to go and listen to.

Take these today

Copy any of these straight into your build.

The prompt line. "Answer only from the passages below. After each claim, link the video and start time it came from. If the passages don't answer the question, say that the channel doesn't cover it here."

The chunk header. "From [video title], on [one line about what's being discussed at this point]."

The speaker line. "If the speaker isn't labelled, write 'in this conversation', never the host's name."

The test-set row. Question / video / minute / expected answer in one sentence / should refuse (yes or no).

The refresh checklist. New videos listed, transcribed, chunked, headed, embedded, test set run, failures noted.

Don't make these mistakes

Pick one channel you'd happily rewatch. Write down five questions you've wanted to ask it, with the video and minute where you think each answer is. That list is your test set, and it's the most useful thing you'll make this weekend.


All articles →