flowchart.chat / Guides
Support chatbot decision tree, from first message to handoff
A chatbot decision tree for an online store: orders, returns, sign-in, unknown charges and policy questions, routed on what the visitor typed, with a handoff.
Support chatbot decision tree, from first message to handoff OPEN THE CONVERSATION CLOSE OR HAND OFF Yes No Yes Where it is Yes To return or exchange it Yes No To change or cancel it Yes No No Yes Yes No Yes Yes No Yes Yes Yes No Yes No No Yes No No No No No A visitor opens the support chat For whoever writes a support chatbot's script. Each step is what the bot says or does, and each question is where it routes the visitor on their answer. The example is an online store, so swap in your own order, account and policy branches. Keep each bot message to one question. A visitor who gets three questions at once answers one of them. Greet the visitor and ask what they need help with "Hi, I'm the Acme assistant. What can I help you with?" Let the visitor type in their own words, then route on what they meant. Is the visitor asking about an order they already placed? Ask for the order number or the email address on the order Does the order come up? Ask once more for the order number, then offer a person What does the visitor want to know about the order? Show the tracking status and the expected delivery date Has the expected delivery date passed? Open a lost-parcel case and tell the visitor what happens next and when Is the order inside the return window? Send the return label and the steps to pack it Explain the return window and offer a person for exceptions Has the order shipped? Explain that it can't be changed in transit and offer a return once it arrives Cancel or change the order and confirm the change by email Is the visitor asking about their account or a payment? Ask what happened, in one sentence Is it a sign-in problem? Send the password reset link and wait for the visitor to try it Did the reset let them sign in? Is it a charge the visitor doesn't recognise? Ask for the amount and the date, then look up the charge Does the charge match an order on the account? Show the order and ask whether that explains the charge Is it a question about a product or a policy? Search the help centre for the visitor's own words Did an article match the question? Show the article's answer in the chat with a link to the article Did that answer the question? Ask it plainly. "Did that sort it out?" A yes closes the chat, and a no is the bot's last chance before a person takes over. Thank the visitor and close the chat Ask what's still missing, once One more free-text answer. If the visitor's reply fits a branch above, the bot can take it. If not, stop guessing. Hand the conversation to a person with the transcript Pass the order number, the branch the bot took and the visitor's own words to the person, so the visitor never repeats themselves. Is a person available right now? A person continues the chat from where the script left off Take the visitor's email address and promise a reply time you can keep
Open the conversation
A visitor opens the support chat Bot For whoever writes a support chatbot's script. Each step is what the bot says or does, and each question is where it routes the visitor on their answer. The example is an online store, so swap in your own order, account and policy branches.
Keep each bot message to one question. A visitor who gets three questions at once answers one of them.
Greet the visitor and ask what they need help with Bot "Hi, I'm the Acme assistant. What can I help you with?" Let the visitor type in their own words, then route on what they meant.
Is the visitor asking about an order they already placed? Bot
Ask for the order number or the email address on the order Bot
Does the order come up? Bot
Ask once more for the order number, then offer a person Bot Then go to step 33, Hand the conversation to a person with the transcript
What does the visitor want to know about the order? Bot
Show the tracking status and the expected delivery date Bot
Has the expected delivery date passed? Bot
Open a lost-parcel case and tell the visitor what happens next and when Bot
Is the order inside the return window? Bot
Send the return label and the steps to pack it Bot
Explain the return window and offer a person for exceptions Bot Then go to step 33, Hand the conversation to a person with the transcript
Has the order shipped? Bot
Explain that it can't be changed in transit and offer a return once it arrives Bot
Cancel or change the order and confirm the change by email Bot
Is the visitor asking about their account or a payment? Bot
Ask what happened, in one sentence Bot
Is it a sign-in problem? Bot
Send the password reset link and wait for the visitor to try it Bot
Did the reset let them sign in? Bot
Is it a charge the visitor doesn't recognise? Bot
Ask for the amount and the date, then look up the charge Bot
Does the charge match an order on the account? Bot
Show the order and ask whether that explains the charge Bot Then go to step 30, Did that answer the question?
Is it a question about a product or a policy? Bot
Search the help centre for the visitor's own words Bot
Did an article match the question? Bot
Show the article's answer in the chat with a link to the article Bot
Close or hand off
Did that answer the question? Bot Ask it plainly. "Did that sort it out?" A yes closes the chat, and a no is the bot's last chance before a person takes over.
Thank the visitor and close the chat Bot
Ask what's still missing, once Bot One more free-text answer. If the visitor's reply fits a branch above, the bot can take it. If not, stop guessing.
Hand the conversation to a person with the transcript Bot Pass the order number, the branch the bot took and the visitor's own words to the person, so the visitor never repeats themselves.
Is a person available right now? Bot
A person continues the chat from where the script left off Bot
Take the visitor's email address and promise a reply time you can keep Bot
Want people to follow this by typing what's going on in their own words?
Tell me if you build it
Refund request handling: what a support agent should do For support agents: handle a refund request by order status and reason, check return window, chargebacks, partial refunds and supervisor limits.
Which database should I use? A decision tree for your app Choose a database for a new app: SQLite, PostgreSQL or MySQL, a document store, Redis, graph, time-series, search or vector store, or Postgres plus extension.
Law firm client intake form with conditional questions A branching law firm intake form: conflict-check names first, then only what each matter type needs, deadlines, fees, documents and a route to the right lawyer.