AcademyWorkflowsCustomer support

Telegram AI bot with LangChain nodes

Teams that want to offer an AI assistant to users or colleagues through Telegram, including image requests.

  • Recommendedour rating
  • 59,442views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

telegram-ai-bot-with-langchain-nodes.json

Loading the file...

What it does

An n8n workflow that connects a Telegram bot to an AI agent built with LangChain nodes. The agent replies with an OpenAI GPT-4 model, keeps a separate conversation history for each user and calls a Dall-E 3 tool when someone asks for an image. A final node masks unsupported HTML in replies.

Use cases

  1. 01Answer user questions in a Telegram chat
  2. 02Keep a separate conversation per user
  3. 03Generate an image on request inside Telegram

Connects

HTTP Request · Telegram · AI Agent · OpenAI Chat Model · Simple Memory · Call n8n Workflow Tool

Questions about
Telegram AI bot with LangChain nodes.

What is Telegram AI bot with LangChain nodes used for?

Teams that want to offer an AI assistant to users or colleagues through Telegram, including image requests. An n8n workflow that connects a Telegram bot to an AI agent built with LangChain nodes. The agent replies with an OpenAI GPT-4 model, keeps a separate conversation history for each user and calls a Dall-E 3 tool when someone asks for an image. A final node masks unsupported HTML in replies.

How do I import Telegram AI bot with LangChain nodes into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Telegram AI bot with LangChain nodes safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.