AutomationMart
Home/Browse/Telegram AI bot-to-human handoff for sales calls
n8n

Telegram AI bot-to-human handoff for sales calls

n8nn8n30 modulesv1.0
agentcodeexecuteWorkflowexecuteWorkflowTriggerifinformationExtractorlmChatOpenAimemoryManagermemoryRedisChatredisswitchtelegramtelegramTriggertoolWorkflow

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

At a glance

Telegram AI bot-to-human handoff for sales calls is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects agent, code, executeWorkflow, executeWorkflowTrigger. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
agent, code, executeWorkflow, executeWorkflowTrigger, if, informationExtractor
Modules
30
Price
Free
Version
v1.0
Telegram AI bot-to-human handoff for sales calls workflow diagram

About this workflow

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.

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

AI resume screening with GPT-4o & error handling | Google Sheets & Drive flow

GPT-4o Resume Screener with Error Handling - Google Sheets & Drive Pipeline How it works Enterprise-grade resume screening automation built for production environments. This workflow combines intelligent AI analysis with comprehensive error handling to ensure reliable processing of candidate applications. Every potential failure point is monitored with automatic recovery and notification systems. Core workflow steps: 1. Intelligent Email Processing - Monitors Gmail with attachment validation and

Free

Get Binance spot market financial analysis via Telegram with GPT-4o

This workflow powers the Binance Spot Market Quant AI Agent, acting as the Financial Market Analyst. It fuses real-time market structure data (price, volume, kline) with multiple timeframe technical indicators (15m, 1h, 4h, 1d) and returns a structured trading outlook—perfect for intraday and swing traders who want actionable analysis in Telegram. 🔗 Requires the following sub-workflows to function: • Binance SM 15min Indicators Tool • Binance SM 1hour Indicators Tool • Binance SM 4hour Indicator

Free

Generate invoices, save to Drive and send email to customer with JS + G Sheets

This workflow automates invoice generation from form submissions, ensuring unique order IDs, creating PDF invoices, storing files, emailing customers, and logging invoice data — all seamlessly integrated. --- 🔹 Workflow Overview 1. Trigger (Webhook) Starts when an order form is submitted, capturing customer and order details. 2. Generate Random Order ID A Function node creates a unique alphanumeric invoice ID (e.g., INV-X92B7D). 3. Check for Duplicate Order ID Goog

Free

AI resume processing and GitHub analysis with VLM run

Automatically transform resume submissions into comprehensive candidate profiles with AI-powered parsing, GitHub analysis, and instant team notifications. What this workflow does 1. Monitors Gmail for incoming resume attachments 2. Extracts structured data using VLM Run AI document parsing 3. Analyzes GitHub profiles with deep repository intelligence (30+ frameworks detected) 4. Creates comprehensive candidate profiles with technical skills assessment 5. Delivers multi-channel notifications via

Free

Build your first AI agent – powered by Google Gemini with memory

A smart personal assistant that can reason, search, calculate, and remember — powered by Google Gemini and ready in one click. Most AI agents only respond — this one thinks before replying, pulls in real-time facts, does the math, and even remembers the last 5 things you said. 🔧 How it works This template builds a conversational agent using the Google Gemini API. It uses multiple tools like: 🧠 Think – to reason step-by-step 🔍 SerpAPI – to search live data on Google ➗ Calculator – to solve math p

Free

Reliable Reddit subreddit search with OAuth2 API authentication

Since the Get Many Subreddit node often blocks requests because Reddit requires proper authentication headers, this workflow provides a reliable alternative. It uses the Reddit OAuth2 API through the HTTP Request node, processes the results, and outputs cleaned subreddit data. If you are using Get Many subreddit node and you are getting this error: n8n You've been blocked by network security.To continue, log in to your Reddit account or use your developer token Usecase: This is especially useful

Free

Automated daily backup of n8n workflows to GitLab repositories

n8n Workflow: Sync Workflows with GitLab How It Works This workflow ensures that your self-hosted n8n workflows are version-controlled in a GitLab repository. It compares each current workflow from n8n with its stored counterpart in GitLab. If any differences are detected, the GitLab file is updated with the latest version. Core Logic: 1. Retrieve Workflows – Fetch all workflows from the n8n REST API. 2. Compare with GitLab – For each workflow, fetch the corresponding file from GitLab and compar

Free

AI video automation engine - generate & publish YT shorts with Veo-3 or Sora 2

Product Overview Scale short-form content without scaling your team. This template turns idea discovery → prompt & text generation → Veo-3 video rendering → vertical formatting → multi-channel publishing into one cohesive pipeline. It’s built natively on n8n, so you keep full control, self-host if you want, and extend every step with your own logic. --- What’s Inside (Modular Building Blocks) - Idea Engine – AI generates concise, surprising facts and a visual metaphor per topic (swappable LLM/pr

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