<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Asadullah's Blog]]></title><description><![CDATA[Asadullah's Blog]]></description><link>https://asadullahasadullah.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 00:43:02 GMT</lastBuildDate><atom:link href="https://asadullahasadullah.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[I Built an AI Auto-Reply Agent with n8n, Telegram, and Supabase]]></title><description><![CDATA[How I built an AI auto-reply agent with n8n: Telegram trigger, AI agent, Supabase knowledge base, Telegram reply, and Gmail handover.]]></description><link>https://asadullahasadullah.hashnode.dev/i-built-an-ai-auto-reply-agent-with-n8n-telegram-and-supabase</link><guid isPermaLink="true">https://asadullahasadullah.hashnode.dev/i-built-an-ai-auto-reply-agent-with-n8n-telegram-and-supabase</guid><category><![CDATA[n8n]]></category><category><![CDATA[AI Agents Explained]]></category><category><![CDATA[telegram bot]]></category><category><![CDATA[supabase auth]]></category><dc:creator><![CDATA[Asadullah Asadullah]]></dc:creator><pubDate>Wed, 25 Nov 2026 15:20:11 GMT</pubDate><content:encoded><![CDATA[<p>I'm Asadullah, a 19-year-old BS Artificial Intelligence student in my first semester at NUML Multan, Pakistan. I am learning automation by building small projects, and this is the first one I want to share: an AI auto-reply agent built with n8n.</p>
<h2>What it does</h2>
<p>The agent answers messages that come in on Telegram. When someone sends a message, the workflow picks it up, an AI agent reads it, looks up the answer in a Supabase knowledge base, and replies on Telegram. If a question needs a human, the workflow hands it over through Gmail instead of guessing.</p>
<h2>How the workflow works</h2>
<ol>
<li><strong>Telegram trigger</strong> — A new message in Telegram starts the workflow.</li>
<li><strong>AI agent</strong> — The AI agent reads the message and decides what the person is asking.</li>
<li><strong>Supabase knowledge-base lookup</strong> — The agent searches the knowledge base stored in Supabase, so its answer comes from real information, not from memory alone.</li>
<li><strong>Telegram reply</strong> — The answer is sent back to the same person on Telegram.</li>
<li><strong>Gmail handover</strong> — When a message needs a human, the workflow hands it over by email through Gmail.</li>
</ol>
<p>The flow is simple on purpose: trigger, think, look up, reply, and hand over when needed.</p>
<h2>Why I built it this way</h2>
<p>I wanted a bot that does more than repeat fixed replies. Connecting the AI agent to a Supabase knowledge base means the answers can change when the knowledge base changes, without rebuilding the workflow. The Gmail handover matters too — an agent should know when to stop and let a human take over.</p>
<h2>What I learned</h2>
<ul>
<li>How to connect Telegram, an AI agent, Supabase, and Gmail in one n8n workflow.</li>
<li>Why the knowledge base matters more than the prompt: the agent is only as good as the information it can look up.</li>
<li>That a simple flow is easier to test and fix than a big one. Each step — trigger, agent, lookup, reply, handover — can be checked on its own.</li>
</ul>
<h2>What is next</h2>
<p>I plan to keep improving this project: a bigger knowledge base in Supabase, better handover messages, and more testing with different kinds of questions. I am learning in public, so I will share what works and what breaks.</p>
<p>If you are a student starting with n8n and AI agents, my advice is simple: pick one small workflow, build it end to end, and then make it better step by step.</p>
]]></content:encoded></item></channel></rss>