Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

Telegram AI bot with LangChain nodes

n8n template #2035
This workflow connects Telegram bots with LangChain nodes in n8n. The main AI Agent Node is configured as a Conversation Agent. It has a custom System Prompt which explains the reply formatting and provides some additional instructions. The AI Agent has several connections: OpenAI GPT-4 model is called to generate the replies Window Buffer Memory stores the history of conversation with each user separately There is an additional Custom n8n Workflow tool (Dall-E 3 Tool). AI Agent uses this tool when the user requests an image generation. In the lower part of the workflow, there is a series of nodes that call Dall-E 3 model with the user Telegram ID and a prompt for a new image. Once image is

How to set it up

  1. Open template #2035 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
  2. Create 2 credentials under Credentials → Add credential: Telegram, OpenAI Chat Model. Then open each of those nodes and pick the credential.
  3. Check the model in the AI Agent node. The template may point at a model your account can't use; swap it for one you have access to.
  4. Click Execute workflow and step through each node's output to confirm the data looks right.
  5. Toggle the workflow to Active so its trigger runs on its own.

Hand off to your agent

Prompt

Help me set up the n8n workflow "Telegram AI bot with LangChain nodes" (https://n8n.io/workflows/2035). It uses: HTTP Request, Telegram, AI Agent, OpenAI Chat Model, Simple Memory, Call n8n Workflow Tool. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.

Paste into Claude Code and it will do the rest.

Apps and nodes

Questions

Yes. n8n Team published it free on n8n.io as a verified creator, and it has 59K views. It runs on n8n Cloud or a self-hosted n8n instance.

Telegram, OpenAI Chat Model. The other 4 nodes are built into n8n.

Similar workflows

NameViews
  1. ✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition55K
  2. Technical stock analysis with Telegram, Airtable and a GPT-powered AI Agent17K
  3. Build Your First AI Data Analyst Chatbot134K
  4. Create a Branded AI-Powered Website Chatbot88K
  5. AI Youtube Trend Finder Based On Niche55K
  6. Build an MCP Server with Google Calendar and Custom Functions49K
  7. Scrape business leads from Google Maps using OpenAI and Google Sheets44K
  8. Automated Stock Analysis Reports with Technical & News Sentiment using GPT-4o37K