Telegram AI Bot-to-Human Handoff for Sales Calls - n8n Workflow | Neura Market

    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 its interaction 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 the context of the human-to-user conversation and is set to provide after-sales assistance. A 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 the 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 any time 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 recommended 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 ### Customizing this workflow * Not using Telegram? This template works with WhatsApp and other services with equivalent functionality.

    Platform
    n8n
    Category
    AI
    Price
    Free
    Creator
    Jimleuk
    • if
    • code
    • redis
    • switch
    • telegram
    • stickyNote
    • agent
    • executeWorkflow
    • telegramTrigger
    • lmChatOpenAi
    Back to MarketplaceMore n8n Workflows

    How to import this workflow into n8n

    1. 1Purchase or download the workflow to get the n8n workflow JSON file.
    2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
    3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
    4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

    Related AI workflows

    • Launch Your First AI-Powered Chatbot with Actionable ToolsFree
    • Automate AI Video Creation and YouTube Upload with Google Sheets
    Free
  1. Build a WhatsApp Assistant with Memory, Google Suite, Multi-AI, Research, and ImagingFree
  2. Automate Blog Post Creation and Publishing with GPT, Leonardo AI, and WordPressFree
  3. Email Agent$500.99
  4. Create a Conversational Telegram Bot with GPT-4 for Text and Voice MessagesFree
  5. More from Jimleuk

    • Transcribing Bank Statements to Markdown Using Gemini Vision AI
    • Evaluate RAG Response Accuracy with OpenAI: Document Groundedness Metric
    • Evaluate AI Agent Response Correctness with OpenAI and RAGAS Methodology
    All AI workflows →All n8n workflows →

    Need help customizing this workflow?

    Our automation experts adapt it to your exact stack, data, and process — or build one from scratch.

    Get a Custom Build
    Neura Market
    Neura Market
    Marketplace
    Directories
    Resources

    Marketplace

    • Prompts
    • Workflows
    • Agents Store
    • Workflow Packs
    • Categories
    • Marketplace

    Directories

    • AI Tools Directory
    • ChatGPT
    • Claude
    • Gemini
    • Cursor
    • Grok
    • DeepSeek
    • Perplexity
    • CoPilot
    • Midjourney
    • Stable Diffusion
    • MCP Servers
    • .md Directory
    • All Directories

    Free Tools

    • AI Text Humanizer
    • AI Content Detector
    • Workflow Generator
    • Model Comparison
    • AI Pricing Calculator
    • AI Benchmarks
    • ROI Calculator
    • All Free Tools

    Resources

    • AI News
    • Blog
    • AI Models
    • Integrations
    • Alternatives
    • n8n vs Zapier
    • Make vs Zapier
    • n8n vs Make
    • Resource Library
    • Documentation

    Community

    • AI Jobs
    • AI Events
    • AI Companies
    • Start Selling
    • Sell n8n Workflows
    • Sell AI Agents
    • Sell Prompts
    • Creator Guide
    • Advertise
    • Affiliates

    Company

    • About
    • Contact
    • Help
    • Careers
    • Pricing
    • Terms
    • Privacy
    • License
    • DMCA

    Stay Updated

    Get the latest AI tools and insights delivered to your inbox.

    Neura Market Logoneuramarket

    © 2026 Neura Market. All rights reserved.