n8n and Bright Challenge: Unstoppable Workflow
This is a submission for the AI Agents Challenge powered by n8n and Bright Data
What I Built
I built a co-research application, which can speed up work for scientist working in healthcare or medicine industry. It uses multiple n8n AI Agent nodes, each note is responsible to conduct specific searches related to the research description like gathering clinical trial information and literature information and the final agent generates a summary with insights
Demo
Live App You can try the app in the below link.
https://co-researcher.vercel.app
n8n Workflow
Technical Implementation
I have created two workflows.
-
Main Workflow: This is where the actual research workflow happens. It uses multiple AI agents, with each agent handling a specific part of the research process.
-
Sub Workflow: To search the internet using BrightData Think of this like a resuable helper function. It handles web searching tasks and is designed to work with any existing or new workflows. In this project, three different agents use this same sub workflow as their search tool.
LLM Model: Well, I used Gemini Flash due to their free tier.
Memory: I used simple memory provided by n8n
Tools: Well, the BrightData search
This is simply the tech stack
- Next.js: Web app
- n8n: Research Automation
- BrightData: For Searching Web
- AirTable: Storage
- Gemini: LLM
Bright Data Verified Node
I have used couple of bright data nodes
- Webscrapper Node with Google AI search
- Monitor Snapshot
- Download Snapshot
Journey
This project is an inspiration from James Zou talk on Virtual Lab of AI Scientists. Since this is just a hackathon project, I didn’t capture his complete version, rather adapted the core ideas he outlined so credits to him.
Okay now about my actual journey
I’m completely new to both n8n and brightdata so had to watch some YouTube videos to get an overall understanding. Also as person who likes to avoid tooling and loves to code everything, this entire concept seemed too good to be true. What I personally liked is the easy integration with the various platforms with just API keys and also the orchestration of AI Agent tool, this is super cool coz If I had to code this I would easily sit at least a week on this.
I started experimenting with BrightData on n8n, and initially tried using it directly as a tool in an agent node. But that didn’t really work for me cox the results would get stored in a BrightData snapshot, which made it pretty tricky to orchestrate the whole process properly.
So I had this idea to create a separate workflow instead and call that as a tool. Turns out this approach worked really well for me, What I ended up with was this reusable web searching workflow that I can basically plug in anywhere I need it I pretty much liked this neat solution.
Now all I needed is a place to store the records, I wanted to keep it simple and went with Airtable. Finally I created a Next.js app to make it accessible and view the results.
You can find the code along with n8n workflow jsons in the below GitHub repo.
GitHub
If you have read it till here, a like would be great, thank you.
…