n8n Tutorial

  • Loading...

n8n tutorial - Lesson 27: Connect n8n to Telegram via Cloudflare Tunnel

n8n tutorial - Lesson 27: Connect n8n to Telegram via Cloudflare Tunnel

Hi everyone, in this post we'll walk through how to connect n8n to Telegram using a Cloudflare Tunnel — making your n8n telegram chatbot reachable from the internet without a VPS. This is part of the n8n Workflow Automation Tutorial series and covers the exact setup used to activate the T7-B2-Telegram-Chatbot workflow in a real session.

How to do:

Step 1 — Install Cloudflare Tunnel (cloudflared)

You need cloudflared installed locally to create a public tunnel to your n8n instance running on localhost:5678.
  1. Open a terminal and run: winget install Cloudflare.cloudflared
  2. After installation, start a quick tunnel with: cloudflared tunnel --url http://localhost:5678
  3. Copy the generated public URL — it looks like https://random-name.trycloudflare.com. You will need this in the next step.

Note — This is a "quick tunnel." The URL changes every time you restart cloudflared. That means you must update WEBHOOK_URL and restart n8n each time. A Named Tunnel fixes this — covered at the end of this post.

Step 2 — Set WEBHOOK_URL in Docker Compose

n8n needs to know its own public URL so it can register the correct webhook address with Telegram.
  1. Open your docker-compose.yml file in a text editor.
  2. Under the environment section for your n8n service, add or update:
    • WEBHOOK_URL=https://your-tunnel-url.trycloudflare.com
  3. Save the file, then restart n8n by running: docker compose down && docker compose up -d

Tip — If you skip this step, n8n will still register a localhost address with Telegram, and the webhook will never receive messages. Always set WEBHOOK_URL before activating any Telegram workflow.

Step 3 — Build the Telegram Chatbot Workflow (T7-B2-Telegram-Chatbot)

This workflow receives a user message from Telegram, passes it to an AI Agent, and sends the reply back — the core n8n telegram chatbot pattern.
  1. In n8n, create a new workflow named T7-B2-Telegram-Chatbot.
  2. Add a Telegram Trigger node as the starting node. This registers a webhook with Telegram automatically when the workflow is activated.
  3. Add an AI Agent node (using Claude Haiku 4.5 or your preferred model) connected to the Telegram Trigger.
  4. In the AI Agent node, set Source for Prompt to Define below, then set the prompt expression to: {{ $json.message.text }}
    • This extracts the actual text the user typed in Telegram.
  5. Do not add a Simple Memory node — Telegram Trigger uses a session concept, but Simple Memory caused issues in testing and was removed.
  6. Add a Telegram node at the end to send the AI Agent's reply back to the user.

Tip — The prompt expression {{ $json.message.text }} is the correct path for Telegram Trigger output. If you use a generic {{ $json.text }} it will return empty and the agent will have no input to work with.

Step 4 — Activate the Workflow

Activating the workflow registers the webhook URL with Telegram — this is the step that makes everything live.
  1. Make sure cloudflared is still running and your n8n instance is up with the correct WEBHOOK_URL set.
  2. In the workflow editor, click the Inactive toggle in the top-right corner to set the workflow to Active.
  3. n8n will call the Telegram API to register the webhook at your Cloudflare Tunnel URL automatically.
  4. Open Telegram, find your bot, send a message, and verify the AI Agent replies.

Note — Every time the Cloudflare quick tunnel restarts and gives you a new URL, you must: update WEBHOOK_URL in docker-compose.yml, restart n8n, then toggle the workflow Inactive → Active again. This re-registers the new URL with Telegram.

Step 5 — Understand the Quick Tunnel Limitation and Next Steps

