Overview
An n8n workflow saves links you send to a Telegram bot into a Supabase vector table, and an AI Agent node searches that table to answer questions about what you saved.
Problem or Objective
More in Research and Analysis
AI Agents and Models
Tools and Integrations
- Tools
- n8n · Telegram · Supabase
- Prerequisites
- An n8n instance (cloud or self-hosted), a Telegram bot token, a Supabase project with a table for vectors, and API access to a chat model and an embeddings model.
How It Works
Create a Telegram bot and add its credentials in n8n. Start a workflow with the Telegram Trigger node listening for new messages, and add a filter step so that only messages from your own chat ID go on. Ask each message to include the link plus a sentence on why you saved it. Pass the message text to a Supabase Vector Store node in Insert Documents mode, pointing it at a table you created in your Supabase project, with the embeddings and document sub-nodes the node asks for. In a second branch for questions, connect an AI Agent node to a chat model and attach the Supabase Vector Store node to its tools connector (or use the Vector Store Question Answer Tool), so the agent searches your saved links when you ask something like "what did I save about database indexing?" and replies in Telegram with the matching links.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up n8n.
- Connect the toolsConnect the tools this workflow relies on: n8n, Telegram, Supabase.
- Check the prerequisitesAn n8n instance (cloud or self-hosted), a Telegram bot token, a Supabase project with a table for vectors, and API access to a chat model and an embeddings model.
- Gather your detailsCollect what the prompt asks for: What you are looking for, How many links to return.
- Run the starter promptPaste the starter prompt below into n8n and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.n8n.io before you rely on it.
Practical Starter Prompt: Answer from my saved links
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
You answer questions about links I have saved. Use the saved-links vector store tool to search for [What you are looking for] and reply with up to [How many links to return] matching links, each with the note I saved alongside it. If nothing relevant is stored, say so plainly instead of guessing, and never invent a link that is not in the store. Only search and answer: do not add, change or delete anything in the store. I review each answer against the saved link before relying on it.Use this as the AI Agent system message, with the Supabase Vector Store node connected as its tool. Keep the chat ID filter on the trigger so only you can add or query links.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The n8n docs support a Telegram trigger, inserting documents into a Supabase vector store, and connecting that store to an AI Agent node as a tool for answering queries. They do not say how relevant search results will be, and nothing here measured answer quality; the workflow only searches what you wrote in each message, not the full linked page.
Limitations and Considerations
A Telegram bot can receive messages from anyone who finds it, so keep the chat ID filter in place and do not save private material you would not want stored in your database. Keep the Supabase keys in n8n credentials, not in node fields. Each saved link and each question calls an embeddings model and a chat model, so check the costs of the models you connect. Check the answer against the saved link before relying on it. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Tool Repository
A tool this workflow relies on.
Official Website
The official site of the main tool or project in this use case.
Visit Website (opens in a new tab)supabase.com
Related Videos
About n8n-io/n8n
Give Your Agent Tools (n8n Agents Course 5/7) (opens in a new tab)
Walkthrough of n8n by n8n: it is on the project’s own channel.
Watch on YouTube (opens in a new tab)About n8n-io/n8n
n8n AI Nodes: Connect OpenAI, Claude, and Local Models (opens in a new tab)
Walkthrough of n8n by AI Daily Lab: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Telegram Trigger | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 17:52 UTC
What this source supports
- On this page, you'll find a list of events the Telegram Trigger node can respond to and links to more resources.
- Supabase Vector Store | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 16:34 UTC
What this source supports
- You can insert documents into a vector database, get documents from a vector database, retrieve documents to provide them to a retriever connected to a chain , or connect it directly to an agent to use as a tool .
- You can connect the Supabase Vector Store node directly to the tool connector of an AI agent to use a vector store as a resource when answering queries.
- AI Agent | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Connect a chat model and one or more tools, and the agent decides which tools to call to complete a task.

