Skip to content

That's just a taste — their profile full of gems!

Visit profile
User avatar
Kenneth Mendoza
August 9881

Deep Research Teams in n8n

I went down a rabbit hole last week and ended up building a deep research system in n8n powered by teams of AI agents.

What kicked this off was exploring LangChain/LangGraph more seriously. I found their open deep research architecture, wanted to really understand it, and instead of just reading through the repo, I rebuilt the whole thing in TypeScript first.

That took me about two days.

Then I thought: can I bring the same pattern into n8n without losing what makes it good?

So I spent another day and a half doing exactly that.

And it worked.

What I like about this build is that it’s not just “an AI agent.” It’s an agentic framework with clear separation between planning and execution.

In the first phase, I have a planning team generating the report structure. Not a static outline. A collaborative draft that can be reviewed, edited, and regenerated as many times as needed.

That human-in-the-loop piece is the part I really love.

Instead of accepting whatever outline the model gives on the first pass, I can refine it live through Telegram. Remove sections. Change direction. Approve only when the report structure actually makes sense.

So the workflow feels less like prompting and more like orchestrating.

Once the plan is approved, the second phase kicks in.

This is where a separate execution team takes over.

Each section marked as needing research gets assigned to its own agent flow, and those run in parallel. That means the system isn’t writing one giant report sequentially. It’s splitting the work into focused research units and processing them simultaneously.

That pattern is just clean.

It makes the workflow feel much more like a real research operation: plan together first, then fan out the work, then assemble the final deliverable.

For search, I used Tavily, but the nice part is that it’s replaceable. If I want to swap in Perplexity or SERP later, that’s easy.

For delivery, the final output gets sent back as a Markdown report, which I like because it keeps the result portable. Easy to edit, publish, store, or feed into the next step of a workflow.

One thing I appreciated while testing it was how practical the feedback loop became.

I sent in a research topic through Telegram, the planner generated a full section breakdown, and I could respond with simple feedback like removing sections I didn’t want. The planner would then regenerate the structure based on that input and send it back again for approval.

No friction. No code edits. Just iteration until the scope felt right.

Then once approved, the research agents spun up and started working those sections in parallel.

That’s the kind of automation I’m always chasing: less magic trick, more usable system.

There was one hiccup during the run. One of the final writing steps hit a token limit on Claude Sonnet 3.7, so I switched that node over to o3-mini and continued manually. Not ideal, but honestly that’s part of building real systems. You find the edge cases, swap the part, keep moving.

The full run came out to roughly $1.14 using higher-end models.

Expensive? Depends on the use case.

If I were optimizing for cost, I’d drop in something like 4o-mini or Gemini Flash and bring that way down. But for testing the architecture properly, I wanted strong models in the loop so I could judge the framework itself instead of blaming weak outputs.

And the output was solid.

The generated report had:

  • structured sections
  • useful synthesis
  • source references attached per section
  • strong coverage of the topic
  • a final compiled Markdown deliverable

That source-linking detail matters a lot. It makes the report more auditable and way more useful than generic AI writing.

The biggest win for me wasn’t just that I got deep research running in n8n.

It was proving that good agent patterns from code-first frameworks can be translated into low-code orchestration without losing the architecture.

That opens up a lot.

You can take ideas like:

  • evaluator/optimizer loops
  • dynamic agent assignment
  • HITL planning
  • parallelized execution
  • modular report generation

…and implement them in a way that’s much easier for ops teams, agencies, and builders to deploy fast.

That’s the sweet spot I care about.

Not complexity for the sake of complexity.

Just elegant orchestration that actually ships.

I learned a lot from rebuilding this pattern in both TypeScript and n8n, and it reminded me why I love open source so much: if a project is designed well, you don’t just use it — you can learn the thinking behind it, remix it, and turn it into your own system.

That’s where the real leverage is.

#opensource#automation#telegram#typescript#aiagents#langchain#n8n#langgraph#deepresearch#tavily
Like
Dislike

80

19

Add a comment...