# 10 · Test a chatbot with a tester number and Clear chat

**Purpose:** try your chatbot or AI agent from your own phone as many times as you like, and wipe the test chat so the next message starts fresh.

**Watch first (2:58, Malay narration):** [Test a chatbot with a tester number and Clear chat](https://v3.wsapme.com/guide-media/video/10-testing-chatbots-malay.mp4). Parts 1 to 3: ticking **Tester number**, the **Clear chat (testing)** dialog (cancelled, nothing is cleared) and the workflow simulator, which matches Part 2 · Test your chatbot.

## Before you start

- A connected number and a workflow or AI agent to test (see [04 · Chatbot and workflows](https://v3.wsapme.com/guides/chatbot-workflows.md) and [05 · AI agent and knowledge](https://v3.wsapme.com/guides/ai-agent-and-knowledge.md)).
- A phone that is **not a customer**, for example your second phone.

> The screenshots use a demo workspace with Demo mode on. **Clear chat was never confirmed** in this guide: the dialog is shown and cancelled. The tester setting was switched on for the screenshots and switched off again.

## Why a tester number?

A chatbot remembers: a workflow does not start again for the same contact within its cooldown, an "if first message" flow only fires once, and the AI agent remembers the customer. **Clear chat** removes Wsapme's copy of the chat so that the next message behaves like the very first one. It only works for contacts you have marked as testers, so a real customer cannot be cleared by mistake.

## Part 1 · Mark the contact as a tester

1. From your test phone, send one message to your connected number so a contact exists.
2. Open **Inbox** and click that conversation.
3. In the contact details on the right, find **Testing** and tick **Tester number**. It says "For testing the chatbot. Lets owners and admins clear this chat to start fresh." Only owners and admins see the **Testing** section.

   ![The Tester number checkbox](https://v3.wsapme.com/guide-media/img/testing-chatbots/01-tester-checkbox.webp)

4. A message says **Marked as a tester number.** and the chat now shows a **Tester** badge under the contact name.

   ![The Tester badge](https://v3.wsapme.com/guide-media/img/testing-chatbots/02-tester-badge.webp)

## Part 2 · Test your chatbot

Marking a contact as a tester does not change how your chatbot or AI agent answers it: they treat it like any other contact. The tester mark only unlocks **Clear chat**, and the clear is what gives you a fresh start.

Send messages from your test phone and check the answers. The simulator in the workflow editor (guide 04) is also safe for quick checks, but it does not use a real chat.

To try again without deleting anything, send **#bot reset** from your test phone (or from your business phone or the inbox in that chat). The running workflow stops and the next message counts as the first one again, while the messages stay. To limit the lead's keywords to your testers, choose **Tester contacts only** in **Inbox → Settings → Chatbot keywords**. More in [25 · Bots and AI inside a chat](https://v3.wsapme.com/guides/bots-and-ai-inside-a-chat.md), Part 9.

## Part 3 · Clear the chat and start again

1. In the chat, click the small arrow next to **Close**.
2. Click **Clear chat (testing)**. (The same button is also under **Testing** in the contact details on the right.)

   ![The Clear chat (testing) menu item](https://v3.wsapme.com/guide-media/img/testing-chatbots/03-clear-chat-menu.webp)

3. Read **Clear chat for testing?**. It lists what **will be removed**, with live counts: messages, conversations (with internal notes, labels and scheduled replies), workflow runs, follow-up, drip or pending broadcast items, AI items (chat state, memory notes, insights) and ad attributions. The contact, its name, number, tags, custom fields and leads stay, and so does broadcast history.
4. Optional: tick **Also delete the contact** so the next message creates a brand new contact.
5. Click the red **Clear chat** button. Or click **Cancel** to leave everything as it is.

   ![The Clear chat dialog](https://v3.wsapme.com/guide-media/img/testing-chatbots/04-clear-chat-confirm.webp)

6. Send the next message from your test phone. It is treated as the first message again.

This clears **Wsapme's copy only**: the chat on the phone stays. Each clear is recorded in the audit log.

> **Not executed:** pressing **Clear chat**, and sending the test messages.

## For developers

A key with the `chats:clear` permission can do the same from a script (`POST /api/v1/chats/clear`), so you can reset your tester before an automated test. See [07 · API, webhooks and AI assistants](https://v3.wsapme.com/guides/api-webhooks-mcp.md).

## Common problems

| Problem | What to do |
|---|---|
| **Clear chat (testing)** is not in the menu | The contact is not marked as a tester. Tick **Tester number** first. |
| The chatbot does not react a second time | A cooldown or the "first message" rule applies. Send **#bot reset**, or clear the chat, then send again. |
| I cleared a chat and want it back | It cannot be undone. Only Wsapme's copy was removed; the chat is still on the phone. |

## Related

- [04 · Chatbot and workflows](https://v3.wsapme.com/guides/chatbot-workflows.md)
- [05 · AI agent and knowledge](https://v3.wsapme.com/guides/ai-agent-and-knowledge.md)
- [07 · API, webhooks and AI assistants](https://v3.wsapme.com/guides/api-webhooks-mcp.md)
