Skip to content
FlowHubFluxonLab
A
AI Automationfree

Agentic Telegram AI bot with with LangChain nodes and new tools

by Yuliaadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentHTTP Request ToolHTTP Request ToolOpenAI Chat ModelOpenAI Chat ModelSSimple MemoryTelegramTelegram
Share Post Share
OpenAI Chat ModelOpenAI Chat Mod…MBWindow Buffer MemoryWindow Buffer M…Listen for incoming eventsListen for inco…Send final replyTTSend back an imageSend back an im…THGenerate image in DalleGenerate image …AgAI Agent123456
1/5
STEPS · 6
Starts on a Telegram event

Create a Telegram bot that combines advanced AI functionalities with LangChain nodes and new tools. Nodes as tools and the HTTP request tool are a new n8n feature that extend custom workflow tool and simplify your setup. We used the workflow tool in the previous Telegram template to call the Dalle-3 model. In the new version, we've achieved similar results using the HTTP Request tool and the Telegram node tool instead. The main difference is that Telegram bot becomes more flexible. The LangChain Agent node can decide which tool to use and when. In the previous version, all steps inside the custom workflow tool were executed sequentially. ⚠️ Note that you'd need to select the Tools Agent to work with new tools. Before launching the template, make sure to set up your OpenAI and Telegram credentials. Here’s how the new Telegram bot works: Telegram Trigger listens for new messages in a specified Telegram chat. This node activates the rest of the workflow after receiving a message. AI Tool Agent receives input text, processes it using the OpenAI model and replies to a user. It addresses users by name and sends image links when an image is requested.

Tags

n8nreference-onlyagentlm-chat-open-aimemory-buffer-windowtelegramtool-http-request
Connects
AAI AgenthttprequesttoolHTTP Request ToolopenaichatmodelOpenAI Chat ModelSSimple MemorytelegramTelegram
CategoryAI Automation
Triggermanual
Complexitymedium
Nodes7
AddedNov 30, 2024

Related workflows

See all AI Automation
AopenaichatmodelserpapigooglesearchS
free

AI chatbot that can search the web

This workflow is designed for dynamic and intelligent conversational capabilities. It incorporates OpenAI's GPT-4o model for natural language understanding and generation. Additional tools include SerpAPI and Wikipedia for enriched, data-driven responses. The workflow is triggered manually, and utilizes a 'Window Buffer Memory' to maintain the context of the last 20 interactions for better conversational continuity. All these components are orchestrated through n8n nodes, ensuring seamless interconnectivity. To use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team
AopenaichatmodelserpapigooglesearchS
free

AI agent chat

This workflow employs OpenAI's language models and SerpAPI to create a responsive, intelligent conversational agent. It comes equipped with manual chat triggers and memory buffer capabilities to ensure seamless interactions. To use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team
AopenaichatmodelserpapigooglesearchS
free

Slack chatbot powered by AI

This workflow offers an effective way to handle a chatbot's functionality, making use of multiple tools for information retrieval, conversation context storage, and message sending. It's a setup tailored for a Slack environment, aiming to offer an interactive, AI-driven chatbot experience. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team