Web Scraping & Data Extractionbeginner
September 17, 2025
5 min read
25 minutes
N8N Workflow for Web Based Research Using Tavily – Convert Telegram Messages into Smart Summaries
Turn Telegram into your research assistant. This n8n workflow uses Tavily Search + GPT-4 to fetch web results, filter for quality, and return summaries.
By Nayma Sultana
Required Tools
n8ntavilytelegram

Ever wished you could just text a question and get back a perfectly summarized answer from the web? You know, like having a research assistant in your pocket who never sleeps and always delivers crisp, relevant information?
Well, here's the thing about information overload: we're drowning in data but starving for insights. Every day, we bounce between search engines, articles, and social media, trying to piece together answers to simple questions. It's exhausting.
What if there was a better way? What if you could send a message to a bot and get back high-quality, AI-summarized content from the most relevant sources on the web?
That's exactly what this N8N workflow delivers. It's a intelligent Telegram bot that takes your text messages, searches the web using advanced APIs, filters for quality results, and returns beautifully formatted summaries powered by GPT-4. Think of it as your personal research assistant that lives right in your messaging app.
Prerequisites: What You'll Need to Get Started
Before we dive into building this workflow automation masterpiece, let's gather our tools. You'll need access to a few key services:
- Telegram Bot API: For receiving and sending messages through Telegram
- Tavily Search API: A powerful search engine API that delivers high-quality web results
- OpenAI API: For GPT-4 powered content summarization
- N8N Platform: The workflow automation tool that ties everything together
Don't worry if this sounds technical. N8N makes connecting these services as simple as drawing lines between boxes.
Key Components: The Building Blocks
This workflow uses eight essential N8N nodes, each with a specific job:
- Telegram Trigger: Listens for incoming messages
- Tavily API Key: Manages your search API credentials
- Tavily Search Topic: Performs the actual web search
- Filter > 75%: Ensures only high-quality results make the cut
- Get Top Result: Selects the most relevant search result
- OpenAI Chat Model: Provides the AI brain for summarization
- Summarize Web Page Content: Creates the formatted summary
- Send a Text Message: Delivers the final result back to Telegram
Step-by-Step Implementation: Building Your Research Bot
Step 1: Set Up Your Telegram Gateway
Start by adding a Telegram Trigger node to your N8N canvas. This is your workflow's front door. Configure it with your bot credentials, and it will automatically wake up whenever someone sends a message. The beauty here is that N8N handles all the webhook complexity behind the scenes.

Connect this trigger to a simple Set node that stores your Tavily API key. Yes, you could hardcode this, but storing it as a variable keeps things clean and secure.
Step 2: Search the Web with Intelligence
Next, add an HTTP Request node configured to call the Tavily Search API. This isn't your average search engine. Tavily specializes in delivering research-quality results with relevance scores.

The magic happens in the request body. Your workflow grabs the incoming Telegram message text and uses it as the search query. The API returns up to 5 results, each with a relevance score and rich content data.
Step 3: Filter for Quality Content
Here's where things get smart. Add another Set node that filters the search results, keeping only those with relevance scores above 75%. This quality gate ensures your bot won't waste time summarizing irrelevant content.
Think of this step as having a librarian who only hands you the best books on your topic. No fluff, no spam, just high-quality sources.
Step 4: Extract and Summarize
Add one more Set node to grab the top result from your filtered list. Then comes the star of the show: a LangChain LLM node connected to OpenAI's GPT-4 model.

This node takes the raw web content and transforms it into a clean, readable summary formatted in Markdown v2. The prompt is elegant in its simplicity: "Summarize this web content and provide in Markdown v2 format." Sometimes the best instructions are the clearest ones.
Step 5: Deliver the Goods
Finally, add a Telegram node configured to send messages back to the original chat. It takes the AI-generated summary and delivers it right to your phone, beautifully formatted and ready to read.

The entire process, from message to summary, happens in seconds. Your users send a question, and they get back a research-grade answer without ever leaving their chat app.
Benefits and Real-World Applications
This N8N workflow automation opens up incredible possibilities. Imagine having a research team that never sleeps, never gets tired, and always delivers consistent results.
For content creators, it's like having a research assistant who can quickly brief you on any trending topic. Marketers can use it to stay on top of industry news without drowning in information overload. Students can get quick, authoritative summaries on complex subjects.
The quality filtering is particularly brilliant. By only processing results with high relevance scores, your bot maintains credibility and saves computational resources. You're not just building a search bot; you're creating an intelligent information curator.
But perhaps the best part is how accessible this makes advanced AI capabilities. No complex coding, no server management, no infrastructure headaches. Just connect the dots in N8N, and you have a production-ready AI assistant running in minutes.
Ready to Transform Your Information Workflow?
The future of information access isn't about better search engines or faster internet. It's about intelligent systems that understand what you need and deliver exactly that, nothing more, nothing less.
This N8N workflow represents that future, available today. It combines the best of web search, artificial intelligence, and messaging platforms into something that feels almost magical in its simplicity.
So go ahead, build your research assistant. Your future self, armed with instant access to summarized, high-quality information, will thank you for it. Because in a world overflowing with data, the real superpower isn't finding information faster. It's finding the right information, perfectly tailored to your needs, delivered exactly when and where you need it.
Welcome to the age of intelligent automation. Your personal research assistant is waiting.
Share this article
Help others discover this content
Tap and hold the link button above to access your device's native sharing options
More in Web Scraping & Data Extraction
Continue exploring workflows in this category