πŸ’¬ Answer questions with factual web search using Telegram, Tavily and GPT-5

⚑ 523 views Β· πŸ’¬ Support Chatbots

Description

🧠 Telegram Search Assistant β€” Tavily + AI/ML API

This n8n workflow lets users ask questions in Telegram and receive concise, fact-based answers.
It performs a web search with Tavily, then uses AIMLAPI (GPT-5) to summarize results into a clear 3–4 sentence reply.
The flow ensures grounded, non-hallucinated answers.


πŸš€ Features


πŸ›  Setup Guide

1. πŸ“² Create Telegram Bot

2. πŸ” Set Up Credentials in n8n

3. πŸ”§ Configure the Workflow


βš™οΈ Flow Summary

NodeFunction
πŸ“© Receive Telegram MsgTriggered when user sends text
⌨️ Typing IndicatorShows β€œtyping…” to user
πŸ”Ž Web SearchQueries Tavily with user’s message
🧠 LLM SummarizeSummarizes search JSON into a factual answer
πŸ“€ Reply to TelegramSends concise answer back to same thread

πŸ“ Data Handling


πŸ’‘ Example Prompt Flow

User sends:


When is the next solar eclipse in Europe?

Bot replies:

The next solar eclipse in Europe will occur on August 12, 2026.
It will be visible as a total eclipse across Spain, with partial views in much of Europe.
The maximum eclipse will occur around 17:46 UTC.

πŸ”„ Customization


πŸ§ͺ Testing


πŸ“Ž Resources

πŸ”— Nodes Used

Telegram, Telegram Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup