Build a Deep Research Agent with Spring AI & Browserbase

Dan Vega

Dan Vega

5,267 views

What if you could build your own deep research agent, like ChatGPT's deep research feature using Java and Spring AI? In this video, I'll show you exactly how to do that using Browserbase's new Search API.

Inspired by Aaron Francis's TypeScript implementation, I rebuilt a deep research agent entirely in Java with Spring AI and a custom Browserbase Spring Boot Starter I created. The agent takes any topic, generates diverse search queries via an LLM, fetches web content through Browserbase, and synthesizes everything into a structured markdown report with executive summaries, key findings, themes, and open questions.

How Browserbase's Search API works and why it's different from a standard web search API (handles JS-rendered content, auth, headless browsers)
How to use a custom Browserbase Spring Boot Starter to integrate Browserbase into your Java projects
Building a multi-step research pipeline: discover β†’ fetch β†’ synthesize using Spring AI's chat client
Using virtual threads for parallel page fetching with concurrency limits
How to run this entire workflow for free using open models (Ollama/LM Studio) and Browserbase's free tier (1,000 searches/month)

If you learned something new today, leave a thumbs up, subscribe to the channel, and drop a comment telling me what topics you'd want your own deep research agent to investigate!

0:00 - Intro - I Love to Tinker
0:45 - Aaron Francis's Inspiration Video
1:25 - What is Browserbase?
2:30 - Why Not Just Use a Regular Search API?
3:45 - Headless Browser Use Cases
4:30 - The Browserbase Spring Boot Starter
6:15 - Deep Research Agent Overview
7:30 - The Research Pipeline: Discover, Fetch, Synthesize
9:00 - Code Walkthrough - Controller & Pipeline
11:00 - Running the Deep Research Agent Live
13:00 - Viewing the Generated Report
14:00 - Running This for Free with Open Models
14:45 - Wrap Up & Final Thoughts

#SpringAI #Java #SpringBoot #Browserbase #DeepResearch #AIAgents #WebSearch #OpenAI

Blog Post: Browserbase Spring Boot Starter: https://www.danvega.dev/blog/browserb...
Browserbase: https://www.browserbase.com/
Aaron Francis's Video (Inspiration): Build a deep research tool


πŸ”—Resources & Links mentioned in this video:

πŸ‘‹πŸ»Connect with me:
Website: https://www.danvega.dev
Twitter: Twitter: therealdanvega
Github: https://github.com/danvega
LinkedIn: LinkedIn: danvega
Newsletter: https://www.danvega.dev/newsletter

SUBSCRIBE TO MY CHANNEL: http://bit.ly/2re4GH0 ❀️