The quick tunnel works perfectly for testing your n8n workflow automation, but it has one real-world drawback you need to plan around.
  1. The problem: The quick tunnel URL (e.g. https://random-name.trycloudflare.com) changes on every restart of cloudflared.
  2. Each URL change requires three actions:
    • Update WEBHOOK_URL in docker-compose.yml
    • Restart n8n with docker compose down && docker compose up -d
    • Toggle the Telegram workflow Inactive then Active to re-register the webhook
  3. Long-term fix — Named Cloudflare Tunnel: A named tunnel gives you a fixed subdomain (e.g. https://n8n.yourdomain.com) that never changes. Setup requires a Cloudflare account with a domain attached.
  4. Alternative — VPS deployment: When you deploy n8n on a VPS, the Webhook node automatically gets a public URL. You no longer need cloudflared at all.
    • Note: Oracle Cloud free tier signup from some regions (e.g., Vietnam) can be difficult — factor this into your planning.

Production tip — For a stable n8n telegram chatbot in production, a Named Cloudflare Tunnel or a VPS is strongly recommended. The quick tunnel is only suitable for development and testing sessions.

Key Lessons from This Session

  1. Always set WEBHOOK_URL before activating a Telegram workflow. Without it, n8n registers a localhost address that Telegram cannot reach.
  2. Quick Cloudflare Tunnel URLs are temporary. The URL changes on every restart — you must update WEBHOOK_URL, restart n8n, and re-activate the workflow each time.
  3. Use {{ $json.message.text }} for the AI Agent prompt in a Telegram Trigger workflow. This is the correct data path from the Telegram Trigger output.
  4. Remove Simple Memory when using a Telegram Trigger. Simple Memory added complexity without benefit in this setup and caused issues during testing.
  5. The Webhook node in n8n does not create a public URL by itself. It only creates an endpoint — you still need cloudflared, ngrok, or a VPS to expose it publicly. On a VPS, the public URL is automatic.
  6. Named Cloudflare Tunnel or VPS is the correct production path. The quick tunnel is a development shortcut, not a stable deployment strategy.

Conclusion:

In this n8n tutorial, we connected a local n8n instance to Telegram using a Cloudflare Tunnel, activated the T7-B2-Telegram-Chatbot workflow, and got a real AI-powered chatbot responding to Telegram messages. The key takeaway for this n8n workflow automation pattern is that WEBHOOK_URL and tunnel stability are the two variables that determine whether your bot stays online. In the next post in this series, we'll merge the Telegram Chatbot with a RAG pipeline so the bot can answer questions from a knowledge base.

If you have any questions, feel free to leave a comment below. Thank you!

Tags: n8n telegram chatbot, n8n tutorial, n8n workflow automation, cloudflare tunnel n8n, n8n webhook setup, n8n docker webhook, n8n AI agent, n8n beginner tutorial

Maybe you are interested!

Getting Started with Mapify AI: Turn Any Content Into Mind Maps in Minutes

Mapify is an AI-powered tool that does something pretty clever: it transforms lengthy content into visual mind maps in just a few minutes. Instead of manually reading, analyzing, and organizing ideas yourself, you simply feed Mapify your text, documents, website links, or YouTube videos—and it automatically identifies key points and builds a structured, easy-to-follow mind map for you.

What's interesting here is how Mapify handles content summarization. The tool excels at extracting the most important information and presenting it as logical branches, making it ideal for students and professionals who need to absorb knowledge quickly. Beyond just auto-generating mind maps, Mapify lets you edit branches, add new information, and reorganize the structure however you like. Here's how to get started.

How to Create Mind Maps with Mapify

Step 1:

Head to the Mapify website using the link below and set up your account.

https://mapify.so/vi/app/new

Once you're in, you'll see an input field where you can enter your mind map request and upload documents to use as reference material if needed.

Step 2:

Below the input field, you'll find configuration options for how Mapify generates your mind map. Click through each setting to customize them based on your needs.

Different mind map styles work better for different types of content. Once you've adjusted everything to your liking, hit the Mapify button to generate your map.

Step 3:

Wait a moment and your mind map appears. Below the generated map, you'll see several options to refine the content if you want to make changes. For example, you can request to add illustrative images—though this feature is restricted to Mapify's paid plans.

Step 4:

Once you're happy with your mind map, look for the Share button in the top right corner.

The real concern here is that free Mapify accounts have limited export options. You can download as an XMind file or share via a link, so keep that in mind depending on what you need.


Related Articles

Create Seamless Repeating Patterns with PatternedAI in Canva

On

Repeating patterns are an excellent choice for background design across countless project types. Whether you're creating personal touches like custom invitations or polishing professional presentations, a well-designed repeating pattern can elevate your entire composition and make it visually cohesive. If you want to create repeating patterns without the design complexity, PatternedAI on Canva is your answer.

PatternedAI offers multiple approaches to pattern creation. You can browse pre-made templates, convert any image into a seamless repeating pattern, or let AI generate an entirely original pattern based on your text description. Let's walk through how to design repeating patterns using PatternedAI in Canva.

How to Design Repeating Patterns with PatternedAI on Canva

Step 1:

Open Canva and tap the three-dot menu icon, then select Apps.

Next, search for "Patterned" and click the PatternedAI app that appears in the results to integrate it into your Canva workflow.

Then select the design you want to use PatternedAI with for creating your repeating pattern.

Step 2:

You'll enter a new interface with the pattern design section on your left. First, scroll down and sign in to access PatternedAI. We recommend using your Google account to authenticate.

Step 3:

PatternedAI gives you two main options: describe your pattern with text or upload an image. With the text description approach, write detailed specifications for what you want to create. Here are some example prompts to get started.

1. Wildflower Pattern

A seamless pattern of delicate wildflowers, green leaves, soft pastel colors, watercolor style, elegant, clean background.

2. Tropical Leaf Pattern

A seamless tropical leaf pattern with monstera and palm leaves, fresh green tones, minimal, modern, flat illustration.

3. Geometric Pattern

A seamless geometric pattern with circles, triangles, and abstract lines, blue and white color palette, minimalist style.

4. Educational Pattern

A seamless pattern featuring books, pencils, rulers, notebooks, and light bulbs, colorful flat design, education theme.

5. AI and Technology Pattern

A seamless pattern with robots, AI icons, circuit lines, chat bubbles, glowing blue colors, futuristic flat design.

6. Historical Pattern

A seamless pattern inspired by ancient history, bronze drums, temples, scrolls, swords, traditional motifs, warm earth tones.

7. Kids Pattern

A seamless pattern with cute animals, stars, clouds, rainbows, soft pastel colors, cartoon style.

8. Food Pattern

A seamless pattern with coffee cups, croissants, donuts, cookies, warm brown and beige colors, hand-drawn style.

9. Summer Pattern

A seamless summer pattern with seashells, waves, palm trees, sunglasses, bright tropical colors.

10. Christmas Pattern

A seamless Christmas pattern with snowflakes, pine trees, gifts, candy canes, red, green, and gold colors.

If you prefer the image upload option, hit Create and the app will transform your photo into a seamless pattern. You can then tweak various settings and instantly preview how your repeating pattern will look.

If you choose the Gallery option, you'll have access to a collection of pre-designed patterns ready to use as backgrounds.

Step 4:

Choose your preferred repeating pattern style in PatternedAI. Finally, click "As a background" to apply the pattern as your design background and you're done.

Test how it looks in your design. If it doesn't feel right, simply create a new one.


Related Articles

n8n tutorial - Lesson 26: n8n Multi-Tool AI Chatbot: Internal Knowledge Assistant

n8n tutorial - Lesson 26: n8n Multi-Tool AI Chatbot: Internal Knowledge Assistant

Hi everyone, in this session we're building a multi-tool internal knowledge assistant using an n8n chatbot workflow — an AI agent that pulls data from multiple Google Sheets sources and synthesizes it into a single natural-language report. This is part of our ongoing n8n workflow automation tutorial series, and it's where the real power of agents over fixed workflows becomes clear.

How to do:

Step 1 — Upgrade Your Existing Agent with Three New Tools

Open your base agent workflow (here: T7-B1-First-Agent) and add three new Google Sheets tool nodes — each connecting to a different data source.
  1. Open the workflow and click the + button inside the AI Agent node's Tools section to add a new tool.
  2. Add the first tool: set Name to get_rejected_content, connect it to the Google Sheets node pointing to spreadsheet T6-Rejected, tab Sheet1.
  3. Add the second tool: set Name to get_youtube_performance, connect it to spreadsheet T5-Performance-Snapshots, tab Snapshots.
  4. Add the third tool: set Name to get_comments_queue, connect it to spreadsheet T5-Comments-Queue, tab Queue.
  5. For each tool, fill in the Description field immediately — describe what data it returns so the agent can decide when to call it.

Note — Always configure all four fields — Name, Description, Operation, and Document/Sheet — in one go. Skipping Description means the agent won't know when to invoke the tool, and you'll have to go back and re-edit each node.

Step 2 — Add a System Prompt to Define the Agent's Role

The System Message field in the AI Agent node is where you define the agent's persona, default language, and response behavior — without it, the agent gives raw data dumps instead of useful summaries.
  1. Click the AI Agent node to open its settings, then locate the System Message field.
  2. Write a prompt that:
    • Declares the agent's role (e.g., "You are an internal assistant for a content team.")
    • Specifies the response language appropriate for your team.
    • Instructs the agent to summarize insights rather than list raw data.
  3. Save the node after entering the system prompt.

Tip — The system prompt is the single biggest lever for output quality. Telling the agent to "summarize insights, not raw rows" transforms the response from a data table into an actionable briefing.

Step 3 — Test the Daily Briefing (Multi-Tool Parallel Call)

Send one natural-language question to verify the agent calls all three tools and synthesizes a combined report.
  1. Open the workflow's test chat or trigger a manual execution.
  2. Send the message: Give me a full system overview report for today.
  3. Watch the execution log — the agent should call all three tools in parallel: get_rejected_content, get_youtube_performance, and get_comments_queue.
  4. Verify the output contains all four sections:
    • YouTube performance summary
    • Blog/rejected content status
    • Comment queue overview
    • A "needs action" section highlighting items requiring follow-up

Note — This is the core advantage of an agent over a fixed n8n workflow automation: one free-form question triggers dynamic multi-tool reasoning. A scheduled workflow would require you to hardcode exactly which nodes run and in what order.

Step 4 — Build the Telegram Chatbot Workflow

Create a new workflow named T7-B2-Telegram-Chatbot that chains a Telegram trigger, the AI agent, and a Telegram reply node.
  1. Create a new workflow and add a Telegram Trigger node as the entry point — this listens for incoming messages via webhook.
  2. Add an AI Agent node and configure it with the same four tools and system prompt from Steps 1–2.
  3. Add a Simple Memory node and connect it to the AI Agent's memory input so conversation context persists across messages.
  4. Add a Telegram node (Send Message operation) and wire it to the agent's output to return the response to the user.
  5. Set the model to Claude Haiku 4.5 (or your preferred model) in the AI Agent node.

Step 5 — Handle the Localhost / HTTPS Limitation for Telegram

Telegram Trigger uses a webhook, which requires a publicly accessible HTTPS URL — this is the wall you'll hit when running n8n locally.
  1. Understand the constraint:
    • Telegram webhooks only POST to HTTPS public URLs.
    • A local localhost n8n instance has no public URL, so Telegram can't reach it.
  2. Attempt with ngrok (common workaround):
    • Install ngrok and get an HTTPS tunnel URL.
    • Open docker-compose.yml and add the environment variable N8N_WEBHOOK_URL=https://your-ngrok-url.
    • Restart the container: run docker-compose down && docker-compose up -d.
    • Verify the variable was applied: run docker exec <container_name> env | findstr N8N_WEBHOOK_URL.
  3. Accept the result: ngrok free tier is too unstable for Telegram webhooks in practice — tunnels disconnect, Telegram stops receiving events.
  4. Leave T7-B2-Telegram-Chatbot as Inactive until you deploy to a VPS with a real domain and HTTPS certificate.

Production tip — The real fix is deploying n8n on a VPS with a proper domain and HTTPS — the same requirement as Human-in-the-Loop workflows. ngrok is fine for quick testing but not reliable for any trigger that depends on an external service pushing data to you.

Note — When working with Docker, remember that the container name shown by docker ps is not always the same as the service name in docker-compose.yml. Always use docker ps to find the real container name before running docker exec commands.

Step 6 — Audit API Costs and Decide Which Workflows to Keep Active

Some scheduled workflows call an AI model on every item every run — these accumulate cost fast and should be deactivated when not needed.
  1. Identify high-cost workflows to deactivate:
    • T5-B2-Comment-Pipeline — runs every 30 minutes, calls Claude for every comment. Primary cost driver.
    • T2-B4-Email-Classifier — runs every 15 minutes, calls Claude for every email.
  2. Identify safe workflows to keep active (no AI calls or infrequent calls):
    • T6-B1-Error-Handler — no AI node.
    • T5-B2b-Reply-Sender — no AI node.
    • T5-B3b-Title-Updater — no AI node.
    • T5-B4-Performance-Insight — weekly schedule, one AI call per run.
    • T5-B7-Weekly-Digest — weekly schedule, one AI call per run.
  3. Toggle the high-cost workflows to Inactive in the n8n dashboard until you're ready to run them intentionally.

Tip — A per-item AI call inside a frequent schedule is the fastest way to drain API credits. The rule: if a workflow calls an AI model in a loop and runs more than once per hour, treat it as high-cost by default and run it manually or reduce its frequency.

Key Lessons from This Session

  1. Always fill in the tool Description field immediately. The agent uses this text to decide which tool to call — a blank description makes the tool invisible to the agent's reasoning.
  2. One question → multi-tool parallel execution is the agent's core value. A fixed n8n tutorial workflow can automate a known sequence; an agent handles unknown, flexible queries by choosing tools dynamically.
  3. Telegram Trigger requires a real HTTPS public URL. ngrok free tier is not reliable enough for production webhooks — deploy to a VPS for any external trigger.
  4. Set environment variables in docker-compose.yml, not in the running container. Use docker-compose down && docker-compose up -d to apply changes, and verify with docker exec.
  5. Frequent scheduled workflows with per-item AI calls are the main API cost risk. Audit and deactivate them when not in active use.
  6. Agent vs. fixed workflow is a design choice, not a default. Use agents when the query is unpredictable or requires reasoning; use fixed workflows for known, repeatable automation sequences.

Conclusion:

In this n8n tutorial session, we turned a single-tool agent into a full internal knowledge assistant by connecting it to three Google Sheets data sources, adding a system prompt, and validating multi-tool parallel execution with one natural-language question. We also built a Telegram-connected n8n chatbot workflow, hit the real-world HTTPS limitation of local deployments, and learned how to audit API costs across the entire automation stack. The next session will explore either scheduled agent automation, custom code tools, or a VPS deployment to unlock Telegram and Human-in-the-Loop workflows — all key milestones in n8n workflow automation.

If you have any questions, feel free to leave a comment below. Thank you!

Tags: n8n chatbot workflow, n8n tutorial, n8n workflow automation, AI agent n8n, n8n Google Sheets, Telegram bot n8n, n8n multi-tool agent, n8n localhost webhook

Maybe you are interested!

The 10 Best AI Business Coaching Tools for 2026

Artificial intelligence has moved well beyond content creation and task automation. Today, AI is reshaping how companies approach employee development and executive coaching. AI Business Coaches are becoming game-changers for managers, entrepreneurs, and teams looking to build better strategies, sharpen leadership skills, and make smarter decisions—often at a fraction of what traditional coaching programs cost.

Modern AI coaching tools have become remarkably sophisticated. Thanks to advances in machine learning, real-time data analysis, and seamless platform integration, these solutions now deliver instant feedback, customize development paths for individual users, and provide round-the-clock support. What's interesting here is that many companies are treating AI coaching not as a replacement for human coaches, but as a continuous learning layer that fills gaps between formal training sessions. This hybrid approach is driving adoption across organizations of all sizes.

In this guide, we'll break down the top 10 AI business coaching tools of 2026. We'll compare what each platform does best, highlight key features, and help you figure out which one actually fits your needs.

Sintra AI

Sintra runs on a multi-assistant architecture, with each AI agent handling specific responsibilities. For business coaching, the standout tool is Buddy

Unlike a consultant you call when you're stuck, Buddy acts as a continuously available business coach that helps you:

  • Restructure your thinking and challenge assumptions.
  • Spot blind spots in your plans.
  • Break big goals into concrete action steps.

The tool synthesizes your entire strategy into a concise document highlighting priorities, risks, and next moves—making it easy to implement and share across your team.

Buddy works best when used regularly. The AI learns your business context over time, rather than starting from scratch each session. That continuous relationship is where real value emerges.

Hone

Hone is built specifically for scaling management and leadership development across large organizations. The platform blends live expert-led training with an always-on AI Coach that reinforces learning while people actually work.

Key features include:

  • 24/7 interactive AI coaching conversations.
  • Blends training, practice, and AI coaching through text and voice.
  • Live group classes and masterclasses for cohorts.
  • Role-based learning groups for safer, more effective peer learning.
  • Data analytics tracking skill improvement over time.
  • Slack integration so coaching happens right inside your workflow.

BetterUp

BetterUp is an enterprise-grade human development platform combining AI coaching, expert guidance, and behavioral science to drive measurable performance gains.

Key features include:

  • Enterprise-level AI Coaching with robust governance and security controls.
  • Customizable to align with your business goals and operational workflows.
  • Integrates with HCM systems, LMS platforms, and dozens of enterprise tools.
  • Real-time analysis of capability and performance gaps across your organization.
  • Multiple coaching streams: leadership coaching, manager development, resilience training, and AI-driven coaching.
  • Enterprise security standards and compliance built in.

CoachHub AIMY

AIMY is CoachHub's 24/7 AI Coach, built to help employees develop skills through guided conversations. The AI runs coaching dialogues, helps with goal-setting, and delivers practice exercises between work sessions.

Key features include:

  • Personalized 24/7 AI coaching conversations.
  • Guides goal-setting, self-assessment, and skill development.
  • Recommends micro-learning lessons from CoachHub Academy.
  • Instant feedback and data insights during coaching.
  • Privacy-first design: conversations stay confidential, HR only sees anonymized summaries.
  • Enterprise security ready for immediate corporate deployment.

Skillsoft CAISY

Skillsoft CAISY is a conversation simulation platform that lets users practice difficult workplace conversations in a judgment-free environment. The AI responds dynamically to each scenario, making practice feel realistic.

Key features include:

  • Scripted conversation simulations covering coaching, conflict resolution, negotiations, and HR discussions.
  • Real-time feedback with personalized assessments that adapt as you interact.
  • "Emotional safety" focus—learners practice without fear of judgment or pressure.
  • Supports text input, speech-to-text, and text-to-speech capabilities.
  • Scoring and detailed assessments after each simulated scenario.
  • Scales easily across departments and employee levels.

LearnWorlds

LearnWorlds is a course and coaching creation platform that helps trainers build and deliver comprehensive programs at scale. The platform integrates AI tools throughout its feature set to streamline content creation and enhance learning experiences.

Key features include:

  • Create courses mixing one-on-one coaching, group learning, and community building.
  • LearnWorlds AI toolkit for course creation and enhanced learner experiences.
  • AI-powered content translation in premium plans.
  • Advanced Zapier integration and connections to other services.
  • Interactive video features with AI-powered enhancements.
  • Robust analytics and reporting, with expanded capabilities in higher tiers.

Mighty Networks

Mighty Networks is community-first coaching platform that combines courses, events, and member engagement. Built-in AI features like Mighty Co-Host help you design and launch programs faster without starting from a blank canvas.

Key features include:

  • AI chatbot trained on Mighty's full knowledge base, ready to help with strategy and setup 24/7.
  • Mighty Co-Host automatically builds community structure and resources on launch.
  • Manage communities, courses, memberships, and events all in one place.
  • Engagement tools like automated polls and Q&A features.
  • Zapier integration for connecting to your existing workflows.

Rocky.ai

Rocky.ai is a lightweight AI coaching app focused on daily self-coaching, habit building, and leadership skill development. The real concern is that many tools try to do everything—Rocky keeps it focused on progress tracking, regular check-ins, and structured personal development paths.

Key features include:

  • Structured AI coaching assistant for personal development with mapped pathways.
  • Daily executive-style coaching that encourages self-reflection and consistency.
  • Goal-setting and progress tracking with guided development plans.
  • Enterprise features for tracking team member progress and coach dashboards.

Jasper

Jasper is an AI marketing platform that doubles as a strategic content coach for teams. Its strength lies in brand consistency—helping teams maintain a unified voice across campaigns, team members, and channels through intelligent workflow automation.

Key features include:

  • Brand Voice training based on your content, so AI matches your tone and style.
  • Team workflows and collaboration tools for managing content at scale.
  • Browser extension lets you use Jasper directly in Gmail, your CMS, and other web apps.
  • AI Marketing Agents and no-code AI app builder in premium tiers.

Poised

Poised is an AI communication coach that works in real-time during meetings. It listens as you speak and delivers private feedback to help you communicate more effectively—built specifically for managers, leaders, and sales professionals who want to improve on the fly.

Key features include:

  • Real-time feedback on clarity and filler words while you're speaking.
  • Runs on both macOS and Windows.
  • Works with popular video platforms like Zoom and Microsoft Teams.
  • Private coaching mode designed to stay invisible during meetings.
  • Team plans with multiple accounts and priority support.


Related Articles

5 Key Insights to Keep Your Head While AI Hype Swirls Around You

Artificial intelligence is reshaping how we live and work. But here's the thing: the real impact isn't coming from flashy promises or sensational headlines. The genuine value of AI emerges from practical tools that help people tackle everyday challenges at work and home. Instead of chasing the latest hype cycle, look at what's actually working. Think of AI as a powerful assistant—one that amplifies human capability when used thoughtfully.

1. Exaggeration Is AI's Biggest Enemy

The main obstacle holding AI back isn't the technology itself. It's the relentless hype surrounding it.

Almost every week brings a new claim that AI will cure cancer, eliminate poverty, or displace millions of workers within years. This tsunami of information makes it nearly impossible for the public to separate real breakthroughs from marketing spin.

Here's what's interesting: the places where AI is delivering the most tangible value rarely make headlines. Hospitals are saving patients' lives. Schools are helping students learn more effectively. Organizations are fixing systems that were limping along inefficiently. These stories stay quiet because the people doing the work care about results, not media attention.

The hype machine creates problems. It builds unrealistic expectations, setting the stage for public disappointment when AI doesn't deliver on exaggerated claims. Investment dollars flow toward flashy demos instead of solving real—but unglamorous—problems. Most troublingly, people start viewing AI as something happening to them rather than a tool they can actively control.

To understand AI's genuine potential, we need to turn down the volume on the loudest voices promoting it.

2. In Healthcare, AI Is Already Saving Lives Right Now

Many assume AI in medicine is a distant future story. It's not. It's happening today.

Consider Cleveland Clinic, one of America's leading hospital systems. Rather than chasing attention-grabbing breakthroughs, they deployed a focused AI system with a single mission: catching sepsis early.

Sepsis is one of medicine's most lethal killers. When the body's immune response spirals out of control following an infection, widespread inflammation can rapidly trigger tissue damage and organ failure. The numbers are staggering—roughly 350,000 Americans die from sepsis annually, more than breast cancer, prostate cancer, and opioid overdoses combined.

The danger lies in early symptoms being vague and easy for exhausted overnight doctors to miss.

Cleveland Clinic's AI continuously monitors patient vital signs and flags warning signals that tired physicians might overlook. Patients get treated sooner. Survival rates climb meaningfully. What's important here is that AI doesn't replace doctors. Instead, it acts like an always-alert colleague, helping physicians make faster, sharper decisions.

That might be the ideal model for AI's future: enhancing human capability rather than eliminating it.

3. The Best Tutor Many Students Will Ever Have Might Be AI

When Sal Khan started Khan Academy, he had an ambitious vision: every student should have their own personal tutor. For years, that remained a beautiful dream.

AI made it real. Khan Academy's Khanmigo doesn't just hand over answers. Instead, it poses questions that guide students toward solving problems themselves. The system pinpoints exactly where a student struggles, then offers patient, step-by-step guidance without judgment—available any hour of the day.

For wealthy families who can afford private tutoring, this might feel unremarkable. But for most students worldwide, this represents access to personalized learning that was virtually impossible before.

Teachers benefit too. A chemistry instructor in Indiana explained how post-COVID classrooms became tougher—students struggled with focus and constantly reached for their phones. She used Khan Academy's AI tools to transform lectures into collaborative group activities. AI became a teaching assistant, answering basic questions and only alerting her when students truly needed her expertise.

The result? She gained time to address meaningful concepts while students actively participated in learning instead of passively sitting through lectures.

4. AI in Government Is Powerful and Controversial

Few expect government to be where AI creates outsized impact. Yet here we are.

Take the U.S. Internal Revenue Service. It processes hundreds of millions of tax returns yearly, largely using decades-old technology systems.

When Danny Werfel became IRS Commissioner, a top priority was deploying AI to close the "tax gap"—the gap between what taxpayers owe and what the government actually collects. That gap reaches hundreds of billions annually.

AI can spot fraud patterns that human auditors would need years to identify. It simultaneously simplifies tax filing, cutting time and costs for everyday people.

But AI in government also sparks real concerns. Consider DOGE, which used AI to slash or eliminate public services without careful implementation. This case proves something crucial: AI itself is neither good nor bad. It's a tool. Outcomes depend entirely on the intentions of those wielding it.

That's the most critical point to remember when assessing AI's role in public administration.

5. AI Probably Won't Steal Your Job—But It Will Definitely Transform How You Work

Every few months, a fresh study predicts AI will displace millions of jobs soon.

The honest answer? Nobody knows exactly what will happen. History shows each technological revolution destroys some jobs, transforms most existing careers, and creates entirely new fields that didn't exist before. AI will likely follow the same pattern.

The real concern isn't how many jobs disappear, but how fast changes arrive and which groups benefit first.

The people positioned to thrive in an AI-driven world won't be those competing against machines at tasks AI handles better. They'll be those who leverage AI as a collaborator while showcasing uniquely human strengths: judgment, experience, contextual understanding, relationship-building, and accountability for decisions made.

This isn't a comforting story we're telling ourselves. It might actually describe what work becomes.

Related Articles

n8n tutorial - Lesson 25: Build Your First AI Agent in n8n: ReAct Pattern Explained

n8n tutorial - Lesson 25: Build Your First AI Agent in n8n: ReAct Pattern Explained

Hi everyone, in this n8n AI agent tutorial, you'll build your first working AI agent using the ReAct pattern — complete with multiple tools, memory, and an orchestrator that triggers sub-workflows. This is part of the n8n Workflow Automation Tutorial series, and it's the session where things shift from simple automation to agents that can reason and act on their own.

How to do:

Step 1 — Understand the ReAct Pattern and Agent Architecture

Before building anything, you need to know what makes an agent different from a regular n8n workflow — the ReAct loop is the core of it.
  1. The ReAct pattern stands for Thought → Action → Observation, repeated in a loop until the agent reaches a final answer.
  2. An n8n AI agent has exactly three components:
    • Agent node — the brain that decides what to do
    • Tools — actions the agent can call (HTTP requests, spreadsheets, Telegram, etc.)
    • Memory — stores conversation context across turns
  3. Know the difference between the three execution models:
    • Regular workflow — fixed, hard-coded flow; great for simple, predictable tasks
    • Chain — LLM calls in sequence, but no tool-calling or dynamic decisions
    • Agent — decides which tool to call, in what order, and handles unexpected situations using natural language

Note — A regular Schedule + Google Sheets + Telegram workflow can send automated reports — but it only follows the exact path you hard-coded. An agent handles variable flows: if a step fails or a new condition appears, it reasons through it instead of breaking.

Step 2 — Create the Workflow and Add the Chat Trigger

Create a new workflow named T7-B1-First-Agent and set up the entry point.
  1. In n8n, click New Workflow and name it T7-B1-First-Agent.
  2. Add a Chat Trigger node as the starting node — this lets you send messages to the agent directly from the n8n chat interface during testing.
  3. This workflow runs in Manual/Chat mode, so you do not need to set it to Active.

Step 3 — Add the AI Agent Node and Configure the Model

The AI Agent node is the core of this n8n AI agent tutorial — wire it to the Chat Trigger and set the language model.
  1. Add an AI Agent node and connect it to the Chat Trigger output.
  2. Inside the Agent node, set the model to Claude Haiku 4.5 as the default — it's fast and cost-efficient for most tool-calling tasks.
  3. Upgrade to Claude Sonnet 4.6 on demand when a task requires stronger reasoning (complex multi-step orchestration, ambiguous instructions).

Tip — Starting with Haiku keeps costs low during development and testing. Only swap to Sonnet when you notice the agent making wrong tool choices or failing to chain steps correctly.

Step 4 — Attach Simple Memory

Memory lets the agent remember context across messages in the same conversation — without it, every message is treated as a fresh start.
  1. Inside the AI Agent node, find the Memory sub-section and add a memory module.
  2. Select Simple Memory (this is the current name in newer n8n versions — older guides may call it "Window Buffer Memory", but the functionality is identical).
  3. To verify memory works, test this sequence:
    • Send: "What is 500 USD in VND?"
    • Then send: "Double that amount."
    • The agent should resolve "that amount" as 500 USD from context and return the doubled result.

Note — The name change from "Window Buffer Memory" to "Simple Memory" is a known n8n UI update. If you follow an older n8n tutorial and can't find the node, look for Simple Memory in the memory selector instead.

Step 5 — Add Tool 1: Calculator

The Calculator tool is built into n8n and requires zero configuration — it's the easiest way to confirm your agent can call tools.
  1. In the AI Agent node, go to the Tools section and click Add Tool.
  2. Select Calculator from the list — no credentials or additional settings needed.
  3. Test it by asking: "What is 1234 multiplied by 56?" — the agent should invoke the Calculator tool and return the correct answer.

Step 6 — Add Tool 2: HTTP Request for Exchange Rates

This tool gives the agent the ability to fetch live exchange rate data from a free public API — no authentication required.
  1. Add a new tool and select HTTP Request.
  2. Set the tool name to get_exchange_rate.
  3. Configure the request:
    • Method: GET
    • URL: https://api.exchangerate-api.com/v4/latest/USD
    • Authentication: None (this is a public, free endpoint)
  4. Write a clear tool description so the agent knows when to use it — for example: "Get the latest USD exchange rates against all major currencies."

Tip — The tool description is not cosmetic — the agent reads it to decide whether to call this tool for a given user request. Write it as a one-sentence summary of what the tool returns and when it's relevant.

Step 7 — Add Tool 3: Google Sheets for Pending Blog Topics

This tool connects the agent to a real Google Sheet to retrieve blog topics that are queued for writing.
  1. Add a new tool and select Google Sheets.
  2. Set the tool name to get_pending_topics.
  3. Configure it to read from the sheet named T4-B5-Blog-Topics.
  4. Set a filter so it only returns rows where the status column equals pending.
  5. Connect your existing Google Sheets credential — reuse whatever credential you set up in earlier sessions of this n8n workflow automation series.

Step 8 — Add Tool 4: Telegram for Sending Reports

This tool lets the agent send a summary message to a Telegram chat after completing a task — the key here is using $fromAI() correctly.
  1. Add a new tool and select Telegram, action: Send Message.
  2. Set the tool name to send_telegram_report.
  3. Configure the Chat ID field with your Telegram chat ID (static value — does not change).
  4. For the Text field, do NOT leave it blank — n8n marks this field as required and will throw a validation error. Set it to:
    $fromAI('message', 'The message to send')

Note — The $fromAI('param', 'description') syntax tells n8n to let the agent decide what value to fill in at runtime. Use it for any field whose value depends on what the agent is doing — message text, topic names, row numbers, etc. Without it, n8n either errors out (required fields) or always sends the same static text.

Step 9 — Test Multi-Tool Calling and Memory Together

Run a real test that forces the agent to call more than one tool in a single response — this confirms the ReAct loop is working end-to-end.
  1. Open the Chat panel and send: "What are the pending blog topics, and what is 500 USD in VND?"
  2. Watch the execution — the agent should call both get_pending_topics and get_exchange_rate in the same run, either in parallel or sequentially.
  3. Follow up with: "Double the USD amount." — the agent should remember 500 USD from the previous message and return 1000 USD without you repeating it.

Tip — If the agent only calls one tool when you expected two, rephrase the request to make both needs explicit. The agent uses your prompt and the tool descriptions together to decide what to call — vague prompts produce vague tool choices.

Step 10 — Add the Orchestrator Tool: Call n8n Workflow Tool

This is where the agent becomes an orchestrator — it can trigger an entire sub-workflow as if it were just another tool.
  1. Add a new tool and select Call n8n Workflow Tool (older guides may call this "Execute Sub-workflow" — the correct name in the Agent node's tool menu is Call n8n Workflow Tool).
  2. Set the tool name to generate_blog_content.
  3. Point it at the existing sub-workflow T6-Content-Child-Blog (built in a previous session of this n8n tutorial series).
  4. For any input fields the sub-workflow expects (topic, row number, etc.), set the values using $fromAI('field_name', 'description') so the agent decides what to pass at runtime.
  5. Write a tool description like: "Generate and publish a blog post for a given pending topic. Pass the topic name and row number from the Google Sheet."

Step 11 — Test the Full Orchestration Flow

Send a single natural language command and watch the agent read the sheet, trigger the content factory, publish to Blogger, and report back.
  1. In the Chat panel, send something like: "Pick the first pending topic from the sheet and publish a blog post for it."
  2. The agent should execute this sequence automatically:
    • Call get_pending_topics → read the Google Sheet
    • Call generate_blog_content → trigger T6-Content-Child-Blog
    • Sub-workflow generates content and posts to Blogger
    • Call send_telegram_report → send you the Post ID and published link
  3. Check the final Telegram message — it should contain the full result: Post ID and a live link to the published post.

Production tip — The agent decides when to call the orchestrator tool and what data to pass — you don't hard-code that logic anywhere. This is the fundamental difference between agent-based automation and a regular n8n workflow: the flow isn't predetermined, it's reasoned at runtime.

Step 12 — Understand the Human-in-the-Loop Limitation

During this session, Telegram Send and Wait was tested as a way to pause the agent and wait for human approval before continuing.
  1. Add a Telegram: Send and Wait node to your workflow and attempt to use it as an approval gate.
  2. You will find it does not work on localhost:5678 — Telegram's callback cannot reach a local n8n instance, so the workflow hangs indefinitely waiting for a response that never arrives.
  3. This is a known localhost limitation:
    • Human-in-the-Loop via Telegram requires n8n to have a public URL
    • Solutions: use ngrok to expose localhost, or deploy n8n to a VPS
  4. For now, remove the Send and Wait node and note it for a future session when n8n is deployed with a public URL.

Note — This is a real production consideration, not just a tutorial limitation. Any n8n workflow that needs webhook callbacks — including Human-in-the-Loop approvals — must run on a publicly accessible URL. Local development environments will always block these flows.

Key Lessons from This Session

  1. ReAct = Thought → Action → Observation loop. The agent repeats this cycle until it has a final answer — it doesn't execute a fixed path like a regular workflow.
  2. An n8n AI agent has three components: Agent node, Tools, and Memory. Remove any one of these and you have a chain or a regular workflow, not an agent.
  3. Use $fromAI('param', 'description') for any field the agent must decide at runtime. Required fields left blank will cause a validation error; static values defeat the purpose of using an agent.
  4. Tool descriptions are instructions, not labels. The agent reads them to decide which tool to invoke — write them as clear, one-sentence functional summaries.
  5. "Call n8n Workflow Tool" is the correct node name for triggering sub-workflows from an agent. The older name "Execute Sub-workflow" no longer appears in the Agent tool menu.
  6. "Simple Memory" is the current name for what older guides call "Window Buffer Memory." The functionality is identical — only the UI label changed.
  7. Human-in-the-Loop via Telegram requires a public URL. Localhost cannot receive Telegram callbacks; use ngrok or a VPS deployment for this feature.
  8. An agent beats a regular workflow when the flow cannot be predetermined. For simple, fixed-path tasks, a regular n8n workflow automation is still the better choice.

Conclusion:

In this n8n AI agent tutorial, you built a full ReAct-pattern agent with four tools, working memory, and an orchestrator that triggers a sub-workflow from a single natural language command — going from understanding the theory to watching it publish a real blog post and report back on Telegram. The key shift is moving from hard-coded workflow logic to an agent that reasons, decides, and acts dynamically. In the next session of this n8n workflow automation tutorial series, you'll go further with advanced agent patterns: an internal chatbot that queries live data, a scheduled autonomous agent, or custom tools built with code.

If you have any questions, feel free to leave a comment below. Thank you!

Tags: n8n AI agent tutorial, n8n tutorial, n8n workflow automation, ReAct pattern n8n, n8n tools setup, AI agent orchestrator, n8n beginner guide, n8n automation tips

Maybe you are interested!

7 Ways AI Can Streamline Your Linux System Administration

AI isn't a silver bullet for every problem. In fields demanding creativity, humans remain irreplaceable. But when it comes to technical grunt work like Linux system administration? AI becomes an exceptionally useful sidekick.

Here's what's important to understand: AI won't replace system administrators. Instead, it accelerates the learning curve for Linux newcomers while helping seasoned admins plow through workloads faster. The result is more time spent on strategy, less on repetitive tasks.

Below are seven scenarios where AI genuinely shines in Linux system management.

1. Generate Bash Scripts Quickly and Correctly

Bash scripting isn't mandatory for casual Linux users. But if you've ever managed a Linux server or need to automate tasks like backups, it becomes almost essential.

For beginners, writing scripts from scratch feels daunting. This is where AI steps in.

Simply describe what you need:

"Create a Bash script that backs up my ~/Documents folder to an external drive mounted at /backups daily, keeping only the 5 most recent backups."

AI generates a complete, ready-to-review script. After confirming it works correctly, configure cron to run it automatically. Unsure about cron syntax? AI walks you through it step-by-step.

The catch: periodically verify those backups actually contain what you need. Automation without verification is just false security.

2. Parse Log Files Without the Headache

Log files are your window into system behavior and the root cause of errors. Most Linux logs live in:

/var/log

The problem? Log messages aren't always crystal clear.

Say you keep seeing:

cause font doesn't have a family name

Search engines often fail to help here. But paste it into AI and get a proper explanation: it's a font handling issue where certain fonts lack the family name attribute. Not critical, usually safe to ignore.

Better yet, AI suggests silencing these messages by creating a blacklist in:

/etc/rsyslog.d/

with this line:

:msg, contains, "cause font doesn't have a family name" stop

then restart the service:

sudo systemctl restart rsyslog

This kind of guidance saves substantial time when drowning in log noise.

3. Decode journalctl Output

If your system runs systemd, you'll almost certainly encounter:

journalctl

This tool captures logs from system services. The challenge? Its output can be cryptic, especially for uncommon errors.

Here's the trick: don't just dump entire logs and ask "what's wrong?" Add context.

Instead try:

"Explain this journalctl output from openssh-server..."

then paste the log.

Mentioning the specific service makes AI's analysis far more accurate and actionable.

4. Build iptables Rules Without the Syntax Headache

iptables powers most Linux firewalls. It's also notorious for its bewildering syntax.

Memorizing endless flag combinations? Skip it. Just describe what you want:

"Write an iptables rule allowing SSH connections on port 2022 through eth0."

AI translates that into proper iptables syntax instantly. Way faster than hunting through documentation.

5. Monitor and Manage System Processes Intelligently

Linux offers countless process monitoring tools—from pretty GUIs to command-line utilities like:

ps

Not familiar with them? Ask AI simple questions:

"How do I find which process is hogging CPU or RAM, and how do I stop it?"

AI explains:

  • How to identify resource-hungry processes
  • What each metric means
  • Safe termination methods
  • When to use kill, killall, or pkill

This beats blindly copying commands from random websites and actually teaches you Linux.

6. Handle User Accounts and Permissions Effortlessly

User management and access control are core Linux admin responsibilities. If your AI system has execution privileges, you can simply request actions in plain English:

"Lock Mary's account for one week."

After sudo confirmation, AI runs something like:

sudo chage -E $(date -d "+7 days" +%Y-%m-%d) Mary

File and folder permissions? Same deal. Instead of memorizing chmod, chown, and setfacl commands:

"Give the editors group full permissions on the /data directory."

You describe the goal, AI handles the syntax.

7. Run Virtual Machines More Efficiently

Not everyone works with VMs regularly, but running an internal server as a virtual machine—say, Nextcloud in VirtualBox as a Google Workspace replacement—is genuinely practical.

The snag: you probably don't want the VirtualBox window and guest OS constantly visible on your screen.

Launch it headless instead. Just ask:

"How do I run my Nextcloud VirtualBox VM in headless mode?"

AI responds with:

VBoxManage startvm "Nextcloud" --type headless

Your VM runs invisibly in the background, consuming zero GPU resources for rendering a window.

The Bottom Line

AI won't replace fundamental Linux knowledge, but it transforms administration from a grinding chore into something genuinely efficient.

From crafting Bash scripts and untangling logs to building firewall rules, tracking processes, and managing accounts—AI serves as a reliable technical assistant across the board.

The real trick is treating it as a tool, not a crutch. Always review commands before executing them on production systems. Especially critical when dealing with permissions, networking, or sensitive data. AI is powerful, but human oversight remains non-negotiable.

Related Articles

Copyright © 2016 QTitHow All Rights Reserved