Try it on your own data
Every report in this article is in the free plan. One snippet for web and apps, up to 10 sites.
Start freeA chatbot decision tree is a fixed map of a support conversation: questions with set choices, answers at the end of each path and handoffs to a person. Draw it from real chat transcripts, keep it to two or three levels with a human exit on every node, and judge each branch by how many customers it resolved without coming back, not by how many reached the end.
What you will learn
- Tag a sample of real chats by intent and turn the few intents covering about three-quarters of them into branches; send the rest to a person
- Keep branches two to three levels deep with four or fewer choices, and put a Talk to a person exit on every node
- Score each branch on containment: resolved without a person and no repeat contact in 7 days; in the sample, 55.8% against 71.8% completion
What is a chatbot decision tree?
A chatbot decision tree is a fixed map of a support conversation: the bot asks a question, the customer picks an answer (usually a button), and each answer leads either to another question, to a final answer, or to a person. It has three kinds of node:
- Question nodes ask one thing and offer a few choices ("Has your order shipped?").
- Answer nodes end the branch with information or a link ("Here is your tracking page").
- Handoff nodes pass the conversation to an agent, or to an offline form when nobody is online.
The same thing is also called a conversation flow chart or chatbot flowchart: a drawing of every path the conversation can take. It differs from an AI chatbot, which reads free text and drafts an answer, in one important way: a decision tree can only go where someone drew a line. That makes it predictable and easy to check, and it also means every branch you did not draw ends in a dead end unless you add an exit. The trade-offs between rule-based, AI and hybrid bots are covered in types of chatbots, and whether a bot should be in front of your agents at all in chatbot vs live chat.
Trees also grow faster than people expect. Three choices per level give 3 × 3 × 3 = 27 end points at three levels and 81 at four. Seven yes/no questions give 2⁷ = 128 paths. Every end point needs an answer someone writes, tests and keeps current. That arithmetic is why this guide argues for a small tree: drawn from real transcripts, two to three levels deep, with a human exit on every branch, and judged branch by branch on how many customers it actually resolved.
How do you build a decision tree from real chat transcripts?
Start from what customers already ask, not from your product's menu. A tree designed from the org chart ("Billing", "Technical", "Account") makes customers translate their problem into your words. A tree built from transcripts uses theirs.
- Pull a sample of recent conversations. 200 is enough to see the main intents for a small store; use more if you have several product lines. Take them from the last one to three months so seasonal questions are represented.
- Tag each conversation with one intent. Write the intent as the customer's goal ("Where is my order?", "Return an item"), not as a department. If a chat had two questions, tag the one that started it.
- Count and sort. Intents that together cover roughly three-quarters of conversations become branches. Everything else becomes "Something else", which goes straight to a person.
- Collect the wording. Copy three to five real phrasings per intent. The UK Driver and Vehicle Licensing Agency (DVLA), describing its chatbot pilot in a 2020 government case study, found 150 different ways users made requests before the bot went live. Your button labels and stored answers should match how people actually ask.
- Start small. UK government guidance on chatbots and webchat tools (2020) advises teams to start small and roll out a tool's scope and depth gradually. Five branches that work beat fifteen that half work.
Sample data: 200 tagged chats from an online store.
| Intent | Chats | Share | Becomes |
|---|---|---|---|
| Where is my order? | 54 | 27% | Branch |
| Returns and refunds | 38 | 19% | Branch |
| Change or cancel an order | 26 | 13% | Branch |
| Sizing and product questions | 22 | 11% | Branch |
| Discount code problems | 16 | 8% | Branch |
| Everything else | 44 | 22% | Straight to a person |
| Total | 200 | 100% |
The five branches cover 156 of 200 chats, or 78%. Adding a sixth branch for intents that each appear in fewer than 5% of chats would add answers to maintain for little coverage; leave the long tail to people.
How deep should the tree go, and where do human exits go?
Two rules keep a tree usable:
Two to three levels. Level 1 picks the intent. Level 2 narrows it ("Has it shipped?"). Level 3, if needed, gives the answer or asks for the one detail the answer depends on. If a branch needs a fourth question, the problem usually needs a person or a system lookup, not more buttons.
A human exit on every node. Every question node offers "Talk to a person" next to its choices, and every answer node asks "Did this solve it?" with a "No" that hands off. Without that, a customer whose problem does not fit the buttons loops. The US Consumer Financial Protection Bureau's 2023 report on chatbots in consumer finance describes these "doom loops", where customers get repetitive, unhelpful answers without a way to reach a human, and found that about 37% of the US population, over 98 million users, engaged with a bank's chatbot in 2022. UK government guidance likewise tells teams to provide a way to transfer to a real person so users do not get stuck in a conversation loop.
Here is the "Where is my order?" branch from the sample, drawn to those rules:
- Level 1: "What can we help with?" → Where is my order? / Returns / Change or cancel / Sizing / Discount code / Something else / Talk to a person
- Level 2 (Where is my order?): "Has your order shipped?" → Yes, I have a tracking number / No, it hasn't shipped / I don't know / Talk to a person
- Level 3 (Yes): Answer: how to read the tracking status and when to contact the carrier. Then "Did this solve it?" → Yes / No, talk to a person
- Level 3 (No / I don't know): Answer: processing times by shipping method and where the order status page is. Then "Did this solve it?" → Yes / No, talk to a person
A few more structural rules:
- Four choices or fewer per question, plus the human exit. Long button lists push customers to "Something else".
- One question per node. "Is your order late or damaged?" is two questions.
- Hand off with context. The agent should see which branch and buttons the customer chose, so the first human message is not "How can I help?".
- Branches that need an action go to a person early. A tree can explain the cancellation policy; it cannot cancel the order unless it is connected to your order system.
Which metrics show whether each branch works?
The most common chatbot report is completion rate: how many conversations reached an end node. It is the wrong headline, because reaching an answer is not the same as being helped by it. A customer who reads the discount-code answer, finds the code still fails and writes in again tomorrow counted as "completed".
Measure each branch on four numbers:
- Entered: conversations that chose this branch.
- Handoff rate = handed to a person ÷ entered.
- Abandonment rate = left mid-branch without an answer ÷ entered.
- Containment rate = resolved without a person ÷ entered, where "resolved" means reached an answer, did not ask for a person and did not come back about the same issue within seven days.
Containment is the number that answers the business question: how many customers did this branch actually take care of? The seven-day repeat check is what separates it from completion. Choose the window that fits your products and keep it the same from month to month.
Then set a rule before you look at the data, so the decision is not argued case by case. For example: any branch with containment below 40% for a month is either rewritten or replaced by a direct handoff. The threshold is yours to choose; the point is to pick one.
| Metric | Formula | What it tells you |
|---|---|---|
| Completion rate | Reached an answer ÷ entered | Whether the path is followable; not whether it helped |
| Handoff rate | Handed to a person ÷ entered | Intents the tree cannot handle, or a missing choice |
| Abandonment rate | Left mid-branch ÷ entered | A confusing question node |
| Containment rate | (Reached answer − came back within 7 days) ÷ entered | Customers the branch actually took care of |
Compute all four per branch, not only for the whole bot; a strong branch can hide a weak one in the total.
Worked example: scoring five branches
Sample data: one month of the store's tree after launch. Entered = handed off + abandoned + reached an answer; contained = reached an answer − came back within seven days.
| Branch | Entered | Handed off | Abandoned | Reached answer | Came back ≤ 7 days | Contained | Completion | Containment |
|---|---|---|---|---|---|---|---|---|
| Where is my order? | 1,080 | 120 | 60 | 900 | 90 | 810 | 83.3% | 75.0% |
| Returns and refunds | 760 | 150 | 50 | 560 | 120 | 440 | 73.7% | 57.9% |
| Change or cancel | 520 | 230 | 40 | 250 | 110 | 140 | 48.1% | 26.9% |
| Sizing and product | 440 | 90 | 70 | 280 | 30 | 250 | 63.6% | 56.8% |
| Discount code | 320 | 40 | 30 | 250 | 150 | 100 | 78.1% | 31.3% |
| All branches | 3,120 | 630 | 250 | 2,240 | 500 | 1,740 | 71.8% | 55.8% |
How to read it:
- Where is my order? contains 810 ÷ 1,080 = 75.0%. Keep it; check the 90 repeat contacts for late parcels the answer does not cover.
- Change or cancel contains 140 ÷ 520 = 26.9%, and 230 of 520 (44.2%) ask for a person anyway. The tree can explain the policy but cannot change the order. Under the 40% rule, replace the branch with a direct handoff that asks for the order number first.
- Discount code is the trap. Its completion rate, 250 ÷ 320 = 78.1%, looks better than Returns, but 150 of the 250 who reached the answer came back within a week (60%). Containment is only 100 ÷ 320 = 31.3%. The answer explains how codes work; the real problem is usually an expired or mistyped code, which needs a person or a fix to the code itself.
- Sizing and product contains 56.8%, but has the highest abandonment, 70 ÷ 440 = 15.9%. The level-2 question is probably asking for something customers do not know (for example, their measurements); rewrite that node before adding more answers.
Across all branches, the tree contained 1,740 of 3,120 conversations, 55.8%, while its completion rate was 71.8%. Reporting completion would have overstated the bot's work by 500 conversations: the ones that came back. For a public-sector comparison point, the DVLA case study reports that its chatbot answers 25% to 30% of customer queries without going to an adviser.
Containment by branch
sample month, 40% floorWhat are the most common decision tree mistakes?
- Designing from the menu, not from transcripts. Branch labels in company language ("Fulfilment") get skipped; customers pick "Something else" and land with an agent anyway.
- No exit until the end. If "Talk to a person" appears only after three questions, a customer with an urgent problem has to answer three irrelevant questions first. Put the exit on every node.
- Counting completion as success. As the Discount code row shows, a branch can complete 78.1% of conversations and contain only 31.3%.
- Keeping branches that need actions. A tree that cannot cancel, refund or edit an order should route those intents to a person quickly instead of describing a process the customer cannot complete.
- Never pruning. Review per-branch containment monthly. Intents change with seasons, promotions and product launches; a branch nobody enters for two months is maintenance with no return.
For ready-made wording of greetings, fallbacks and handoff lines inside each node, see chatbot templates.
How to do this in TapCub
TapCub has no button-tree builder, so you cannot draw the flow above as clickable buttons in TapCub. What you can do is cover the same top intents with stored answers that always have a human exit, and measure how often they work. Here is the sample store's tree rebuilt that way.
- Turn the top intents into Q&A entries. In Live chat › Knowledge base, write one Q&A entry per intent you would have made a branch: "Where is my order?", returns, sizing. When a visitor's normalized message equals the stored question, or contains all of its keywords, the stored answer is sent as written and does not use an AI call. On the Draft inbox, Generate from conversations turns visitor questions and agent replies from conversations resolved in the last 30 days into Q&A drafts, which is a quick start for step 2 of the transcript method; nothing goes live until you approve a draft.
- Use the pinned FAQ as level 1. Pinned Q&A entries appear in the visitor-facing FAQ. Opening an answer does not create a conversation and uses no quota; Not solved, or asking for a person, opens a conversation and brings the question to an agent. That is the "Did this solve it?" exit on every answer node.
- Route action intents to people. Leave "Change or cancel an order" out of the knowledge base. The AI assistant on Live chat › Chat settings › AI assistant only drafts replies; it cannot change an order. In AI-answers-first mode it stops when the visitor asks for a person, and Max AI turns per conversation (default 6) hands off after the limit.
- Read the handoff reasons. In Live chat › Inbox, each handoff is labelled: no knowledge match, the model cannot answer, the visitor asked, the turn limit, or an agent took over. A cluster of "no knowledge match" on one topic is a missing branch; a cluster of "the visitor asked" after an answer is a branch with weak containment. Fix & save turns a corrected reply into a Q&A entry.
- Track the totals. Live chat › Reports shows knowledge base hit rate (questions answered by a direct Q&A match or a retrieved answer) and resolution rate (resolved ÷ conversations). TapCub does not report containment per branch, so count handoffs by topic yourself for the per-branch table above.
FAQ
What is a decision tree in a chatbot?
It is a fixed map of the conversation: questions with set choices, answers at the end of each path and handoffs to a person. The bot follows the branch the customer picks, so it only covers paths someone designed. That makes it predictable and easy to audit, and it is why every node needs an exit to a human.
How do you create a chatbot decision tree?
Tag a sample of real chats by intent, count the share of each, and turn the intents that together cover about three-quarters of chats into branches. Keep each branch to two or three levels with four or fewer choices, add a "Talk to a person" exit on every node, and send everything else straight to an agent.
How many levels should a chatbot decision tree have?
Two to three. Level 1 picks the intent, level 2 narrows it and level 3 gives the answer. Three choices per level already give 27 end points at three levels and 81 at four, each needing a maintained answer. If a branch needs a fourth question, it usually needs a person or a system lookup.
What is a good containment rate for a chatbot?
There is no reliable universal benchmark; it depends on how many of your intents need an action the bot cannot take. Compare branches with each other and set your own floor. For reference, the UK DVLA reports that its chatbot answers 25% to 30% of queries without an adviser. In the sample here, branches ranged from 26.9% to 75.0%.
Is a conversation flow chart the same as a decision tree?
Mostly. A conversation flow chart is the drawing; a decision tree is the logic the bot runs. Flow charts sometimes include loops back to earlier questions, which a strict tree does not. Whichever you draw, give every path an end: an answer, or a handoff to a person.
Sources
- UK Government Digital Service. Using chatbots and webchat tools, 3 April 2020 — start small and roll out scope gradually; provide a way to transfer to a real person so users do not get stuck in a loop. Checked 2026-11-28.
- UK Government Digital Service. How the DVLA deployed a chatbot and improved customer engagement, 3 April 2020 — 150 different ways users made requests; 25% to 30% of queries answered without an adviser. Checked 2026-11-28.
- Consumer Financial Protection Bureau. Chatbots in consumer finance, 6 June 2023 — about 37% of the US population, over 98 million users, engaged with a bank's chatbot in 2022; "doom loops" without an offramp to a human. Checked 2026-11-28.
Was this article helpful?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Product Analyst
Focuses on event analysis, conversion funnels, and retention, using clear metric definitions and structured analysis to explain product performance.



