Skip to main content
Waaru
WhatsApp AI agents

How to test a WhatsApp AI agent before launch

Tanay PatelAI and full-stack engineer
The short answer

Test a WhatsApp AI agent by defining the expected customer outcome, sending a representative conversation, and checking both the reply and the resulting business record. Include missing information, failed actions and human takeover. A convincing message is not proof that a booking, update or handoff actually happened.

Start with the tasks you want the agent to handle. You can keep the test sheet in a spreadsheet; you do not need a dedicated evaluation product to write down an expected result. The examples below are illustrative and should be adapted to the actions your platform supports.

What counts as a successful test?

Check the outcome as well as the words. A good answer explains what is known and stays within the authority you gave the agent. If the agent claims to have changed something, the system that owns that record must confirm it.

Anthropic’s guide to evaluating agents distinguishes a conversation transcript from the actual end state. Apply that distinction to your own workflow: a sent acknowledgement, a received request and a confirmed reservation are separate observations.

What belongs in your AI-agent test sheet?

Use a separate row for each scenario. Give the person checking the result enough information to reproduce it. Record failures rather than rewriting the expected outcome to fit the answer.

  • Scenario: the customer task and the information supplied at the start.
  • Approved source: the policy or business record that establishes the answer.
  • Permitted action: what the agent may read or change, and what requires a person.
  • Expected outcome: the reply, record state or handoff that would satisfy the task.
  • Actual result: what the customer saw and what the owning system recorded.
  • Evidence and owner: the test reference, configuration version and person responsible for fixing a failure.

Which conversations should you try?

Begin with an ordinary successful request, then change one condition at a time. Use test records and a controlled environment for actions that could create a booking, charge a customer or send a message. Do not perform a real transaction just to make a demonstration look complete.

  • Missing detail: leave out a date or order reference. Expect a focused clarification.
  • Changed request: revise a detail midway through the chat. Check which value reaches the final action.
  • Unavailable source: make the lookup fail. Expect an honest limit, not a confident guess.
  • Repeated request: send the same action request again. Check for unintended duplicate writes.
  • Unsupported authority: request an exception the agent cannot approve. Expect the appropriate human path.
  • Human takeover: ask for a person and verify that someone receives the conversation and the bot stops competing with them.

How would you test a hotel enquiry?

Illustrative request: “Do you have a room for our family next Friday?”

The agent should clarify the actual dates and guest requirements before treating the request as complete. If an authorised availability lookup exists, compare its result with the answer. If it does not, expect the enquiry to reach reservations.

Receiving an enquiry does not confirm a booking. If the agent says a reservation exists, check the hotel’s reservation record. Also try a sold-out date, a changed departure date and a failed lookup. The hotel WhatsApp guide explains the operational journey that these tests should support.

What changes for ecommerce or appointment requests?

For an order-status question, compare the reply with the correct order record. For an order change, verify both permission and the final state. A lookup permission should not be treated as permission to cancel an order or issue a refund. Use the ecommerce guide to choose realistic order exceptions.

For clinic appointments, keep the test administrative: dates, location, scheduling and a path to staff. Do not turn a scheduling test into diagnosis or medical advice. The clinic guide keeps that boundary explicit.

What should you do when a test fails?

First identify whether the problem is in the information, the decision, the tool result or the receiving process. Correct an outdated answer in its source. Fix a permission or routing problem where the action is configured. A longer prompt cannot make an unavailable record current.

Use the knowledge-preparation checklist for source failures and the handoff guide for ownership failures. Re-run the failed case and related cases after the correction.

When should you repeat the checks?

Repeat relevant tests after changing instructions, business information, models, tools or permissions. Save the previous results so you can identify a regression. Some model responses vary, so a single successful attempt should not be treated as proof of consistent behaviour.

Passing your test sheet is useful evidence for the tasks it covers, not a guarantee that every future conversation will be correct. After launch, review failures and add representative new cases. The automation measurement guide helps separate useful customer outcomes from activity counts.

FAQ

Frequently asked questions.

Do I need automated testing software to begin?

No. A manual test sheet with explicit expected outcomes is a useful starting point. Record the actual reply and the owning system’s result so another teammate can check the same case.

Does a correct reply prove that an AI action succeeded?

No. Check the authoritative business record or action result. An agent can describe a successful action even when the underlying request failed.

Can these checks guarantee that an AI agent will never make a mistake?

No. They provide evidence for the scenarios tested. Continue reviewing real failures and repeat relevant cases after configuration or source changes.

Research notes

Evidence checked for this article.

  • Agent evaluation distinguishes the conversation transcript from the actual outcome and uses explicit success criteria.

    Anthropic, Demystifying evals for AI agents · Accessed 6 September 2026

About the author

Tanay Patel

AI and full-stack engineer

Tanay builds production AI systems, agent workflows, and the full-stack software around them. His work focuses on reliable state, recovery, and human handoff.

Read Tanay's engineering notes

Put this into practice on your own number.

The platform is free. AI features are paid separately.