TG-Staff 团队 avatar TG-Staff 团队

TG Bot Human Agent Transfer Configuration Guide: Seamless Customer Service Handoff Using Command Flow Nodes

Bot Seat CS Handoff TG Staff Telegram Bot

TG Bot Transfer to Human Agent Configuration Guide: Seamless Customer Service Handover Using Command Flow Nodes

When your Telegram Bot’s automated replies can’t handle complex user requests, transferring to a human agent becomes key to improving customer satisfaction. This article will guide you step by step through the complete configuration of tg bot transfer to human agent in TG-Staff, from setting up command flow nodes to optimizing routing rules, helping you build a seamless link between automated replies and human customer service.

Why Configure Transfer to Human Agent for Your TG Bot?

Purely automated Telegram Bots fall short in the following scenarios:

  • Complex issues can’t be resolved: Users need to inquire about order status, refund processes, or technical faults, and the Bot’s preset replies can’t cover them
  • User emotions require human intervention: Complaints, disputes, or emergencies require the empathy and flexible handling of a human agent
  • Critical conversion points: Users hesitate after consulting product details, and proactive guidance from a human agent can significantly boost conversion rates

TG-Staff’s visual command flow editor allows you to insert a “transfer to human agent” node into the Bot’s automated reply flow without writing a single line of code. When a user triggers this node, the conversation is automatically assigned to an online agent, who receives and replies in real-time via the web console. To the user, it feels like “the Bot suddenly became a real person.”

Prerequisites: Ensure Your TG-Staff Project is Ready

Before configuring the transfer to human agent, complete the following basic settings. Skipping these steps will prevent the transfer function from working properly.

Step 1: Add Agents and Assign Projects in TG-Staff Console

  1. Log in to the TG-Staff App Console
  2. Go to the left menu “Agent Management”
  3. Click “Add Agent”, enter the agent’s email or username, and set a login password
  4. Under “Project Permissions”, select the Bot projects the agent can access

Best Practice: Create a separate agent account for each customer service staff member instead of using the main account. This makes it easier to audit agent operation logs and conveniently assign permissions per project later.

Step 2: Confirm Plan Agent Quota and Routing Rules

TG-Staff’s plan determines the maximum number of agents you can support (see the official plan page for details):

  • Free Trial: 3-day trial period, features same as Standard
  • Standard: Suitable for small teams
  • Professional: Suitable for medium to large teams, supports more agents

Go to “Project Settings” → “Session Routing” and select a routing rule:

RuleUse CaseDescription
Round RobinFixed shift teamsPolls authorized agents in order, distributing conversations evenly
Online FirstFlexible shift teamsPrioritizes currently online agents; falls back to round robin when all are offline

Tip: Agent Online Status

The transfer-to-human-agent node only assigns users to agents whose status is “Online.” If all agents are offline, users will remain waiting in the command flow until an agent comes online. It is recommended that teams keep at least one agent online, or set up an offline notification mechanism when using the “Online Priority” rule.

Core Step: Configure the Transfer-to-Agent Node in the Command Flow

After completing the prerequisites, proceed to the most critical step—adding a transfer node in the visual command flow editor.

Step 1: Enter the Command Flow Editor and Create/Edit a Flow

  1. Select “Command Flows” from the left menu
  2. Click “New Flow” or select an existing flow to edit
  3. Drag the “Transfer to Agent” node from the left node panel onto the canvas

Step 2: Configure Transfer Node Parameters

Double-click the “Transfer to Agent” node on the canvas and configure the following parameters:

  • Node Name: Suggested as “Transfer to Agent” or “Human Service”

  • Target Project: Defaults to the current project; usually no modification needed

  • Auto-Reply Message Before Transfer: Enter the text that the Bot will automatically reply when the user is being transferred, for example:

    “We are now transferring you to a human agent, please wait… There is a queue, but we will assign an agent as soon as possible.”

  • Post-Node Connection: Connect the node’s output to an “End” node (the flow ends after transfer) or to a “Menu” node (the user can still return to the main menu after transfer)

Step 3: Test Whether the Transfer Flow Works

  1. Save the flow and publish it
  2. Send a trigger command to your Bot (e.g., /help or a custom menu button) using a test Telegram account
  3. Observe whether the Bot returns the transfer prompt message you set
  4. Log in to the agent account’s web console to confirm whether a new session notification is received

Common Pitfalls: Node Order and User Input Capture

