Back to Integrations
integrationRedis node
integrationTelegram node

Redis and Telegram integration

Save yourself the work of writing custom integrations for Redis and Telegram and use n8n instead. Build adaptable and scalable Development, Data & Storage, Communication, and HITL workflows that work with your technology stack. All within a building experience you will love.

How to connect Redis and Telegram

  • Step 1: Create a new workflow
  • Step 2: Add and configure nodes
  • Step 3: Connect
  • Step 4: Customize and extend your integration
  • Step 5: Test and activate your workflow

Step 1: Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Redis and Telegram integration: Create a new workflow and add the first step

Step 2: Add and configure Redis and Telegram nodes

You can find Redis and Telegram in the nodes panel. Drag them onto your workflow canvas, selecting their actions. Click each node, choose a credential, and authenticate to grant n8n access. Configure Redis and Telegram nodes one by one: input data on the left, parameters in the middle, and output data on the right.

Redis and Telegram integration: Add and configure Redis and Telegram nodes

Step 3: Connect Redis and Telegram

A connection establishes a link between Redis and Telegram (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.

Redis and Telegram integration: Connect Redis and Telegram

Step 4: Customize and extend your Redis and Telegram integration

Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect Redis and Telegram with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

Redis and Telegram integration: Customize and extend your Redis and Telegram integration

Step 5: Test and activate your Redis and Telegram workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Redis to Telegram or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.

Redis and Telegram integration: Test and activate your Redis and Telegram workflow

Advanced Telegram bot, ticketing system, liveChat, user management, broadcasting

A robust n8n workflow designed to enhance Telegram bot functionality for user management and broadcasting. It facilitates automatic support ticket creation, efficient user data storage in Redis, and a sophisticated system for message forwarding and broadcasting.

How It Works

Telegram Bot Setup: Initiate the workflow with a Telegram bot configured for handling different chat types (private, supergroup, channel).
User Data Management: Formats and updates user data, storing it in a Redis database for efficient retrieval and management.
Support Ticket Creation: Automatically generates chat tickets for user messages and saves the corresponding topic IDs in Redis.
Message Forwarding: Forwards new messages to the appropriate chat thread, or creates a new thread if none exists.
Support Forum Management: Handles messages within a support forum, differentiating between various chat types and user statuses.
Broadcasting System: Implements a broadcasting mechanism that sends channel posts to all previous bot users, with a system to filter out blocked users.
Blocked User Management: Identifies and manages blocked users, preventing them from receiving broadcasted messages.
Versatile Channel Handling: Ensures that messages from verified channels are properly managed and broadcasted to relevant users.

Set Up Steps

Estimated Time**: Around 30 minutes.
Requirements**: A Telegram bot, a Redis database, and Telegram group/channel IDs are necessary.
Configuration**: Input the Telegram bot token and relevant group/channel IDs. Configure message handling and user data processing according to your needs.
Detailed Instructions**: Sticky notes within the workflow provide extensive setup information and guidance.

Live Demo Workflow
Bot: Telegram Bot Link (Click here)
Support Group: Telegram Group Link (Click here)
Broadcasting Channel: Telegram Channel Link (Click here)

Keywords: n8n workflow, Telegram bot, chat ticket system, Redis database, message broadcasting, user data management, support forum automation

Nodes used in this workflow

Popular Redis and Telegram workflows

+4

Telegram AI Bot-to-Human Handoff for Sales Calls

This n8n template demonstrates an approach to perform bot-to-human handoff using Human-in-the-loop functionality as a switch. In this experiment, we play with the idea of states we want our agent to be in which controls it's interacton with the user. First state** - the agent is onboarding the user by collecting their details for a sales inquiry. After which, they are handed-off / transferred to a human to continue the call. Second state** - the agent is essentially "deactivated" as further messages to the bot will not reach it. Instead, a canned response is given to the user. The human agent must "reactivate" the bot by completing the human-in-the-loop form and give a summary of their conversation with the user. Third state** - the agent is "reactivated" with context of the human-to-user conversation and is set to provide after sales assistance. An tool is made available to the agent to again delegate back to the human agent when requested. How it works This template uses telegram to handle the interaction between the user and the agent. Each user message is checked for a session state to ensure it is guided to the right stage of the conversation. For this, we can use Redis as a simple key-value store. When no state is set, the user is directed through an onboarding step to attain their details. Once complete, the agent will "transfer" the user to a human agent - technically, all this involves is an update to the session state and a message to another chat forwarding the user's details. During this "human" state, the agent cannot reply to the user and must wait until the human "transfers" the conversation back. The human can do this by replying to "human-in-the-loop" message with a summary of their conversation with the user. This session state now changes to "bot" and the context is implanted in the agent's memory so that the agent can respond to future questions. At this stage of the conversation, the agent is now expected to handle and help the user with after-sales questions. The user can at anytime request transfer back to the human agent, repeating the previous steps as necessary. How to use Plan your user journey! Here is a very basic example of a sales inquiry with at most 3 states. More thought should be developed when many more states are involved. You may want to better log and manage session states so no user is left in limbo. Try connecting the user and sessions to your CRM. Note, the Onboarding agent and After-Sales agent have separate chat memories. When adding more agents, it is recommend to continue having separate chat memories to help focus between states. Requirements Telegram for chatbot & interface Redis for session store and chat memory OpenAI for AI agent Customising this workflow Not using Telegram? This template works with Whatsapp and other services with equivalent functionality.

AI secretary for scheduling with WhatsApp and Telegram

🏥 AI secretary for scheduling with WhatsApp and Telegram > ⚠️ Community Disclaimer > This workflow is community-maintained and self-hosted. > It is not officially affiliated with or supported by n8n GmbH, OpenAI, or Google. > Users are responsible for their own configuration, security, and data compliance (e.g., HIPAA, LGPD, GDPR). > Always secure API keys and ensure compliance with your local privacy regulations. 🧠 Description This template deploys an AI-powered virtual medical secretary that automates appointment scheduling, rescheduling, and cancellations for clinics and healthcare professionals. It seamlessly integrates OpenAI for natural language understanding, Google Calendar for real-time booking, and Evolution API (WhatsApp) or Telegram for patient communication. Patients can chat naturally via WhatsApp or Telegram, receiving empathetic, professional, and human-like responses — while your calendar stays automatically synchronized in real time. 💡 What Problem Does This Solve? Managing appointments manually is time-consuming and error-prone, often requiring staff to handle repetitive tasks like checking availability, confirming times, or rescheduling. Traditional systems lack conversational capabilities, forcing patients to call or text staff directly. This template solves that by creating a conversational AI assistant that interacts with patients through familiar messaging channels, reducing administrative workload and ensuring accurate real-time scheduling through Google Calendar. ⚙️ Key Features 📅 Google Calendar Integration — Real-time synchronization of consultations and exams 🤖 AI Assistant Powered by OpenAI — Understands patient intent and replies naturally 💬 Multi-Channel Support — Works with WhatsApp (via Evolution API) and Telegram 🔄 Automated Workflow — Handles booking, rescheduling, and cancellations 🏥 Healthcare-Focused Design — Tailored for clinics, doctors, and medical secretaries ✅ Customizable Responses — Modify prompts, message flows, and confirmation texts ⏰ Reminders & Follow-ups — Reduce no-shows with automated notifications 🧩 Setup Instructions (Step-by-Step) Obtain Required Credentials: OpenAI API Key Google Calendar API Credentials (OAuth or Service Account) Evolution API Token (for WhatsApp) Telegram Bot Token (if using Telegram) Configure n8n Environment: Add your credentials under Settings → Credentials. Ensure your n8n instance has internet access to the APIs. Configure Node “Variables Config” & Update Nodes: Set nm_Clinic → Name of the clinic Set nm_Agent → Name of the AI agent Set ds_Address_Clinic → Address of the clinic Set nm_Health_Plan → Name of the health insurance provider Set nm_Evolution_Instance → Name of your Evolution API instance Set nm_City_Clinic → City where the clinic is located Customize the Conversation Flow: Edit OpenAI prompt nodes to match your clinic’s tone of voice. Update Google Calendar event templates with your preferred titles and descriptions. Deploy and Test: Test both WhatsApp and Telegram channels. Verify that appointments appear correctly in Google Calendar. Review conversation logs to fine-tune the responses. 🚀 Suggested Use Cases Ideal for: Clinics and medical offices wanting 24/7 automated appointment management Healthcare professionals reducing manual scheduling and follow-ups Multi-channel (WhatsApp + Telegram) patient interaction Reducing no-shows with reminders and confirmations Clinics seeking to modernize patient communication and optimize staff time This assistant ensures every patient request is handled naturally — while Google Calendar remains the single source of truth for scheduling.
+2

End of Turn Detection for smoother AI agent chats with Telegram and Gemini

This n8n template demonstrates one approach to achieve a more natural and less frustration conversations with AI agents by reducing interrupts by predicting the end of user utterances. When we text or chat casually, it's not uncommon to break our sentences over multiple messages or when it comes to voice, break our speech with the odd pause or umms and ahhs. If an agent replies to every message, it's likely to interrupt us before we finish our thoughts and it can get very annoying! Previously, I demonstrated a simple technique for buffering each incoming message by 5 seconds but that approach still suffers in some scenarios when more time is needed. This technique has no arbitrary time limit and instead uses AI to figure out when its the agent's turn based on the user's message, allowing for the user to take all the time they need. How it works Telegram messages are received but no reply is generated for them by default. Instead they are sent to the prediction subworkflow to determine if a reply should be generated. The prediction subworkflow begins by checking Redis for the current user's prediction session state. If this is a new "utterance", it kicks off the "predict end of utterance" loop - the purpose of which is to buffer messages in a smart way! New users message can continue to be accepted by the workflow until enough is collected to allow our prediction classifier to determine the end of the utterance has been reached. The loop is then broken and the buffered chat messages are combined and sent to the AI agent to generate a response and sent to the user via the telegram node. The prediction session state is then deleted to signal the workflow is ready to start again with a new message. How to use This system sits between your preferred chat platform and the AI agent so all you need to do is replace the telegram nodes as required. Where LLM-only prediction isn't working well enough, consider more traditional code-based checking of heuristics to improve the detection. Ideally you'll want a fast but accurate LLM so your user isn't waiting longer than they have to - at time of writing Gemini-2.5-flash-lite was the fastest in testing but keep a look out for smaller and more powerful LLMs in the future. Requirements Gemini for LLM Redis for session management Telegram for chat platform
+7

Multi-Agent Salon Appointment Management with Telegram, GPT5-mini & Claude MCP

🤖 Multi-Agent AI Telegram Bot for Service Businesses Transform your salon/service business with this streamlined Telegram automation system featuring Claude integration, zero-setup database management, and intelligent conversation handling. How It Works Core Architecture Claude MCP Integration** - Direct connection to Claude Sonnet 4 via Model Context Protocol Streamlined 2-Agent System** - Booking Agent and Admin Agent (simplified from 5 for better reliability) GPT-5 Mini Primary** with Gemini 2.5 Flash backup for cost-effective processing Multi-Media Support** - Handles text, voice (Whisper transcription), images, and PDFs with cost extraction Smart Acknowledgments** - "One moment…", "Let me check availability…" during processing Rate Limiting & Spam Protection** - Configurable limits (default: 100 msg/hour) with professional UX Zero-Setup Database Management Autonomous Airtable Creation** - Bot creates all necessary tables automatically Complete CRUD Operations** - Create, edit, delete services and settings via Telegram Dynamic Business Configuration** - Modify hours, pricing, services conversationally Friend Booking Support** - "Book for my friend Sarah" functionality Setup Steps Telegram Business API setup (detailed instructions included) Airtable Base ID extraction (store in Redis or hardcode - recommended) Google Calendar integration for scheduling Redis for caching, rate limiting, and conversation memory MCP Server deployment for Claude integration Telegram for notifications Key Features Booking Management Booking Limit Control** - Default 6 appointments per customer (configurable in workflow) Service Name Matching** - GPT-5 Nano workflow for cost-optimized service recognition 24-Hour Advance Reminders** - Automatic Telegram reminders sent at 8 PM Conversation Handling Conversation Memory** maintains context across interactions Error Resilience** with backup models and graceful failure handling Use Cases Perfect for: Salons Spas Clinics Consulting services Any appointment-based business Complete business setup happens through conversational commands - no manual database configuration required. Transform your service business with intelligent automation powered by AI and Telegram integration.

⚡ Text → Viral Shorts | AI Video Studio in Telegram /w Setup Video

🎬 AI Video Studio Bot - Telegram to YouTube Shorts, TikTok and Instagram Reels Automation Transform text into viral shorts — all from your phone 📱✨ 🎥 Watch It In Action 🔗 Full Demo: youtu.be/OI_oJ_2F1O0 🚀 What This Workflow Does Imagine having a full-stack AI video production studio in your pocket — no editing software, no dashboard hopping, no prompt engineering. Just pure creation magic through Telegram. This n8n workflow transforms Telegram into your personal AI video factory that: Your Message → AI Magic → Viral Short → Auto-Published ⏱️ 30 seconds 🎬 2-5 minutes 📤 Done! The Complete Pipeline: 📱 Message Telegram Bot - Send text, image, or voice memo 🤖 AI Prompt Generation - GPT-4 crafts perfect video prompts 🎬 Video Creation - Veo 3, Sora 2, or Seedance generates your short 📤 Auto-Upload - Instantly publishes to YouTube Shorts 🔁 Extend & Iterate - One-tap video extension (Veo only) No manual work. No technical skills. No limits. 💡 Why This Changes Everything | Traditional Way | This Workflow | |----------------|---------------| | ❌ Open 5+ platforms | ✅ One Telegram chat | | ❌ 30 min per video | ✅ 5 min per video | | ❌ Complex prompts needed | ✅ AI writes prompts for you | | ❌ Manual uploads | ✅ Auto-publishes everywhere | | ❌ Desktop only | ✅ Works from your phone | Result: Create 10+ YouTube Shorts during your lunch break 🚀 🎨 Video Styles - Choose Your Vibe Control everything with simple Telegram commands: | Command | Style | Perfect For | |---------|-------|------------| | /general | 🎭 Creative Shorts | Product demos, hooks, viral content | | /lost | 👻 Found Footage | Mystery, horror, urban exploration | | /3d | 🎮 3D Objects | Talking products, explainers, memes | | /story | 📖 Emotional Stories | Multi-scene narratives, brand stories | No command? AI intelligently picks the best style for your message. 🤖 AI Models - Pick Your Engine Choose your video generation model right from Telegram: Veo 3 / Veo 3 Fast ⚡ Best for: Quick iterations, realistic scenes Speed: 2-3 minutes Unique: Video extension support Sora 2 🎬 Best for: Cinematic quality, long sequences Speed: 4-5 minutes Unique: Best motion consistency Seedance 1.5 Pro 🌊 Best for: Artistic effects, fluid motion Speed: 3-4 minutes Unique: Stylized aesthetics Select directly in-chat with interactive buttons! ⚡ Power Features 🎯 Smart Video Generation AI analyzes your message intent Generates optimal prompts automatically Adapts to text, images, or voice input 📤 Auto-Publishing Pipeline Uploads to YouTube Shorts instantly AI-generated titles, descriptions, tags SEO-optimized for maximum reach 🔄 Extend & Refine One-tap video extension (Veo only) Keep the vibe, extend the story No re-generation needed 💳 Credit Management Real-time credit checking Prevents failed generations Session-based tracking with Redis 🔔 Status Monitoring Real-time generation updates Webhook polling for long jobs Graceful error handling & cancellation 🗂️ Session Storage Redis-powered state management Resume interrupted workflows Track generation history 🎪 Perfect For | Creator Type | Use Case | |-------------|----------| | 🎥 Faceless Channels | Generate endless Shorts without showing face | | 🏢 Agencies | Scale content production 10x for clients | | 📱 Solo Creators | Daily Shorts from your phone, no laptop needed | | 🤖 AI Farms | Automate content pipelines end-to-end | | 🧪 Experimenters | Rapid prototyping of video ideas | | 📊 Marketers | A/B test video concepts at scale | 🛠️ Tech Stack Telegram Bot API → User interface OpenAI GPT-4 → Prompt generation KIE.ai → Video generation (Veo/Sora/Seedance) YouTube Data API → Auto-publishing Redis → Session & state management S3-compatible → Video storage n8n → Orchestration layer Requirements: ✅ Telegram Bot Token ✅ OpenAI API Key ✅ KIE.ai Account (Veo/Sora/Seedance access) ✅ YouTube OAuth Credentials ✅ Redis Instance (recommended) ✅ S3-compatible Storage ✅ n8n Instance (cloud or self-hosted) 🎬 Real-World Workflow Example You: "A golden retriever puppy discovering snow for the first time" Bot: ✨ Generating your video... 📊 Credits: 50 remaining 🎬 Using: Veo 3 Fast ⏱️ ETA: 2 minutes 2 minutes later: ✅ Your video is ready! 📺 Uploaded to YouTube Shorts 🔗 Link: youtube.com/shorts/abc123 👁️ Views: 0 → 1.2K (24 hours) [Extend Video] [Generate New] Result: Viral short created from your phone while waiting for coffee ☕ 🔧 Customization Ideas 🎨 Extend the Platform Add TikTok publishing Include Instagram Reels Add Twitter video posts Support LinkedIn video 🎙️ Alternative Inputs Replace Telegram with WhatsApp Add Discord bot interface Support Slack commands Email-to-video pipeline 🎭 Creative Variations Swap OpenAI for Claude/Gemini Add custom style presets Include watermarking steps Generate captions automatically 📊 Analytics & Tracking Log all generations to Google Sheets Track video performance metrics A/B test title/thumbnail combinations Monitor credit usage trends 📊 Success Metrics After using this workflow for 30 days: | Metric | Before | After | Improvement | |--------|--------|-------|-------------| | ⏱️ Time per video | 45 min | 5 min | 9x faster | | 📹 Videos/week | 5 | 50+ | 10x volume | | 💰 Cost per video | $15 | $2 | 7.5x cheaper | | 📱 Creation location | Desktop only | Anywhere | ∞ flexibility | | 🧠 Prompt writing | Manual | Automated | No skill needed | 🚀 Quick Start Import workflow to n8n Add credentials (Telegram, OpenAI, KIE.ai, YouTube, Redis) Configure video storage (S3) Activate workflow Message your bot and watch the magic happen Setup time: ~20 minutes First video: ~5 minutes after setup 🏷️ Tags telegram ai-video youtube-shorts automation content-creation openai veo sora seedance text-to-video social-media creator-tools faceless-channel redis s3 n8n-workflow telegram-bot video-automation shorts-generator 📜 License MIT License - Use freely, modify, share, monetize! ⚡ Stop editing. Start generating. Scale your content empire. ⚡ Created by Joe Venner | Built with ❤️ and n8n
+4

Create Product Satisfaction Surveys with Telegram, Google Sheets and AI

This n8n template uses a Telegram chatbot to conduct a Product Satisfaction Survey and fetches questions and stores answers in a Google sheet. It augments an AI Agent to ask follow-up questions to engage the user and uncover more insights in their responses. This template is intended to demonstrate how you'd realistically approach a workflow where there is structured conversation (static questions) but you still want to include an free-form element (follow-up questions) which can only be accomplished via AI. Check out an example Survey results: https://docs.google.com/spreadsheets/d/e/2PACX-1vQWcREg75CzbZd8loVI12s-DzSTj3NE_02cOCpAh7umj0urazzYCfzPpYvvh7jqICWZteDTALzBO46i/pubhtml?gid=0&single=true How it works A chat session is started with the user who needs to enter the bot command "/next" to start the survey. Once started, the template pulls in questions from a google sheet to ask the user. Questions are asked in sequence from left column to right column. When the user answers the question, a text classifier node is used to determine if a follow-up question could be asked. If so, a mini conversation is initiated by the AI agent to get more details. If not, the survey proceeds to the next question. All answers and mini-conversations are recorded in the Google Sheet under the respective question. When all questions are answered, the template will stop the survey and give the user a chance to restart. How to use You'll need to setup a Telegram bot (see docs) Create a google sheet with an ID column. Populate the rest of the columns with your survey questions (see sample) Ensure you have a Redis instance to capture state. Either self-host or sign-up to Upstash for a free account. Update the "Set Variable" node with your google sheet ID and survey title. Share your bot to allow others to participate in your survey. Requirements Telegram for Chatbot Google Sheets for Survey questions and answers Redis for State Management and Chat Memory Community+ license and above for Execution data node - you can remove this node if you don't have this licence. Customising this workflow Not using Telegram? This template technically works with other chat apps such as Whatsapp, wechat and even n8n's hosted chat! This state management pattern can also be applied to other use-cases and scenarios. Try it for other types of surveys!

Build your own Redis and Telegram integration

Create custom Redis and Telegram workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Redis supported actions

Delete
Delete a key from Redis
Get
Get the value of a key from Redis
Increment
Atomically increments a key by 1. Creates the key if it does not exist.
Info
Returns generic information about the Redis instance
Keys
Returns all the keys matching a pattern
List Length
Returns the length of a list
Pop
Pop data from a redis list
Publish
Publish message to redis channel
Push
Push data to a redis list
Set
Set the value of a key in redis

Telegram supported actions

Get
Get up to date information about a chat
Get Administrators
Get the Administrators of a chat
Get Member
Get the member of a chat
Leave
Leave a group, supergroup or channel
Set Description
Set the description of a chat
Set Title
Set the title of a chat
Answer Query
Send answer to callback query sent from inline keyboard
Answer Inline Query
Send answer to callback query sent from inline bot
Get
Get a file
Delete Chat Message
Delete a chat message
Edit Message Text
Edit a text message
Pin Chat Message
Pin a chat message
Send Animation
Send an animated file
Send Audio
Send a audio file
Send Chat Action
Send a chat action
Send Document
Send a document
Send Location
Send a location
Send Media Group
Send group of photos or videos to album
Send Message
Send a text message
Send and Wait for Response
Send a message and wait for response
Send Photo
Send a photo
Send Sticker
Send a sticker
Send Video
Send a video
Unpin Chat Message
Unpin a chat message

FAQs

  • Can Redis connect with Telegram?

  • Can I use Redis’s API with n8n?

  • Can I use Telegram’s API with n8n?

  • Is n8n secure for integrating Redis and Telegram?

  • How to get started with Redis and Telegram integration in n8n.io?

Need help setting up your Redis and Telegram integration?

Discover our latest community's recommendations and join the discussions about Redis and Telegram integration.
Trigi Digital

Looking to integrate Redis and Telegram in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Redis with Telegram

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon