DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Multilingual Conversational Payments Chatbot Architecture: Enterprise RAG With Safety Guardrails, Human Handoff, and Multi-Modal Support
  • Deploying an Enterprise LLM Chatbot on Databricks With RAG, MLflow, Vector Search, and Model Serving
  • Your AI Agent Is a Distributed System, Not a Chatbot
  • 5 Failure Patterns That Break AI Chatbots in Production

Trending

  • Moving 900+ GB of Prometheus Without a Cutover Weekend
  • Vision-Language Models in 2026: From Research Breakthroughs to Cloud-Native Production Systems
  • PWA on iOS, Part 2: HTTPS, Manifest and Service Worker
  • How You Clear Your HTML5 Canvas Matters

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Data Engineering
  3. AI/ML
  4. Testing Chatbots for the Unexpected

Testing Chatbots for the Unexpected

This article shows how to design a robust test strategy for a mission-critical enterprise chatbot by using automated testing.

By 
Florian Treml
·
Updated Feb. 28, 22 · Opinion
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
7.9K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

Quite often we are consulted to design a robust test strategy for a mission-critical enterprise chatbot. How is it possible to test something for all possible unexpected user behaviour in the future? How can someone confidently make assumptions on the quality if we have no clue what the users will ask the chatbot?

Short-Tail vs Long-Tail Topics

While we do not own a magic crystal ball to look into future usage scenarios, from our experience we gained the best results with a systematic approach in a continuous feedback setup. In almost every chatbot project the use cases can be categorized:

  • short-tail topics — the topics serving most of your users needs (typcially, the 90/10 rule applies — 90 % of your users are asking for only 10% of the topics)
  • long-tail topics — all the other somehow exotic topics that the chatbot could also answer
  • handover topics — topics where for whatever reason handover to a human agent is required

Examples for short-tail topics in the telecom domain:

  • Opening hours of the flagship stores
  • WLAN connectivity issues
  • Questions on individual invoice lines

Examples for long-tail topics in the telecom domain:

  • iPhone availability in the flagship stores
  • International roaming conditions
  • Lost SIM-card phone

Examples for handover topics in the telecom domain:

  • Contract cancellation
  • Business products and business customers

Getting Started

Our recommendations for the first steps in a chatbot project are always the same:

  1. Focus training and testing exclusively on the short-tail topics — typically, with a customer support chatbot, which are the majority of the chatbots we’ve been working with, there are a handful of topics only for which you have to provide a good test coverage
  2. Apart from that, leave the long-tail topics aside and design a clear human handover process

The challenge now is how to get a good test coverage for the short-tail topics — this is the real hard work in a chatbot project. 

Continuous Feedback

As soon as the chatbot is live, there is constant re-training required — this process involves manual work to evaluate real user conversations that for some reason went wrong and to deduct the required training steps. During this process, the test coverage will be increased — for the short-tail topics we can expect a near 100% test coverage within several weeks after launch: those are the topics asked over and over again, and as complex as human language may be, there is only a finite number of options how to express an intent in a reasonable short way.

As opposed to the title “Testing Chatbots for the Unexpected”, you can see that we suggest a very down-to-earth-approach — not testing for the unexpected or the unknown, but testing for “the most likely options” and try to get a high test coverage for those cases (this is possible as human language is complex but finite).

Automated Testing

When it comes to test automation, the critical question is if something is worth investing the initial automation effort.

  • Establishing automated testing for the short-tail topics is a must
  • Ensure a smooth handover process to a human agent
  • Long-tail topics can be handled with manual testing in the beginning
Chatbot

Published at DZone with permission of Florian Treml. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Multilingual Conversational Payments Chatbot Architecture: Enterprise RAG With Safety Guardrails, Human Handoff, and Multi-Modal Support
  • Deploying an Enterprise LLM Chatbot on Databricks With RAG, MLflow, Vector Search, and Model Serving
  • Your AI Agent Is a Distributed System, Not a Chatbot
  • 5 Failure Patterns That Break AI Chatbots in Production

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook