Create personalized email outreach with AI, Telegram bot & website scraping
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) RAG AI Agent (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (22)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Markdown
n8n-nodes-base.markdown - OpenAI
@n8n/n8n-nodes-langchain.openAi - Split Out
n8n-nodes-base.splitOut - Aggregate
n8n-nodes-base.aggregate - Send Email
n8n-nodes-base.emailSend - Data table
n8n-nodes-base.dataTable - Schedule Trigger
n8n-nodes-base.scheduleTrigger - If
n8n-nodes-base.if - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Postgres Chat Memory
@n8n/n8n-nodes-langchain.memoryPostgresChat - AI Agent
@n8n/n8n-nodes-langchain.agent - Postgres Tool
n8n-nodes-base.postgresTool - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Postgres PGVector Store
@n8n/n8n-nodes-langchain.vectorStorePGVector - XML
n8n-nodes-base.xml - Telegram
n8n-nodes-base.telegram - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - Merge
n8n-nodes-base.merge
What it does
Demo Personalized Email This n8n workflow is built for AI and automation agencies to promote their workflows through an interactive demo that prospects can try themselves. The featured system is a deep personalized email demo. --- 🔄 How It Works 1. Prospect Interaction - A prospect starts the demo via Telegram. - The Telegram bot (created with BotFather) connects directly to your n8n instance. 2. Demo Guidance - The RAG agent and instructor guide the user step-by-step through the demo. - Instructions and responses are dynamically generated based on user input. 3. Workflow Execution - When the user triggers an action (e.g., testing the email demo), n8n runs the workflow. - The workflow collects website data using Crawl4AI or standard HTTP requests. 4. Email Demo - The system personalizes and sends a demo email through SparkPost, showing the automation’s capability. 5. Logging and Control - Each user interaction is logged in your database using their name and id. - The workflow checks limits to prevent misuse or spam. 6. Error Handling - If a low-CPU scraping method fails, the workflow automatically escalates to a higher-CPU method. ⚙️ Requirements Before setting up, make sure you have the following: - n8n — Automation platform to run the workflow - Docker — Required to run Crawl4AI - Crawl4AI — For intelligent website crawling - Telegram Account — To create your Telegram bot via BotFather - SparkPost Account — To send personalized demo emails - A database (e.g., PostgreSQL, MySQL, or SQLite) — To store log data such as user name and ID 🚀 Features - Telegram interface using the BotFather API - Instructor and RAG agent to guide prospects through the demo - Flow generation limits per user ID to prevent abuse - Low-cost yet powerful web scraping, escalating from low- to high-CPU flows if earlier ones fail --- 💡 Development Ideas - Replace the RAG logic with your own query-answering and guidance method - Remove the flow limit if you’re confident the demo can’t be misused - Swap the personalized email demo with any other workflow you want to showcase --- 🧠 Technical Notes - Telegram bot created with BotFather - Website crawl process: - Extract sub-links via /sitemap.xml, sitemapindex.xml, or standard HTTP requests - Fall back to Crawl4AI if normal requests fail - Fetch sub-link content via HTTPS or Crawl4AI as backup - SparkPost used for sending demo emails --- ⚙️ Setup Instructions 1. Create a Telegram Bot - Use BotFather on Telegram to create your bot and get the API token. - This token will be used to connect your n8n workflow to Telegram. 2. Create a Log Data Table - In your database, create a table to store user logs. - The table must include at least the following columns: - name — to store the user’s name or Telegram username. - id — to store the user’s unique identifier. 3. Install Crawl4AI with Docker - Follow the installation guide from the official repository: 👉 https://github.com/unclecode/crawl4ai - Crawl4AI will handle website crawling and content extraction in your workflow. --- 📦 Notes This setup is optimized for low cost, easy scalability, and real-time interaction with prospects. You can customize each component — Telegram bot behavior, RAG logic, scraping strategy, and email workflow — to fit your agency’s demo needs. 👉 You can try the live demo here: @emaildemobot ---