E2E Testing for Chat, Voice, Phone and Video AI Agents

Run Thousands of Test Scenarios against Your Agent and Catch Hallucinations, Bias, and Toxicity Before Users Do.

Conversational AI Design: Principles, Process and How to Test It

Conversational AI design shapes how chat and voice agents talk. Learn the core principles, a design process for LLM agents, common mistakes and how to test it.

Summarise with AI

OVERVIEW

A patient asks a clinic's assistant for something it was not built to handle. The assistant offers its menu, the patient tries again, the same menu comes back, and no reply ever offers a receptionist. That is a conversational AI design defect, not a model error: a re-prompt loop with no limit and no route to a person, waiting for every user who leaves the script.

A 2018 Nielsen Norman Group usability study, The User Experience of Chatbots, saw the pattern across the bots it tested: "As soon as users deviated from the prescribed script, problems occurred," and the bots "had trouble recovering from a problem or an unexpected input." Such defects sit in the design file: a flow lint run on 2026-12-04 reported 6 findings, covering every defect placed in a 12-node fictional clinic design.

Overview

Conversational AI design, also called conversation design, is the practice of planning how a chatbot or voice agent takes turns, confirms actions and recovers from misunderstandings, and when it hands off to a person. Its deliverables are sample dialogs, flows and prompts that a team can review and test before launch.

What are the core conversation design principles?

  • Cooperative principle: Google's conversation design guidelines describe Grice's Maxims, the four rules of the cooperative principle, and each works as a review rule for every chatbot reply. Quality asks for true statements and Quantity for the right amount of information. Relevance asks for a reply to the user's actual turn, and Manner for clear words.
  • Turn-taking: A chatbot or voice agent turn ends with one clear question or a clear stopping point, so the user always knows when to speak, and it never presents every option at once.
  • Re-prompt limit: Cap re-prompts at about two, because unlimited re-prompting is a design defect. Google's guidelines end the conversation after 2 No Match collection attempts. Microsoft Copilot Studio's system fallback asks the user to rephrase no more than twice, then escalates to a live representative.
  • Explicit confirmation: Explicit confirmation is required for hard-to-undo actions, such as cancelling a booking or completing a transaction. It is not required for routine details, and Google's guidelines recommend implicit confirmation most of the time.
  • AI transparency: Disclosing the AI is a legal duty in the EU under Article 50(1) of the EU AI Act, which has applied since 2 August 2026. Providers must tell people they are talking to an AI system unless that is obvious from the context of use.
  • Design testing: Pre-build testing can use a flow lint, which finds dead ends and unlimited loops in the design file. Post-build testing can use TestMu AI Agent Testing, which runs simulated users against the agent with chat scenarios generated from the uploaded design brief and sample dialogs.

What Is Conversational AI Design?

Conversational AI design is the discipline of planning the dialog between a person and a chatbot, phone agent or voice assistant: the turns, the wording, the confirmations, the error paths and the handoff to a human. The practice is usually called conversation design, and sometimes conversational design.

Google's guidelines open with a short definition on What is conversation design?: "Conversation design is a design language based on human conversation." Microsoft's Power Platform Well-Architected guidance (XO:10) calls it "the process of creating structured, intuitive, and natural dialogues between users and AI."

An AI chatbot built without this step still ships a design, set by its builder's default prompts and fallback.

Conversation Design vs UX Design

Google describes conversation design as "a synthesis of several design disciplines, including voice user interface design, interaction design, visual design, motion design, audio design, and UX writing." It adds that "Conversation is inherently multimodal," which is why a chat design still involves buttons, cards and screens.

The working difference from screen UX is control: a screen offers fixed controls, while a conversation has to plan for anything the user says next.

Deliverables of a Conversation Designer

  • Persona - how the assistant sounds, kept consistent across writers.
  • Sample dialogs - written exchanges for the key use cases.
  • Flows - the paths drawn from those dialogs, with every fallback and exit marked.
  • Prompts and instructions - fixed wording for a scripted bot, or the system prompt for an LLM-based agent.
  • Recovery and handoff rules - re-prompt limits and where a person takes over.

The build tool is a separate decision, compared in the guide to chatbot builders.

Conversation Design Principles

