Skip to main content

Answer questions with factual web search using Telegram, Tavily and GPT-5

Workflow preview

Workflow preview
100%
Answer questions with factual web search using Telegram, Tavily and GPT-5 preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 AI...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.telegram, n8n-nodes-base.telegramtrigger, @tavily/n8n-nodes-tavily.tavily, n8n-nodes-aimlapi.aimlapi

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by AI/ML API | D1m7asis.

Original n8n.io source

1.1 Workflow description

Title
Answer questions with factual web search using Telegram, Tavily and GPT-5
Workflow name
Answer questions with factual web search using Telegram, Tavily and GPT-5

🧠 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

  • 📩 Telegram-based input
  • ⌨️ Typing indicator for better UX
  • 🔎 Web search with Tavily (JSON results)
  • 🧠 Summarization with AIMLAPI (openai/gpt-5-chat-latest)
  • 📤 Replies in the same chat/thread
  • Guardrails against hallucinations

🛠 Setup Guide

1. 📲 Create Telegram Bot

  • Talk to @BotFather
  • Use /newbot → choose a name and username
  • Save the bot token

2. 🔐 Set Up Credentials in n8n

  • Telegram API: use your bot token
  • Tavily: add your Tavily API key
  • AI/ML API: add your API key
    • Base URL: https://api.aimlapi.com/v1

3. 🔧 Configure the Workflow

  • Open the n8n editor and import the JSON
  • Update credentials for Telegram, Tavily, and AIMLAPI

⚙️ Flow Summary

Node Function
📩 Receive Telegram Msg Triggered when user sends text
⌨️ Typing Indicator Shows “typing…” to user
🔎 Web Search Queries Tavily with user’s message
🧠 LLM Summarize Summarizes search JSON into a factual answer
📤 Reply to Telegram Sends concise answer back to same thread

📁 Data Handling

  • By default: no data stored
  • Optional: log queries & answers to Google Sheets or a database

💡 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

  • Add commands: /help, /sources, /news
  • Apply rate-limits per user
  • Extend logging to Google Sheets / DB
  • Add NSFW / profanity filters before search

🧪 Testing

  • Test end-to-end in Telegram (not just “Execute Node”)
  • Add a fallback reply if Tavily returns empty results
  • Use sticky notes for debugging & best practices

📎 Resources

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note — Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note — LLM Prompt

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note — Testing

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note — Customization

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note — Reply

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note — LLM

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note — Search

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note — Typing

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note — Receive

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Send a text message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 11 - Send a chat action

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 12 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 13 - Search

Type / Role
@tavily/n8n-nodes-tavily.tavily - tavily
Config choices
Version 1

Block 14 - AI/ML Chat Completion

Type / Role
n8n-nodes-aimlapi.aimlApi - aimlApi
Config choices
Version 1

Block 15 - Sticky Note — LLM Prompt1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Answer questions with factual web search using Telegram, Tavily and GPT-5
Complexity advanced
Nodes 15
Categories Support Chatbot, AI Chatbot
Author AI/ML API | D1m7asis
Published 17 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8673/8673.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Answer questions with factual web search using Telegram, Tavily and GPT-5 do?

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 AI...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.