The transfer-to-agent node is typically placed at the end of a flow or within a conditional branch. If there is a “Wait for User Input” node before it, ensure the user has finished input before transferring; otherwise, the user may be transferred before expressing their issue, increasing the agent’s understanding effort.

TG-Staff’s Diversion Link feature allows you to precisely route traffic from ads, social media, official websites, and other channels to your Bot. Then, through the command flow’s human transfer node, you can achieve a complete funnel: diversion → auto-reply → human handoff.

Configuration Approach:

  1. Create a diversion link in the TG-Staff console (available for Standard plan and above)
  2. Deploy the link to channels like Google Ads, Facebook, Twitter, etc.
  3. When users click the link, they are redirected to your Telegram Bot, triggering a welcome or menu flow
  4. Set a “Contact Support” button in the menu → connect it to the human transfer node
  5. When an agent receives the conversation, they can view the visitor’s IP, browser info, and URL parameters captured by the diversion link, enabling them to understand the user’s source channel in advance

This funnel is especially suitable for customer acquisition scenarios in cross-border e-commerce, Web3 projects, and SaaS products. From ad click to human agent handoff, it takes only tens of seconds, significantly reducing churn.

Common Missed Handoff Troubleshooting: What to Do When Users Are Not Assigned After Transfer?

If after configuring the transfer node users are not being assigned to an agent, check the table below:

IssuePossible CauseSolution
Agent doesn’t receive new sessionAgent is offlineAgent logs into the Web console and stays online
User waits but gets no responseDiversion rule set to “Round Robin” and all agents are busySwitch to “Online Priority” or add more agents
Transfer node doesn’t respondNode not properly connected to the flowCheck node connections, re-save the flow
Agent has permissions but doesn’t receiveProject agent scope doesn’t include that agentGo to Project Settings → Agent Scope → select “All Agents” or add that agent
Bot errors after user transferBot Token expired or insufficient permissionsRe-obtain Token from BotFather and update in TG-Staff

Best Practices: Setting Up Offline Auto-Reply

Before the manual agent node in the command flow, add a conditional judgment node: if it detects that no agent is online, return “No customer service agents are currently online. Please try again later or leave a message,” and guide the user to a message form or FAQ flow. This prevents user churn after long waiting times.

Checklist: Full Process for Configuring Human Agent Transfer in TG Bot

Use the following checklist to summarize the key steps and track your progress:

  • Register a TG-Staff account and bind your bot
  • Add at least one agent account and assign a project
  • Confirm your plan supports the required number of agents
  • Configure session routing rules (round-robin / online priority)
  • Add a human agent transfer node in the command flow editor
  • Set up automatic reply messages before transfer
  • Test the transfer flow (Bot → Agent Web Dashboard)
  • Troubleshoot common missed connections issues (offline, busy, permissions, node connections)
  • Consider using routing links for traffic attribution

FAQ

Q: Can I configure human agent transfer with the free trial? A: Yes. During the 3-day free trial, you can use standard features, including adding up to 3 agents, configuring session routing, and command flow transfer nodes. After the trial, you need to subscribe to the Standard or Pro plan to continue.

Q: Will the user’s chat history be synced to the agent after transfer? A: Yes. When a user is transferred to an agent via the command flow, the agent will see the entire interaction history (including bot auto-replies and user inputs) in the Web Dashboard, helping the agent quickly understand the context.

Q: Does the human agent transfer node support conditional routing? For example, only transfer VIP users? A: Currently, TG-Staff’s human agent transfer node is triggered globally and does not support conditional routing based on user tags or conditions. However, you can first use a conditional node in the command flow (e.g., check if the user entered a specific keyword) to guide different users into different branches, and then connect one branch to the transfer node.

Q: What happens if all agents are offline when a user is transferred? A: The user will remain in the bot flow without receiving an error message, but will not be assigned an agent. We recommend adding a “check online agents” logic before the transfer node (using a conditional node). If no agents are online, guide the user to leave a message or return to the main menu. This needs to be manually configured in the command flow.

Q: How many bots’ human agent sessions can TG-Staff handle simultaneously? A: You can bind multiple bot projects under one TG-Staff account, each with independent command flows and transfer rules. Agents can switch between projects in the Web Dashboard to receive transfer sessions. The number of projects supported depends on your plan; please refer to the official website.


Now register for a free trial of TG-Staff and experience the command flow human agent transfer feature. If you encounter any issues during configuration, contact customer service via @tgstaff_robot or check the online documentation.