AutomationMart
Home/Browse/Agentic Telegram AI bot with with LangChain nodes and new tools
n8n

Agentic Telegram AI bot with with LangChain nodes and new tools

n8nn8n7 modulesv1.0
OpenAITelegram

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

At a glance

Agentic Telegram AI bot with with LangChain nodes and new tools is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects OpenAI, Telegram. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
OpenAI, Telegram
Modules
7
Price
Free
Version
v1.0
Agentic Telegram AI bot with with LangChain nodes and new tools workflow diagram

About this workflow

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: 1. Telegram Trigger listens for new messages in a specified Telegram chat. This node activates the rest of the workflow after receiving a message. 2. 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. 3. The OpenAI GPT-4o model generates context-aware responses. You can configure the model parameters or swap this node entirely. 4. Window buffer memory helps maintain context across conversations. It stores the last 10 interactions and ensures that the agent can access previous messages within a session. Conversations from different users are stored in different buffers. 5. The HTTP request tool connects with OpenAI's DALL-E-3 API to generate images based on user prompts. The tool is called when the user asks for an image. 6. Telegram node tool sends generated images back to the user in a Telegram chat. It retrieves the image from the URL returned by the DALL-E-3 model. This does not happen directly, however. The response from the HTTP request tool is first stored in the Agent’s scratchpad (think of it as a short-term memory). In the next iteration, the Agent sends the updated response to the GPT model once again. The GPT model will then create a new tool request to send the image back to the user. To pass the image URL, the tool uses the new $fromAI() expression. 7. Send final reply node sends the final response message created by the agent back to the user on Telegram. Even though the image was already passed to the user, the Agent always stops with the final response that comes from dedicated output. ⚠️ Note, that the Agent may not adhere to the same sequence of actions in 100% of situations. For example, sometimes it could skip sending the file via the Telegram node tool and instead just send an URL in the final reply. If you have a longer series of predefined steps, it may be better to use the “old” custom workflow tool. This template is perfect as a starting point for building AI agentic workflow. Take a look at another agentic Telegram AI template that can handle both text and voice messages.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Ultimate AI assistant: Automate email, calendar, webSearch, Notion, RAG & X

This is an ultimate AI assistant: Handle emails, schedule meetings, search the web, take notes, post to social media, and retrieve information from your knowledge base, all through simple Telegram commands (text, voice, or image). What is included: - 1 Ready-to-use n8n workflow file (.json) - 4 Instructional videos demonstrating how to connect n8n with: - Google Products (Gmail, Calendar, Sheets) - Telegram - Pinecone Vector Store - Notion Who is this for? This workflow is ideal for: - Indi

Free

Real-time crypto news & sentiment analysis via Telegram with GPT-4o

Stay on top of the latest crypto news and market sentiment instantly, all inside Telegram! This workflow aggregates articles from the top crypto news sources, filters for your topic of interest, and summarizes key news and market sentiment using GPT-4o AI. Ideal for crypto traders, investors, analysts, and market watchers needing fast, intelligent news briefings. > 💬 Just type a coin name (e.g., "Bitcoin", "Solana", "DeFi") into your Telegram AI Agent—and get a smart news d

Free

Automatic Gmail message categorization with GPT-4 content analysis & labels

Who is this for? This workflow is ideal for Gmail users and teams who receive a high volume of emails and want to streamline inbox management. It suits professionals seeking to organize messages automatically, including sales teams, project managers, support staff, and anyone who benefits from automated email categorization. What problem is this workflow solving? / Use case Manually labeling emails is time-consuming and can lead to inconsistent organization. This automated n8n workflow uses Gmai

Free

Audio-to-Trello task bot

Telegram Tasker Bot — это сценарий n8n, который принимает голосовые сообщения в Telegram, автоматически превращает их в текст, извлекает из него ключевые поля задачи и создаёт карточку в нужной доске Trello. Пользователь просто говорит задачу — бот сам оформляет её и присылает ссылку на готовую карточку. Для использования вам потребуется telegram bot. Его можно создать через бота BotFather Так же понадобится доступ к API chatgpt - он используется только для транскрибции аудио в речь. Вы можете

Free

Scrape blog articles into AI-generated LinkedIn posts with GPT-4o & human review

Auto-detect news from n8n and turn into a human-approved LinkedIn post. gotoHuman is used to keep a human in the loop. There you can manually edit the AI draft of the post or request to regenerate it. How it works 1. The workflow is triggered each day to fetch the latest version of 2. It then fetches each article, checks if it was published in the last 24 hours and uses an LLM to summarize it. 3. An LLM then drafts a related LinkedIn post which is sent to gotoHuman for approval. In gotoHuman, t

Free

Send Telegram messages for new chat starts in tawk.to

Every time a chat starts in your tawk.to, Make will send a message with information on this chat to your Telegram.

Free

Automate Microsoft Teams meeting analysis with GPT-4.1, Outlook & Mem.ai

Automate Microsoft Teams Meeting Analysis with GPT-4.1, Outlook & Mem.ai - Watch the YouTube video to get started - Follow along with the blog post Template Overview This advanced n8n template automates Microsoft Teams meeting analysis, knowledge base creation, and email drafting directly from meeting recordings and transcripts. It provides end-to-end automation for the following use cases: Meeting Analysis - Connects to Microsoft Graph to retrieve meeting recordings, chat messages, and transc

Free

Salesforce lead capture with GPT-4 personalized email & SMS follow-up

How It Works This workflow transforms n8n into a smart Web Lead Form alternative to Salesforce's traditional Web-to-Lead, capturing leads, creating Salesforce records, and sending AI-personalized responses via email or SMS. - Capture Submission: User submits form data (name, email, phone, description, preference) via n8n's hosted form. - Create Lead: Maps data to a new Salesforce Lead. - Personalize Message: Uses OpenAI to generate a tailored welcome based on description and pref

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free