These principles come from Google's conversation design guidelines (written for Assistant Actions, still published), Microsoft's XO:10 guidance, Nielsen Norman Group research and, for AI transparency, Article 50(1) of the EU AI Act. Each prevents a named failure, which makes it testable.

The Cooperative Principle and Its Four Maxims

Google's page Learn about conversation frames dialog around the cooperative principle and four rules it calls Grice's Maxims. Each maxim becomes a review question for every reply the assistant gives.

  • Quality - "the truth of what we say": the assistant states only what its data supports.
  • Quantity - "the quantity of information that we provide": enough to complete the step, no more.
  • Relevance - "the relevance of what we contribute": the reply answers the turn the user took.
  • Manner - "the way we strive to communicate clearly, without obscurity or ambiguity": plain words, one question at a time.

Turn-Taking in Conversation Design

The same Google page explains: "By taking turns, we avoid interrupting each other and keep the conversation in sync." Its design rule follows: "Your persona should give clear signals when it's the user's turn."

In practice, end each assistant turn with one clear question or a clear stopping point.

The opening turn sets up every turn after it, so it says what the assistant can do. Microsoft's XO:10 guidance asks designers to "Be upfront about the AI's capabilities," and, if the AI can perform only specific tasks, to "let users know about this limitation right from the start."

Keeping Context Across Turns

Google notes that "Utterances often can't be understood in isolation; they can only be understood in context." A reply such as "the earlier one" only works if the design says what the assistant remembers from the previous turns.

Nielsen Norman Group's recommendation list adds "Save information from one task to the next." Design for that carry-over on purpose, and test it with multi-turn conversations in which a late turn depends on a detail given early.

Designing an Assistant Persona

Google's Create a persona page defines it plainly: "A persona is a design tool that helps you write conversations." Its advice is to "Narrow your list down to 4-6 key adjectives" and to "avoid specifying things like gender or age."

Those adjectives become a review checklist for every reply, whether writers or an LLM produce them.

Explicit and Implicit Confirmations

Google's Confirmations guideline separates two kinds. An explicit confirmation "Requires a response from the user to confirm," while an implicit one "Does not require a response from the user, although users might give one if they want to make a correction."

Use implicit confirmation "most of the time" and explicit confirmation "sparingly, only when the cost of misunderstanding the user is high." A separate rule covers irreversible steps: "Double-check with the user prior to performing an action that would be difficult to undo," with deleting user data and completing a transaction as Google's examples.

Error Recovery and the Re-Prompt Budget

Google's Errors guideline names the failure: "A No Match error occurs when the Action can't understand or interpret the user's response in context." Its first rule for the re-prompt is "Do not repeat the original prompt verbatim since it will sound robotic."

Google and Copilot Studio both cap re-prompts at about two:

  • Google - "End the conversation after 2 No Match collection attempts," and "Users should experience no more than 3 No Input or No Match errors in a row."
  • Microsoft Copilot Studio - the system fallback topic has "a condition to ask the user no more than twice to rephrase their question," and after two prompts the agent escalates to a live representative.

Microsoft's XO:10 guidance states the design rule behind both numbers: "If the AI fails to understand a user multiple times in a row, the fallback strategy should offer escalation through alternative solutions." So every re-prompt node needs an attempt counter and a route for when it runs out.

Progressive Disclosure in a Conversation

Jakob Nielsen's 2006 article on progressive disclosure describes an interface that "defers advanced or rarely used features to a secondary screen, making applications easier to learn." In a conversation the secondary screen is the next turn: answer the common need first, then offer more on request.

Google's guidance applies the same idea to turns: the persona "should not monopolize the conversation or try to present all options/questions in a single turn." Amazon's Alexa design guide sets the limit for voice: "Give only one to a few options at a time, depending on the length or complexity of the options."

Transparency About Being an AI

Under Article 50(1) of the EU AI Act, providers of AI systems "intended to interact directly with natural persons" must ensure that "the natural persons concerned are informed that they are interacting with an AI system." It does not apply where a reasonably well-informed, observant person would find it obvious from the context of use.

Article 50(1) has applied since 2 August 2026, the general date in Article 113 ("It shall apply from 2 August 2026."). For the design, that means the first turn says the user is talking to an AI assistant, in words a user cannot miss.

