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
- 01Answer user questions in a Telegram chat
- 02Keep a separate conversation per user
- 03Generate an image on request inside Telegram
Connects
HTTP Request · Telegram · AI Agent · OpenAI Chat Model · Simple Memory · Call n8n Workflow Tool