AI-Powered Telegram Bot with Image Generation and Conversation Memory

somdn_product_page

This n8n workflow creates an intelligent Telegram bot that interacts with users using AI language models and image generation tools. The workflow starts with listening for incoming messages via Telegram. When a message is received, it uses an OpenAI language model (GPT-4) through LangChain nodes to generate a helpful reply, maintaining context with a window buffer memory for ongoing conversations.

If the user requests an image, the workflow calls the DALL-E 3 model via an HTTP request to generate a visual based on the prompt. The generated image URL is then sent back to the user through Telegram, either as a direct image or link. The conversation continues seamlessly, and all responses are neatly sent back to the user in Telegram.

This setup is ideal for creating interactive AI chatbots for customer support, creative assistance, or entertainment, leveraging OpenAI’s text and image generation capabilities within a simple Telegram interface.

Node Count

6 – 10 Nodes

Nodes Used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmChatOpenAi, @n8n/n8n-nodes-langchain.memoryBufferWindow, @n8n/n8n-nodes-langchain.toolHttpRequest, stickyNote, telegram, telegramTool, telegramTrigger

Reviews

There are no reviews yet.

Be the first to review “AI-Powered Telegram Bot with Image Generation and Conversation Memory”

Your email address will not be published. Required fields are marked *