Conversation Design Principles Mapped to Failures and Checks

A principle earns its place in a design review when it names the failure it prevents and the check that proves it holds. The re-prompt count comes from Google's Errors guideline and the Copilot Studio fallback topic cited above.

PrincipleWhat breaks without itHow to check it
Cooperative principleLong, off-topic or unsupported replies.Review sample replies against the four maxims.
Turn-takingUsers answer the wrong question or wait.Every prompt ends with one question or a clear stop.
Context across turnsUsers repeat details when a new task starts.A multi-turn test where a late step needs an early detail.
ConfirmationsThe wrong booking is cancelled.Every irreversible action sits behind an explicit confirm step.
Error recoveryEndless re-prompts and no way to a person.Up to two re-prompts, then a handoff (Copilot Studio's default) or an exit (Google).
Progressive disclosureToo many options to hold in memory on voice.One to a few options per voice turn, as Amazon's guide asks.
AI transparencyUsers think they are talking to a person.The first turn of every entry point names the assistant as an AI.

The Conversational AI Design Process, Step by Step

The process moves from cheap artifacts to expensive ones, so most mistakes cost a rewrite instead of a release. Steps 4 and 6 matter most for agents built on a large language model.

Step 1: Pick the Key Use Cases and Map the Long Tail

Start from what users already ask for: collect the requests in existing chat logs, support tickets or call recordings and rank them by how often they occur. In a contact center, that ranking feeds the choice of which contact reasons to automate first, covered in the guide to contact center automation.

Google's guide to designing for the long tail defines key use cases as "the most important and most common conversational paths that users will take through your feature" and says to focus most of the effort there. The long tail is the edge cases, "highly uncommon paths" that still need an answer, even a handoff.

Key use cases get full sample dialogs; the long tail gets at least a defined fallback.

Step 2: Write Sample Dialogs and Role-Play Them

Per Google's Write sample dialogs guideline, sample dialogs give "a quick, low-fidelity sense of the 'sound-and-feel' of the interaction you're designing." The same page says "role-playing a dialog is the easiest way to create the initial draft and iterate on successive drafts."

Write unhappy versions too, such as a user who changes their mind mid-task.

Step 3: Turn Sample Dialogs Into Flows

"Once you have a few sample dialogs, you can abstract the flow and logic of the conversation," Google's sample-dialog page continues. Every node that asks a question needs its own error path. Errors "can happen at any time," and in the words of the Errors guideline, an Action "needs to have unique error handling for each turn in the conversation."

Keep the flow in a structured file as well as any diagram, so it can be linted.

Step 4: Write the System Prompt for an LLM Agent

For an agent built on a large language model, much of the flow moves into instructions. Anthropic's prompting best practices say that "Setting a role in the system prompt focuses Claude's behavior and tone for your use case," which is where the persona now lives.

General technique for writing those instructions is covered under prompt engineering. The section on LLM agents below lists what the prompt has to carry.

Step 5: Prototype With a Wizard of Oz Test

In a Wizard of Oz test, a person plays the system while test users believe they are using a computer. Dahlbäck, Jönsson and Ahrenberg's 1993 paper Wizard of Oz Studies: Why and How argued that "empirical studies of this unique communication situation" are required for user-friendly interactive systems. It named Wizard of Oz studies as one way to run them.

The paper warns that the person simulating the computer cannot "just sit and slowly write the answers on the screen" if subjects are to keep believing it is a machine, so prepare canned replies for the wizard.

Step 6: Test the Built Agent With Simulated Users

Once the agent runs, replace the human wizard with simulated users who follow the sample dialogs and the long tail. Write one simulated user per sample dialog and one per long-tail case, each with a goal and a pass criterion taken from the design.

Step 7: Iterate From Real Conversations

After launch, read transcripts where a fallback fired or a user asked for a person. Track the trend with chatbot metrics, then re-run the same tests after every prompt or flow change so a fix in one path does not break another.

Designing Conversations for LLM Agents vs Scripted Bots

A scripted bot is designed as nodes with fixed wording, an LLM agent as instructions plus a few fixed paths. How each interprets a user's message is a separate subject, covered in conversational AI vs a chatbot, with the model side in NLP vs LLM.

Design artifactScripted botLLM agent
What is designedA flow of nodes, each with routes, a fallback and a next step.Instructions in a system prompt, plus fixed paths for steps that must not vary.
Where the wording livesWritten in each node, so reviewers read every line users see.Generated from the role, tone rules and examples, so reviewers read transcripts.
Irreversible actionsA confirm node before the action node.Still a fixed path with explicit confirmation, kept out of free generation.
Fallback and escalationNo Match nodes with an attempt counter and a handoff node.A written escalation rule, backed by a handoff path the model can call.
Design reviewLint the flow, then walk the sample dialogs through it.Lint the fixed paths, then read simulated conversations against the instructions.

OpenAI's Realtime Prompting Guide, a Cookbook page now marked archived, shows how a voice agent's design becomes a structured prompt. It recommends these sections:

# Role & Objective
# Personality & Tone
# Context
# Reference Pronunciations
# Tools
# Instructions / Rules
# Conversation Flow
# Safety & Escalation

The guide's escalation example is "IF MORE THAN THREE FAILURES THEN ESCALATE", and it suggests a rule for varied phrasing: "Add a Variety rule to reduce robotic phrasing." The session on system prompt design for voice agents compares prompt styles, and grounding rules against invented answers belong in the same prompt, tested as described under chatbot hallucination.

How Voice Conversation Design Differs From Chat

Amazon's Alexa guide asks for responses "that can be read out by a human in one or two breaths," while a chat reply can be scanned and scrolled. Automated phone menus face the same limit, and the guide to IVR systems covers their menu design and what happens when a caller says nothing.

Design concernVoiceChat
Reply lengthOne or two breaths, per Amazon's guide.Longer replies can be scanned; keep the first answer short anyway.
ChoicesOne to a few spoken options per turn.Quick-reply buttons plus free text; NN/g found users needed both.
SilenceA No Input prompt, written as if the user did not hear the question.Earlier messages stay on screen to reread.
InterruptionsCallers talk over the agent: define when it stops and how it resumes.Users switch topic mid-task: define how to pause and return.
Reviewing wordingListen to each prompt in text-to-speech, as Google advises.Read prompts at the screen sizes users have.

The buttons finding comes from the Nielsen Norman Group study: "Both of these input mechanisms were important and they should be both present." Microsoft's guidance covers the interruption row: "An effective conversation handles interruptions and deviations gracefully." On a call, the stop-and-resume behavior is checked with barge-in testing, and every voice turn also depends on the transcription layer explained in what is ASR.

Note

Note: A voice design is easiest to judge with callers who do not sound alike. TestMu AI Agent Testing offers voice profiles that vary accent and speech speed, and the voice agent docs describe how a voice test run is configured.

Conversational AI Design Best Practices

Each practice below can be checked in a design review or in a test run.

  • Start narrow - Nielsen Norman Group's advice is "Don't be overly ambitious: create bots for simple tasks." A well-scoped HR chatbot shows the idea: it answers leave, benefits and pay questions from the current handbook and hands sensitive cases to HR staff.
  • Ask a clarifying question - instead of "I didn't understand that," Microsoft suggests a clarifying question such as "Could you provide more details about what you need?"
  • Split complex requests - "For more complex user inputs, break down the conversation into manageable steps," per Microsoft's XO:10 guidance.
  • Announce the switch to action - "When the AI shifts from gathering information to carrying out an action, it should clearly communicate this transition to the user."
  • Offer a human early - NN/g's recommendation reads "Be honest about not understanding. Offer an escape hatch in the form of a real human, a phone number, or a link to a different interaction channel." Approval steps for agent actions with real effects are a separate pattern, covered under human in the loop.
  • Keep voice moving - Amazon's guide asks that conversations "move quickly and accomplish the task in as few steps as is necessary."

Common Conversation Design Mistakes

The first three come from the 2018 Nielsen Norman Group study, the next two from Microsoft's and Google's guidance, and the last from the lint below.

  • Repeating the same answer - "Users were generally annoyed when the bot repeated the same answers over and over again."
  • Guessing instead of admitting a miss - "Recognizing that a question was not understood was disappointing, but better than a blatantly wrong answer."
  • Forgetting what the user said - bots "were also generally not able to take advantage of previously entered information when a new task was started."
  • Ending the conversation abruptly - Microsoft's rule is "Don't design the AI to end the conversation abruptly if it encounters something that it doesn't understand."
  • Blaming the user's microphone - Google warns: "Don't say "I didn't hear you", because it's likely the user hasn't said anything."
  • Leaving structural gaps - dead ends, questions with no fallback, fallbacks that never reach a person, loops with no limit and actions with no confirm step, as the lint below shows.

Linting a Dialog Design for Dead Ends and Loops

Structural defects show up in the design file itself. A stdlib Python linter, run with Python 3.14 on 2026-12-04, read a 12-node JSON design for a fictional clinic appointment assistant that books, cancels and gives opening hours. The design had defects placed in it for the lint to find.

In these two nodes, the retry sends a second miss back to the first question and the cancellation runs unconfirmed:

"ask_intent_retry": {
  "type": "input",
  "text": "You can say book, cancel or hours.",
  "routes": {"book": "ask_date",
             "cancel": "ask_booking_id",
             "hours": "say_hours"},
  "no_match": "ask_intent"
},
"cancel_booking": {
  "type": "action",
  "irreversible": true,
  "text": "Cancelling your appointment.",
  "next": "goodbye"
}

The loop rule follows each node's no_match edge and reports a cycle when no node on it sets max_attempts:

def unlimited_loops(nodes):
    """Cycles in the no_match graph with no
    max_attempts."""
    loops = []
    for nid, node in nodes.items():
        path, cur = [nid], node.get("no_match")
        while (cur and cur in nodes
               and cur not in path):
            path.append(cur)
            cur = nodes[cur].get("no_match")
        if cur == nid:
            if not any("max_attempts" in nodes[p]
                       for p in path):
                cycle = sorted(path)
                if cycle not in loops:
                    loops.append(cycle)
    return loops

Running the linter on the design printed this:

$ python flow_lint.py
flow_lint: clinic_design.json
nodes: 12  input/confirm nodes: 6
----------------------------------------------
NO-HUMAN     ask_intent
             fallback never reaches a person
NO-HUMAN     ask_intent_retry
             fallback never reaches a person
DEAD-END     say_hours
             user is stranded after this
NO-FALLBACK  ask_date
             no path when input is not understood
LOOP         ask_intent <-> ask_intent_retry
             re-prompts forever, no limit
UNCONFIRMED  cancel_booking
             reached from ask_booking_id, reprompt_id
----------------------------------------------
findings: 6
  DEAD-END     1
  LOOP         1
  NO-FALLBACK  1
  NO-HUMAN     2
  UNCONFIRMED  1

The booking-number retry also loops on itself but passed, because it sets max_attempts to 2 and an on_exhausted route to the receptionist handoff. The booking path passed too: its slot is reserved only after a confirm node.

Flow Lint Rules and the Principle Behind Each

  • DEAD-END - a node that is neither an end nor a handoff and has no route, next step, no_match or on_exhausted edge, against Microsoft's no-abrupt-endings rule. Fix: the opening-hours answer returns to the main question.
  • NO-FALLBACK - an input or confirm node with no no_match edge, so a reply the assistant does not understand has nowhere to go, against Google's per-turn error handling. Fix: a misunderstood date routes to the handoff.
  • NO-HUMAN - following only no_match and on_exhausted edges from a question never reaches a handoff node, against NN/g's advice to offer a real human. Fixed with the loop below.
  • LOOP - re-prompts with no attempt limit, against the re-prompt budget. Fix: max_attempts of 2 on the retry, then the handoff.
  • UNCONFIRMED - an action marked irreversible that any node other than a confirm node leads into, against Google's confirmation rule. Fix: a new node asks "Cancel booking 482913 on Tuesday at 10?" first.

The fixed design has 13 nodes, one more for the new confirmation, and the second run came back clean, with the script exiting with code 0:

$ python flow_lint.py clinic_design_fixed.json
flow_lint: clinic_design_fixed.json
nodes: 13  input/confirm nodes: 7
----------------------------------------------
----------------------------------------------
findings: 0

Limits of a Flow Lint

The lint reads structure only: it cannot judge wording, tone or persona, and it trusts the route labels, so it cannot tell whether a real reply would reach the "cancel" route.

For an LLM agent it checks only the scripted spine, the confirmations and handoffs; whether the agent follows its instructions live is a question for testing.

How to Test a Conversation Design

A design review shows the plan is complete, and testing shows the built agent keeps to it. The guide to conversational AI testing covers what to test across channels, and the list of chatbot test cases includes fallback and multi-turn cases that map to the principles above.

To cover the long tail, AI agent simulation explains how simulated users with set goals and personas hold whole conversations with the agent. For voice designs, the ordered plan for how to test a voice agent adds the call-level checks.

Test Your Conversation Design With Agent Testing

The last step of the design process checks its assumptions against the running agent. Agent Testing from TestMu AI uses autonomous testing agents to evaluate AI agents that reach people through chat, voice, phone, video or images. No access request is needed to create a chat agent, a voice agent, a video agent or an image analyzer agent.

The design documents become the test input. Upload the design brief and sample dialogs, or write the agent prompt, and chat scenarios are generated from them, with the count scaling to the documents; the chat agent docs walk through the generation settings. Of the five scenario types, Happy Path runs the key use cases the flows were drawn for, Negative and Edge Case scenarios reach into the long tail, with Red Team and Integration as the other two.

Personas stress the design: 10 pre-built persona types shape how each scenario is played, and a custom persona from your user research is defined by its emotional state, subject expertise, vocabulary level, communication style and interaction patterns. Voice runs play scenarios in voice profiles that vary accent and speech speed.

Each chat and voice conversation is scored on 9 metrics, among them Conversation Flow, which scores coherence across turns, Context Awareness, which scores how well the agent keeps the conversation's context, and Hallucination Detection. A design rule such as "confirm before cancelling" becomes a custom pass or fail criterion.

Phone calls are graded on 40+ quality checks, among them Turn brevity, which counts the words in each agent turn, and Response loop, which catches the agent repeating a turn almost word for word, the re-prompt habit Google's Errors guideline rules out. Phone caller and IVR agents stay locked, with a Request access button, until they are enabled for the organization, and the pricing page places them on the Enterprise plan.

Every chat, voice, phone and image run rates production readiness on a three-level scale that feeds the next design round, and even the top level is no guarantee of zero failures in production. Run the same scenarios again after a model or prompt update. A 7-day free trial gives 10,000 credits, enough for around 180 test conversations, on chat and voice agents, and the pricing page has the details.

Where Should You Start With Conversational AI Design?

Start with the error paths: for every question your assistant asks, write down what happens on the first miss, each re-prompt and the handoff after the second re-prompt, using the retry limit above. Then lint the flow file and check that every irreversible action sits behind an explicit yes.

When the agent runs, put simulated users through the long tail on a conversational AI testing platform, and use the features and metrics docs to choose the scores that match your design rules.

To run your first test, start free, or
for a full walkthrough of the product.

Was this helpful?

Authors

Chaitanya Sharma

Chaitanya Sharma

Author · 05 hubs

Chaitanya Sharma is an AI Product Manager at TestMu AI, where he builds agentic AI capabilities focused on computer vision and multi-modality, moving testing beyond static script execution toward autonomous, agent-driven workflows. Before TestMu AI he shipped 135+ features at Sprinklr for a no-code community and website builder used by Fortune 500 enterprises including Dell, Samsung, and Polestar. At Policybazaar he led the zero-to-one launch of a digital lending and insurance marketplace embedded in Bahrain's dominant payments app, building a risk-intelligence engine that compressed loan-approval times by 80%. He explored machine learning and NLP through research at the University of Cambridge, and holds a B.Tech from Delhi Technological University.

Sai Krishna

Sai Krishna

Reviewer

Sai Krishna is Director of Engineering at TestMu AI, where he leads agentic AI for quality engineering, building AI agents that autonomously drive mobile and conversational test automation. His current focus is Agent Testing and Model Context Protocol (MCP) support for mobile. He is a core contributor and member of the Appium open-source project and the creator of AppiumTestDistribution and appium-device-farm. With over 14 years of experience including more than 9 years at Thoughtworks as a Principal Consultant, he holds a BSc in Electronics and speaks regularly at TestMu and Appium Conf on Appium, mobile automation, and agentic AI in testing.

Conversational AI Design FAQs

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests