Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

Allow Users to Send a Sequence of Messages to an AI Agent in Telegram

n8n template #2917
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 When messages arrive, they are stored in a Supabase PostgreSQL table The system waits briefly to see if additional messages arrive If no new messages arrive within the waiting period, all queued messages are: Combined and processed as a single conv

How to set it up

  1. Open template #2917 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
  2. Create 4 credentials under Credentials → Add credential: Telegram, Supabase, OpenAI Chat Model, Postgres Chat Memory. 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 "Allow Users to Send a Sequence of Messages to an AI Agent in Telegram" (https://n8n.io/workflows/2917). It uses: Telegram, Supabase, AI Agent, OpenAI Chat Model, Postgres Chat Memory. 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. Chris Carr published it free on n8n.io as a verified creator, and it has 12K views. It runs on n8n Cloud or a self-hosted n8n instance.

Telegram, Supabase, OpenAI Chat Model, Postgres Chat Memory. The other 1 node are built into n8n.

Similar workflows

NameViews
  1. HR & IT Helpdesk Chatbot with Audio Transcription36K
  2. All-in-One Telegram/Baserow AI Assistant 🤖🧠 Voice/Photo/Save Notes/Long Term Mem25K
  3. Multi-Agent AI Clinic Management with WhatsApp, Telegram, and Google Calendar12K
  4. WordPress - AI Chatbot to enhance user experience - with Supabase and OpenAI11K
  5. Create a Multi-Modal Telegram Support Bot with GPT-4 and Supabase RAG10K
  6. Split Test Different Agent Prompts with Supabase and OpenAI7,697
  7. Angie, personal AI assistant with Telegram voice and text326K
  8. ✨🤖Automate Multi-Platform Social Media Content Creation with AI205K