AutomationMart
Home/Browse/Allow users to send a sequence of messages to an AI agent in Telegram
n8n

Allow users to send a sequence of messages to an AI agent in Telegram

n8nn8n13 modulesv1.0
WhatsAppOpenAITelegram

Use Case When creating chatbots that interface through applications such as Telegram and WhatsApp, users can often sends multiple shorter messages in quick succession, in place of a single, longer message. This workflow accounts for this behaviour. What it Does This workflow allows users to send several messages in quick succession, treating them as one coherent conversation instead of separate messages requiring individual responses. How it Works 1. When messages arrive, they are stored in a S

At a glance

Allow users to send a sequence of messages to an AI agent in Telegram is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects WhatsApp, OpenAI, Telegram. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
WhatsApp, OpenAI, Telegram
Modules
13
Price
Free
Version
v1.0
Allow users to send a sequence of messages to an AI agent in Telegram workflow diagram

About this workflow

Use Case When creating chatbots that interface through applications such as Telegram and WhatsApp, users can often sends multiple shorter messages in quick succession, in place of a single, longer message. This workflow accounts for this behaviour. What it Does This workflow allows users to send several messages in quick succession, treating them as one coherent conversation instead of separate messages requiring individual responses. How it Works 1. When messages arrive, they are stored in a Supabase PostgreSQL table 2. The system waits briefly to see if additional messages arrive 3. If no new messages arrive within the waiting period, all queued messages are: - Combined and processed as a single conversation - Responded to with one unified reply - Deleted from the queue Setup 1. Create a table in Supabase called messagequeue. It needs to have the following columns: userid (uint8), message (text), and messageid (uint8) 2. Add your Telegram, Supabase, OpenAI, and PostgreSQL credentials 3. Activate the workflow and test by sending multiple messages the Telegram bot in one go 4. Wait ten seconds after which you will receive a single reply to all of your messages How to Modify it to Your Needs - Change the value of Wait Amount in the Wait 10 Seconds node in order to to modify the buffering window - Add a System Message to the AI Agent to tailor it to your specific use case - Replace the OpenAI sub-node to use a different language model

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

Update WordPress posts with content generated by ChatGPT

Automatically update WordPress posts with AI-generated content. Watch for new posts, generate content using ChatGPT, and update posts seamlessly.

Free

Send automated replies to messages using ChatGPT and Line

Automatically respond to incoming Line messages using ChatGPT. Enhance customer interaction by generating AI-driven replies and sending them via Line.

Free

Real-time sales quote creation in Odoo via Telegram with Google Gemini AI

Overview This template connects Telegram with Odoo to let your sales team create sales quotes and check product availability in real-time — just by sending chat messages. It’s designed for sales representatives, distributors, and small business owners who want to manage quotes and product information quickly without logging into Odoo. ⚙️ How It Works Once configured, this workflow listens to your Telegram bot for incoming messages. Based on the message text, it performs different actions in Odoo

Free

Filter and update Google Sheets rows using ChatGPT or text processing

Periodically filter Google Sheets rows, convert HTML to text, process with ChatGPT, and update rows for streamlined data management.

Free

AI-powered lead research & personalized email generation with Groq & Google Sheets

Overall Description & Potential << What Does This Flow Do? >> Overall, this workflow is an intelligent sales outreach automation engine that transforms raw leads from a form or a list into highly personalized, ready-to-send introductory email drafts. The process is: it starts by fetching data, enriches it with in-depth AI research to uncover "pain points," and then uses those research findings to craft an email that is relevant to the solutions you offer. This system so

Free

Analyze high-priority tenders from Airtable to Slack for Go/No-Go approval

Description Streamline management decision-making by automatically evaluating high-priority tenders, generating AI-powered executive summaries, and routing them for approval inside Slack. 🤖📩 This workflow pulls pending tenders from Airtable, uses GPT-4o-mini to evaluate urgency, business opportunity, and risk, and generates a structured summary with a Go/No-Go recommendation. Tenders that qualify are pushed to Slack with interactive approval buttons, and the final decision instantly updates Airt

Free

Personalize marketing emails using customer data and AI

This workflow uses AI to analyze customer sentiment from product feedback. If the sentiment is negative, AI will determine whether offering a coupon could improve the customer experience. Upon completing the sentiment analysis, the workflow creates a personalized email templates. This solution streamlines the process of engaging with customers post-purchase, particularly when addressing dissatisfaction, and ensures that outreach is both personalized and automated. This workflow won the 1st place

Free

Generate conversational Twitter/X threads with GPT-4o AI

Generate Conversational Twitter/X Threads with GPT-4o AI (n8n Workflow) This workflow uses OpenAI (GPT-4o) and Twitter/X to automatically generate and publish engaging, conversational threads in response to a trigger (e.g., from a chatbot or form). 🚀 What Does It Do? - Listens for an incoming message (e.g., via webhook or another n8n input). - Uses GPT-4o to craft a narrative-style Twitter thread in a personal, friendly tone. - Publishes the first tweet, then automatically posts each following t

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