# 16 · AI agent in depth: products, orders and bookings, testimonials, tools, then review, tests and quality

**Purpose:** let the AI agent sell for you (quote from your product list, take orders and bookings, send matching testimonials, look things up in your own system), then check its answers and make them better (tests, review, quality, usage).

## Before you start

- An AI agent that is already set up: business details, knowledge base and a try in the Playground. See [05 · AI agent and knowledge](https://v3.wsapme.com/guides/ai-agent-and-knowledge.md).
- AI credits. Playground replies and test runs use credits like real replies.
- You are an owner or admin of the workspace. Other team members cannot change the agent, and they do not see the **Tools**, **Sales** and **Usage** tabs.

**Watch first (4:11, Malay narration):** [AI agent: sell, check and improve](https://v3.wsapme.com/guide-media/video/16-ai-agent-selling-and-quality-malay.mp4). A home bakery sets a product's stock, looks at the order form, takes an order in the Playground (the agent then hands the chat to the team, as the order form asks), tags a testimonial with a topic, runs the agent tests and walks through Review, Quality and Usage. The agent is not switched on and nothing is sent to a customer.

> The agent in this guide was **never switched on**. Screenshots use a demo workspace with made-up data and Demo mode on. Screens that need real customer chats (orders, review queue, activity, quality and usage figures) are shown empty and explained from how the product works; those parts are marked *(from the documentation, not captured)*.

The AI Agent page has these tabs: **Settings**, **Knowledge base**, **Products**, **Testimonials**, **Tools**, **Playground**, **Tests**, **Orders & bookings**, **Sales**, **Review**, **Quality**, **Activity**, **Credits** and **Usage**. On a small screen, scroll the row of tabs sideways to reach the last ones.

## Half 1 · Sell

## Part 1 · Products

The agent quotes prices, stock and links only from this list, so it cannot invent a price.

1. In the sidebar, click **AI Agent**, then the **Products** tab.
2. Click **Add product**. Type the **Name** and **Price (RM)**. Fill **Stock** only if you count stock; leave it empty and the product shows as **Available**. **SKU**, **Description**, **Link (shop page)** and a **Photo** are optional. The agent can send the photo when a customer asks for it.

   Your AI assistant (connector) can now add a photo too, from a picture link or a picture you attach in the chat. Wsapme keeps its own copy, the same as a photo you upload here.
3. Keep **The agent may offer this product** ticked and click **Save**. Untick it later to hide a product from the agent without deleting it (it then shows **Hidden**).
4. To change a product, click the pencil icon on its row. The same form opens as **Edit product**. A product with stock shows, for example, **12 in stock**; at zero it shows **Out of stock**.

   ![Edit product with Stock set to 12](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/02-product-dialog.webp)

5. To add many products at once, click **Export CSV** (or **CSV template** when the list is empty) to get the columns (name, price, stock, sku, link, image_url, description), fill the file and click **Import CSV**. Rows that could not be read are listed under **Some rows were skipped**.

   ![The Products tab with the order options](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/01-products.webp)

Above the list are the options that decide what happens when the agent takes an order:

| Option | What it does |
|---|---|
| **Take stock off when the agent takes an order** | Only for products with a stock number. Cancelling the order in **Orders & bookings** puts the stock back. |
| **Add a payment link to order summaries** | The customer pays the exact total through your own payment gateway and the order shows as paid. You can tick it only after you connect Stripe here or a payment gateway (CHIP, Billplz or BayarCash) in **Settings → Payments** (see [20 · Sales pages, bookings, payments and domains](https://v3.wsapme.com/guides/sales-pages-bookings-payments-and-domains.md) for that form). Once it is on, **Remind customers who haven't paid** can send one WhatsApp reminder with the link after 6, 12 or 24 hours. *(from the documentation, not captured: no gateway is connected in the demo workspace)* |
| **Add delivery charges to orders** | Set the **Delivery fee (RM)**, a different fee for Sabah, Sarawak and Labuan if you want one, and **Free from order total (RM)**, then click **Save delivery charges**. The agent asks for the address with the postcode and adds the charge to the total. Pickup is free. An address it cannot place shows "delivery to be confirmed" and gets no payment link. *(the fee fields were not opened in this guide)* |
| **Read payment receipts customers send** | When a customer with an unpaid order sends a transfer slip, the agent reads the amount and the order shows as "payment claimed" for you to check. It never marks an order paid by itself. Needs an AI model that can see images. |

**Connect Stripe** and **Connect your shop** (Shopify or WooCommerce, synced every hour) are further down the page. They ask for keys from those services and were not used in this guide. For WooCommerce, see [17 · WooCommerce](https://v3.wsapme.com/guides/woocommerce.md).

### Selling to other countries (Markets)

If you also sell to customers in Singapore, Brunei or another country, give them their own prices instead of ringgit. Nothing changes for your Malaysian customers. *(from the documentation, not captured)*

1. Go to **Settings → Markets** and click **Add country**. Choose the country; its currency is filled in (you can pick another one, for example SGD for Brunei).
2. Optional: tick **Add a delivery charge to orders** and set the fee and **Free from** amount in that currency. Pickup is always free.
3. Optional: in **Price notes for the AI agent**, write your packages for that country, for example `A: SGD 59 = 3 bottles`. Prices you wrote in RM in the agent's business description or Instructions are treated as Malaysian prices only.
4. Back on **AI Agent → Products**, edit each product and fill **Prices in other countries**. Leave a box empty if you don't sell that product there: the agent then says it is not available in that country. With many products, use **Export CSV**: it has one column per country (for example `price_sg`), fill it and **Import CSV**.
5. Try it: in the **Playground**, choose **Customer in: Singapore (SGD)** above the chat and ask for a price.

How the agent decides a customer's country:

- From their WhatsApp number (+65 Singapore, +673 Brunei and so on). A number from a country you did not add gets your Malaysian prices.
- If the customer says they are in another of your countries, or gives a delivery address there, the agent uses that country's prices, and the order is priced in that currency. Their next order starts with the same country.
- Each order has one currency. **Orders & bookings** shows it (for example `SGD 68.00`), and **Sales** adds up ringgit orders and lists other currencies apart.

How customers in another country pay: edit the country in **Settings → Markets** and choose **How customers pay**.

- **Bank transfer, then they send the receipt** (the default). Fill **Bank details for this country** (for example your PayNow number) and the agent gives them to these customers. With **Read payment receipts customers send** on, the agent reads the receipt for you to confirm.
- **Stripe payment link in SGD** (or that country's currency). The order summary gets a Stripe link in that currency. It needs Stripe connected and **Add a payment link to order summaries** ticked on **AI Agent → Products**. Stripe must accept that currency on your account, so try one test order first. CHIP, Billplz and BayarCash take ringgit only.

Under **Customers from other countries** choose what happens with a customer from a country that is not in your list: sell to them at Malaysian prices, or say you don't sell there yet and pass the chat to your team. To stop selling in a country for a while, edit it and untick **Selling here**: its customers then get Malaysian prices again.

## Part 2 · How the agent takes an order or a booking

1. Click **Settings** and scroll to **Orders & bookings**. Each box is a form the agent fills in by chatting. Click **Order form** or **Booking form** to add a ready-made one, or **Custom form** to start empty. You can have up to 5 forms.
2. A form has a **Name**, **When to use it** (for example "The customer wants to buy or order products.") and the **Details to collect**. The Order form asks for **Items and quantities**, **Name for the order**, **Delivery or pickup**, **Date needed** and **Notes**. Tick **Required** for details the agent must get, and use **Add detail** for your own.
3. Under the details: **On** switches the form on, **Email & WhatsApp owners and admins** tells you about each new order, and **Hand the chat to the team afterwards** pauses the agent in that chat once the order is saved. The customer may then get your **Message when handing over** (under **Handing over to your team** further down **Settings**). It is in English by default ("Sure! A member of our team will get back to you shortly."), so change it if your customers write in Malay.

   ![The Order form in the settings](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/03-order-forms.webp)

4. **Sales page** (shown when you have sales pages): pick a published page with an order form, then choose **How customers order**:
   - **Chat only** (the default): the agent asks the details in the chat, as before.
   - **Chat or link**: the agent offers both in one short line ("order here in the chat, or fill in the order page").
   - **Link only**: the agent sends the page instead of asking. If the customer would rather order in the chat, it asks there.

   A page that is not published is never sent (a warning shows under the picker), and a page set to one country under **Country and currency** is not sent to customers from another country: they order in the chat. *(not captured)*
5. **Booking times from** decides how bookings get their time. **Customers say a date and time (no slots)** just writes down what the customer says. If you have a sales page with a booking form, choose its booking slots instead: the agent then offers only free times, there are no double bookings, and you can tick the option to ask for the page's deposit, which adds a payment link to the confirmation. *(booking slots and deposits: from the documentation, not captured)*
6. Click **Save settings**. *Save was not clicked in this guide; the demo workspace already had the Order form.*

In a chat, the agent collects the details in a natural way, shows a summary and saves the order only after the customer confirms. Details the customer already gave are filled in, not asked again: the **WhatsApp number** they are chatting from goes on the phone line, and a **location pin** they shared is used as the address (the agent asks them to confirm it and add a house or unit number). In the Playground the agent uses the sample number 0123456789. When the items are in your product list, Wsapme works out the prices, the delivery charge and the total itself: the summary the customer confirms already shows the exact total, and after they confirm they get the same order summary.

**Orders sent on your sales page count too.** When the agent sends one of your sales pages (with **Sales page** above, or a `{{page:…}}` tag in your Instructions), Wsapme adds a short code to the link (`?ai=…`). When the customer sends the page's form, the order is saved as the agent's order on that chat, even if a relative fills it in with their own phone number. Without the code, a form sent from the same WhatsApp number the agent chatted with in the last 7 days counts too. It counts as an order when an answer has a price (for example `Pakej B - 2 botol RM130`) or names a product from your list, or when the page is an order form's **Sales page**. Bookings and plain enquiry forms are not orders. The order shows **Sales page** on **Orders & bookings**, is in **Sales**, the weekly digest and the contact's **Orders** panel, a transfer slip the customer sends in the chat is read for it, and AI follow-ups stop once it is in. If the agent also confirms the same order in the chat within 3 hours, it stays one order.

### Repeat orders from the customer's past orders

For after-sale chats ("nak order lagi", "sama macam dulu"), the agent can use the customer's earlier orders.

**Watch first (3:04, Malay narration):** [Repeat orders from past orders](https://v3.wsapme.com/guide-media/video/16-ai-agent-repeat-orders-malay.mp4). The bakery ticks the two settings, opens a customer's **Orders** panel in the Inbox and goes through a repeat order from a real AI test run: the agent offers the last order, the customer changes it, the agent shows a summary and saves the order only after the customer confirms. The settings are not saved, the agent is not switched on and nothing is sent.

1. In **Settings**, tick **Use the customer's past orders** (under **Remember customers**). The agent then sees this customer's last 3 orders from your connected shops (WooCommerce, Bizapp, TikTok Shop, OnPay) and the orders it took itself: items, total, the name and address on the order, how it was paid, the status, and the courier and tracking number. It answers questions about them ("dah pos ke?", "hari tu saya ambil yang mana?") and can offer a repeat. It is off by default.

   ![Use the customer's past orders, under Remember customers](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/11-use-past-orders.webp)

2. On your order form, tick **Offer the last order as default** (shown on forms with an **Items and quantities** detail). When the customer has ordered before, the agent first shows the last order (items, name, address and payment) and asks whether they want the same again or want to change something. The customer can change the set, the quantity, the address or the payment. The agent then shows a summary with the total and saves the order only after the customer confirms. Ticking this also gives the agent the past orders, even without step 1.

   ![Offer the last order as default, on the Order form](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/12-offer-last-order.webp)

3. Click **Save settings**.

**See what the agent sees:** open the customer's chat in **Inbox**. The **Orders** panel on the right lists the same orders the agent reads (here two earlier cake orders: one delivered, one shipped with J&T Express). If an order is not in this panel, the agent does not know about it either.

![The Orders panel of a customer with two earlier orders](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/13-orders-panel.webp)

Good to know:

- The agent sees only the orders of the customer it is chatting with: orders linked to that contact, or orders with the same WhatsApp number that are not linked to another contact. It never sees other customers' orders.
- A repeat order is priced from your product list today, not from the old total. Items whose name matches a product on **Products** are priced by Wsapme. If an item is not in your product list (for example a Bizapp package name), the agent asks which product the customer means.
- **Hand the chat to the team afterwards** and the message to owners and admins still happen only once the confirmed order is saved, never while the agent is still collecting details. The agent is also told not to hand a chat over just because the customer wants to order again when a form can take it.
- Bizapp orders show how they are paid (**Cash on delivery (courier)**, **Paid online / bank transfer (postage)** or **Self collect**) for orders Wsapme receives from now on. Older Bizapp orders have no payment method until Bizapp sends them again.
- To try a repeat order before you switch the agent on, open **Playground**, click **Test as contact** above the chat and pick a customer who has ordered before (search by name or phone). The agent then sees that customer's past orders, as in a real chat with them. Nothing is saved and nothing is sent to that customer: a confirmed order still only shows as **Would save order:**. Click **×** next to the name to test as a new customer again. AI assistants can do the same with the `run_ai_tests` tool and a `contact_id`.

  ![Playground, testing as a customer who ordered before: the agent offers the last order](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/14-playground-offer.webp)

  In the example the customer keeps the brownies, takes one cake instead of two and gives the date. The agent shows the new summary and asks if it is right; only after "Ok betul, confirm" does the Playground show **Would save order:** and **Would send the customer:** with the total from today's prices (RM123.00). The summary before the confirmation already shows that same total. The date is never copied from the last order.

  ![The confirmed repeat order in the Playground: Would save order and the total](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/15-playground-saved.webp)

- Developers and AI assistants can change both settings through the API and MCP too: `use_past_orders` and `forms[].offer_last_order` in `update_ai_agent` (see [07 · API, webhooks and MCP](https://v3.wsapme.com/guides/api-webhooks-mcp.md)).

**Try it without sending anything:**

1. Click **Playground** and type an order the way a customer would, for example `Hai, nak order 2 Chocolate Fudge Cake (1 kg). Nama Aina, pickup hari Jumaat ni pukul 3 petang.`
2. Answer the agent's questions and confirm the summary.

   ![An order taken in the Playground](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/04-playground-order.webp)

**What you should see:** before you confirm, the agent's summary lists the items with their prices and the total, worked out by Wsapme from your product list (not by the AI). After you confirm, under the agent's last reply, a box **Would save order:** shows the order the way your team will see it: one line per item (quantity × product, with its price), the delivery charge, the total, and the other details by name (**Name for the order**, **Delivery or pickup** and so on). **Show raw** in that box shows the raw data the agent wrote, for developers. Below it, **Would send the customer:** has the order summary the customer gets (in the example, 2 × RM85.00 = RM170.00). If the form has **Hand the chat to the team afterwards** ticked, the reply can also be your handover message, marked **Would hand over to your team**; the picture above is a run without it. Replies differ a little from run to run. In the Playground nothing is saved and nothing is sent. If the agent says it has to check with the team instead, a detail did not fit your knowledge base (for example a pickup on a day you are closed).

### Tell your team in a WhatsApp group

You can post every order the agent takes, and every time it hands a chat over, into your team's own WhatsApp group (for example "Admin Orders"). It is a one-way notice: the AI never replies in the group and never reads it. *(from the documentation, not captured)*

**Before you start:** the number that posts must be in the group. Groups are a WhatsApp Web feature, so only a **QR number**, or a **Hybrid number with its QR side paired**, can post in them. An official (Cloud API) number cannot. A Hybrid number whose QR side is not paired yet, or was logged out by WhatsApp ("Scan QR again"), cannot post until you pair it in **Devices**.

**Orders:**

1. In **Settings → Orders & bookings**, on the form, tick **Notify a WhatsApp group**.
2. **Post from:** keep **The chat's own number** (the number the customer is chatting with), or choose one number for every notice.
3. **WhatsApp group:** choose the group from the list. Click the refresh button after you add the number to a new group.
4. Tick **Only repeat orders** if you only want orders from customers who ordered before (for an after-sale agent, every order is a repeat order).
5. Click **Save settings**.

The notice has the form's details (items, name, address, payment method and the rest), the customer's phone, the total, a line saying **Repeat order (2nd order from this customer)** when they ordered before, and a link to the chat. It is posted once per order. **Email & WhatsApp owners and admins** still works as before, next to it.

**Handovers:**

1. In **Settings → Handing over to your team**, tick **Notify a WhatsApp group when the AI hands over**.
2. Choose **Post from** and the **WhatsApp group** as above.
3. Choose which handovers to post: **Customer asks for a person** (a handoff keyword), **AI hands over** (a complaint, a health condition from your list, after an order, or a question it could not answer), **Daily reply limit reached** and **24-hour window closed**.
4. Click **Save settings**.

The notice says why (for example `Customer asked for a person (wrote "admin")`, `Health condition the team handles: kanser` or `Complaint or a problem with an order`), who the customer is, their last message and a link to the chat. One chat is posted at most once every 30 minutes. When the agent hands over right after an order, the order notice already told the group, so no second notice is posted.

**When a notice can't be posted:** a yellow box under the picker says why (for example the Hybrid number's QR side is not paired). Notices are never dropped silently: **Recent group notices** under **Handing over to your team** lists each one as posted or failed with the reason, with **Retry**, and a note is left in the customer's chat in the inbox.

You can also post to a group from a workflow, with the step **Send to WhatsApp group** (see [34 · Workflow steps reference](https://v3.wsapme.com/guides/workflow-steps-reference.md)).

## Part 3 · Orders & bookings and the Sales dashboard

1. Click **Orders & bookings**. Every order or booking a customer confirmed is listed here with its details, the customer and an **Open chat** button. Until the agent has taken one, the page says **Nothing here yet.**
2. Use the filters at the top: payment (**Any payment**, **Unpaid**, **Receipt to check**, **Paid**), status (**All**, **New**, **Done**, **Cancelled**) and the form. **Export CSV** and **Export to Google Sheets** save the list (turn Demo mode off first).

*(From the documentation, not captured: the rest of this part needs real orders.)*

- **Payment:** an order with a payment link shows **Awaiting payment**, **Paid** or **Payment failed**, and **Copy payment link** lets you send the link again. A booking with a deposit shows **Awaiting deposit** or the deposit as paid.
- **Receipts:** when the agent has read a transfer slip, the order shows **Payment claimed — check** (or **amount mismatch**). Click **View receipt**, check that the money is in your bank account, then click **Confirm paid** or reject it. Only an owner or admin can confirm.
- **Shipping:** click **Mark shipped**, choose the courier and type the **Tracking number**, then click **Mark shipped and tell the customer**. The customer gets one WhatsApp message, with a tracking link for J&T, Pos Laju, Ninja Van, City-Link and DHL eCommerce. Afterwards click **Mark delivered**. When the customer later asks "dah pos ke?", the agent answers from this status.
- **Status:** mark an order done or cancelled when you have handled it. Cancelling puts the stock back if stock was taken off.

3. Click **Sales** for the totals: **Orders**, **Order value**, **Collected online**, **Paid rate**, **Average order**, **Chats that ordered**, **Bookings & other forms** and **Cancelled**, for **7 days**, **30 days** or **90 days**. Below are **Per day**, **Payments**, **Top products** and **Waiting for payment** (orders older than a day with an unpaid link).
4. Under **Weekly digest**, tick **By email** or **On WhatsApp** to get last week's sales, receipts to check, unpaid orders and unanswered questions every Monday at 09:00. *(not ticked in this guide)*

   ![The Sales dashboard before any order](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/05-sales.webp)

## Part 4 · Testimonials

The agent can send real customer testimonials that match what the customer needs. You make a short list of **topics**; when a customer's message clearly matches one, the agent answers as usual and then sends a few testimonials of that topic. It never writes a testimonial itself, never sends the same one twice to a customer, and sends each topic to a customer at most once a day.

1. Click **Testimonials**, then **Topics**.
2. Under **Add a topic**, type the topic (for example `Diabetes` for a health shop, or `Hari jadi` for a bakery) and, in the second box, the words customers use for it. Click **Add topic**.

   ![The Topics list](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/06-testimonial-topics.webp)

3. Close the box and click **Add testimonial**. Fill **Customer name (shown)**, the **Quote** and, if you have one, a **Photo** (a screenshot or picture, up to 5 MB). **Title (only you see it)** helps you find it later. Your AI assistant (connector) can also add the photo from a picture link or a picture you attach in the chat.
4. Under **Topics**, click the topic it belongs to. A testimonial without a topic shows **No topic: never sent**. You can also set a **Rating** and a **Product (optional)**.
5. Keep **The agent may send this testimonial** ticked and click **Save**.
6. When the library is ready, go to **Settings**, find **Testimonials**, tick **Send testimonials when they fit** and click **Save settings**. You can set **Most testimonials per reply** (1 to 5) and a **Line before the testimonials (optional)**. Sending testimonials uses no extra credits. *(the switch was left off in this guide)*

To rename a topic, change its words or delete it, open **Topics** again. Deleting a topic removes it from every testimonial; a testimonial left with no topic is not sent until you tag it again. An AI assistant connected with **Edit the AI agent** can also add, rename and delete topics for you; it shows you which testimonials a delete affects and waits for your yes.

**Import from sales page reviews** copies reviews from a live sales page into the library without a topic; tag them afterwards. Use only real testimonials: customers read exactly what you write. To use a testimonial inside a workflow instead, see the "Matching testimonial" step in [04 · Chatbot and workflows](https://v3.wsapme.com/guides/chatbot-workflows.md).

## Part 5 · Tools (for businesses with their own system)

A tool lets the agent look up live information in your own system during a chat, such as the status of an order. You need a web address (API) from your developer or system provider.

1. Click **Tools**, then **Add tool**.
2. Fill **Name the AI uses** (lowercase, for example `check_order_status`) and **When should the AI use it, and what does it return?** The agent reads this text to decide when to use the tool.
3. Choose the **Method**, type the **URL** (use `{{parameter}}` for the part that changes, for example `https://api.yourshop.com/orders/{{order_no}}`), add any **Headers** your system needs and describe the **Parameters**. Secret header values are stored encrypted and never shown again.
4. Tick the agent under **Agents that may use it** and click **Add tool**.

   ![The new tool form](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/07-tool-dialog.webp)

5. *(From the documentation, not captured.)* On the saved tool, the test button runs one real request with values you type, free of charge, and shows what the AI would read. Tools you add also appear under **Settings → Tools**, where you tick them per agent. The agent makes at most 10 tool calls per chat per hour.

> No tool was saved in this guide. A **POST** tool can change data in your system, so Wsapme asks you to confirm that, and the agent only calls it after the customer clearly confirms.

## Half 2 · Check and improve

## Part 6 · Tests

A test question is something customers ask, together with the facts a right answer must contain. Run the tests after you change the knowledge base or the settings to see that nothing broke.

1. Click **Tests**, then **Add question**.
2. Type the question under **Customer asks**. Leave **The agent should** on **Answer it**, or choose **Hand over to the team** for questions it must not answer itself.
3. Under **The answer must say (one fact per line)**, type the facts, for example `RM95`. **Must not say** is optional. Click **Save**.
4. **Suggest from knowledge base** lets the AI propose questions from your entries; pick the ones to keep (this uses AI credits). In the Playground, **Save as test question** under a reply adds that question too.
5. Click **Run tests**. The line under the button shows the cost before you click, for example "About 2 credits". No message is sent to any customer.

**What you should see:** a **Score** out of 100 and, for example, "1/1 passed". Each question shows **Passed** or not; click the arrow on a question to read the **AI answer** and see which facts it met.

![A test run with its score](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/08-tests-results.webp)

After later runs the page also shows which answers got worse and which were fixed. Tick **Run the tests automatically after the knowledge base or settings change** to have them run by themselves about 10 minutes after your last change; owners get an email and a WhatsApp message if answers get worse. *(not ticked in this guide)*

## Part 7 · Review

**Review** collects AI replies that deserve a second look: the AI handed over or was unsure, the answer checker blocked the reply, nothing matched in your knowledge base, the customer turned out unhappy, or a random check. The agent has already replied; here you judge the reply afterwards so it answers better next time.

1. Click **Review**. The three lists are **To review**, **Corrected** and **Good**. With nothing waiting, the page says **Nothing to review.**
2. *(From the documentation, not captured: needs real replies.)* For each reply you see the customer's message and the **AI reply**. Click **Good** if it is fine, or **Wrong — correct it**.
3. In the box that opens, type the **Better answer** and choose under **Save it as** how the agent should learn it, for example as a **Knowledge entry**, or **Only in Review** to keep it for your records. Tick **Add to agent tests** to turn the correction into a test question.

The same box opens from **Improve this answer** under an AI reply in the inbox and in **Activity**. To have a share of normal replies checked too, set **Also check this share of other replies at random (%)** under **Settings → Quality checks**.

## Part 8 · Quality, Activity and Usage

1. Click **Quality** for the last **7 days**, **30 days** or **90 days**: **Handed to your team**, **No knowledge found**, **Checked answers right** and your latest **Test score**. **Week by week** should show fewer handovers as your knowledge base grows.

   ![The Quality tab](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/09-quality.webp)

2. Scroll to **Knowledge gaps**: questions the agent could not answer, was unsure about or handed over. Click **Add answer** next to one to write the missing knowledge entry, or **Group into topics** to let the AI sort them first. *(from the documentation, not captured: the demo workspace has no gaps)*
3. Click **Activity** for this month's counts (AI replies, chats handed to your team, credits used, follow-ups sent, replies blocked by the answer checker) and the **Activity log** of every reply, with filters for the kind, the check result, the number and the period. **Chats with your team** lists the chats where the agent is paused.
4. Click **Usage** for **Credits by feature** per month (customer replies, answer checker, tools, team assists, voice notes, playground and tests), the **Token statement** for one month (download it with **Statement (CSV)**) and **Cost per lead**: the AI credits spent on customers who became a lead that month, divided by those leads.

## Part 9 · More settings: memory, follow-ups, a second agent, your own AI key

All of these are on the **Settings** tab. Click **Save settings** after a change. *(Nothing in this part was changed or saved in this guide.)*

1. **Conversation memory** (under **Inbox**): tick **Conversation memory: remember earlier messages (summary + key facts)**. The agent reads only the last 20 messages of a chat; with this on, each chat gets a short summary and key facts that the agent reads before every reply and your team sees in the inbox. It costs about one reply's credits per update and is off until you turn it on.
2. **Customer memory** (under **Handing over to your team**): **Remember customers** keeps a short note per customer (preferred name, usual items, delivery area, past issues) for later chats. It never keeps health, religion, race, ID, payment or bank details, and your team can see, edit or clear the note in the inbox.
   - **Order page links**: to send a sales page in a reply, write the page's tag (shown under Instructions, for example `{{page:01m84…}}`) instead of its address. The agent always sends the page's current address, so renaming the page or changing your site address (wbot.my or your own domain) never leaves an old link in replies. A page that is not published is never linked.
3. **Follow-ups**: tick **Follow up when a customer goes quiet**, then choose **Follow-ups per quiet chat** (1 to 4). Each follow-up has its own **send after** wait, in minutes, hours or days (30 minutes to 7 days), counted from the message before it: the AI's last answer for the first follow-up, the previous follow-up for the next. For example 30 minutes, then 1 day, 3 days and 7 days. When the customer replies, the count starts again. The AI reads the chat and sends a short nudge only when the customer asked about prices, products, an order or a booking and did not decide. It stays quiet when the chat ended, the customer said no or your team took over, and it sends only between 9am and 9pm in your workspace's timezone: a follow-up that falls due at night goes out at 9am. Each follow-up uses credits like a reply, even when the AI decides not to send one. On an official number, choose an approved template under **Template after the 24-hour window (official numbers)** if follow-ups should also go out after 24 hours. *(no follow-up was sent in this guide)*

   ![The Follow-ups section](https://v3.wsapme.com/guide-media/img/ai-agent-selling-and-quality/10-follow-ups.webp)

4. **A second agent** *(from the documentation, not captured: the demo workspace's plan allows one agent)*: when your plan allows more than one, a row of agents appears at the top of **Settings** with **Add agent**. Give it a name, for example "Support" or "Klang branch"; it starts switched off. Each WhatsApp number is answered by one agent with its own instructions, tone and hours. The knowledge base and products are shared.
5. **Use your own AI key** (at the very bottom): tick **Use my own key for AI replies**, choose the **Provider**, type the **Model** and paste the **API key** from your AI provider, then click **Save key settings** and **Test key**. You then pay your provider directly for replies; voice notes still use Wsapme credits. Treat the key like a password. *(no key was entered in this guide)*

## Common problems

| Problem | What to do |
|---|---|
| The agent quotes a wrong price or says a product is not available | Correct the product on **Products**. Check that **The agent may offer this product** is ticked and that **Stock** is not 0. |
| Photo link refused when the AI assistant adds a photo | The link must open the picture itself (not a web page or a shop page), be public **https**, and be a **JPG, PNG or WebP up to 5 MB**. Open the link in a private browser window: you should see only the picture. Otherwise attach the picture in the chat and ask the assistant to upload it. |
| **Add a payment link to order summaries** cannot be ticked | Connect a payment gateway in **Settings → Payments**, or Stripe on the **Products** tab, first. |
| The Playground doesn't show the customer's past orders | The Playground chats as a new customer. Click **Test as contact** above the chat and pick a customer who has ordered before. Check that **Use the customer's past orders** or **Offer the last order as default** is ticked and saved. |
| The Playground never shows **Would save order:** | Check on **Settings → Orders & bookings** that the form is **On**, give every required detail, and confirm the summary. If the agent hands over instead, the request does not fit your knowledge base (for example your opening days). |
| Right after the customer confirms, the agent says it will check with the team | The answer checker may have blocked the confirmation (the Playground shows **Blocked by the answer checker**). Make sure the products, prices and opening days the order uses are in your product list and knowledge base, then try again. Blocked replies also appear in **Review**. |
| An order has no total or no payment link | An item was not in your product list or has no price, or the delivery address could not be placed ("delivery to be confirmed"). Fix it with the customer in the chat. |
| The summary before the customer confirms has no total | The total is worked out only for items from your product list with a price. Add the product (or its price) on **Products**. The line "Items and total: our team will confirm." means the agent named items Wsapme could not find in your product list; check the product names and that **The agent may offer this product** is ticked. |
| Order totals show as "130" in some orders and "RM130" in others | Amounts in order form fields named like **Total**, **Price**, **Harga** or **Amount** are now always saved as `RM130.00`. Orders taken before this change keep what was written. A field with several amounts ("RM130 + RM8 postage") stays as written. |
| The agent said more testimonials were coming, but none arrived | A topic's testimonials go to a customer once a day, and a testimonial already sent is never sent again. The agent is now told which topics the customer already got, so it should not promise them again. Add more testimonials to the topic if customers ask for more. |
| Testimonials are never sent | Each testimonial needs a topic and must be **Active**, and **Send testimonials when they fit** must be ticked in **Settings**. Switching a testimonial on is not enough: without a topic it is never sent. The **Testimonials** and **Playground** tabs show a warning when the setting is on but no topic has an active testimonial. Nothing is sent when no topic matches, the customer already got them all, or they got that topic in the last 24 hours. In the **Playground**, a matching reply shows **Would send … testimonials about …**. |
| The agent hands every order or price question to your team | Look at the **Ready to sell** card at the top of **Settings**. Without products that have a price, the agent cannot quote or price an order; without an order form with an **Items** field, it hands every order over. Click **Fix** next to what is missing. Write your closing steps (for example: ask about the problem, suggest a package, take the order) in **Extra instructions**. |
| A test question fails although the answer looks right | Open the question and read which fact was not met. Write facts short and exact (for example `RM95`), one per line. |
| Test scores dropped after a change | Open the questions marked as worse, read the **AI answer** and fix the knowledge entry or setting you changed. Then run the tests again. |
| Follow-ups are not going out | They only go to chats the AI answered, between 9am and 9pm, and not after your team replied. On an official number, choose a template for after the 24-hour window. |
| A reply in **AI Activity** shows **sent unchecked** | The answer checker could not run (it failed twice, or credits were low), so the reply went out without the check. Read that reply yourself. Filter **Sent unchecked** to see them all. If it happens often, check your credits and the checker settings in **Settings**. |
| A Malay customer got "Let me check with the team and get back to you." in English | That is the answer checker's message (or the hand-over message) when a reply was blocked. For a short message such as "Sesuai ka" or "ok", Wsapme now uses the language of the customer's earlier messages, then the agent's **Reply language**, then Malay for a business in Malaysia. To choose the words yourself, fill in **Message instead of a blocked reply** on **Settings**. |
| The agent answered the same question twice | After a short follow-up such as "Sesuai ka" or "ok", the agent now answers only that follow-up and does not repeat its last answer. This also holds when the customer sends the short message while the agent is still writing its answer, for example "Panas pedih" right after describing their problem (fixed 26 Nov 2026). If it still repeats, add to **Extra instructions**: "When the customer only says ok or sesuai ka, answer briefly and move to the next step". |
| The agent asks again for an address or phone number the customer already gave | The agent fills the phone line with the customer's WhatsApp number and uses a shared location pin as the address. If your **Extra instructions** or knowledge hold an order template with empty lines, say on each line what goes there, for example `NO. FON : [customer's WhatsApp number]` and `ALAMAT : [address, or the location they shared]`, so the agent does not copy the empty template. |
| A customer in Singapore or Brunei is quoted in RM | Add the country in **Settings → Markets** and give the products a price for it on **Products**. Write package prices for that country in its **Price notes**; prices typed in RM in your Instructions are Malaysian only. A number from a country you did not add always gets RM prices. |
| An order from another country has no total | A product in the order has no price for that country (its box on **Products** is empty), so the agent priced it "to be confirmed". Add the price, or confirm the amount with the customer. |
| An order from another country has no payment link | That country is set to **Bank transfer** in **Settings → Markets**, or Stripe is not connected, or payment links are off on **Products**. With bank transfer the customer pays and sends the receipt for you to confirm. |
| A customer from another country is handed to the team | **Customers from other countries** in **Settings → Markets** is set to pass the chat to the team. Add their country, or choose **Sell to them at Malaysian prices**. |
| A customer ordered on the sales page but **Orders & bookings** has nothing | The page counts only for a customer the agent was chatting with: from the link the agent sent (it ends with `?ai=…`), or from the same WhatsApp number within 7 days. A link you typed or copied yourself has no code. The form must also be an order: an answer with a price such as `RM130`, a product name from your list, or the page chosen as an order form's **Sales page**. |
| One order shows twice (chat and sales page) | The agent and the page are matched within 3 hours. An order confirmed in the chat much later is saved again: cancel the extra one on **Orders & bookings**. |
| The agent never sends the sales page | Check that the page is **Published**, that **How customers order** is not **Chat only**, and that the page is not set to another country than the customer's (**Country and currency** on the page). |
| An order or handover never reached the WhatsApp group | Open **Settings → Handing over to your team → Recent group notices**. A failed notice says why. Common reasons: the number is official (Cloud API) only; a Hybrid number's QR side is not paired or WhatsApp logged it out (pair it or scan the QR again in **Devices**, then click **Retry**); the number left the group, or only admins may post in it. The customer's chat in the inbox also has a note. |
| The WhatsApp group I want is not in the list | The number that posts must be a member of the group. Add it to the group on the phone, then click the refresh button next to **WhatsApp group**. With **The chat's own number**, the list shows the groups of the agent's first number. |
| The group got a handover notice but not a second one | A chat is posted at most once every 30 minutes, and a handover right after an order is covered by the order notice. |
| The agent does not mention the customer's earlier order | Tick **Use the customer's past orders** in **Settings**, or **Offer the last order as default** on the order form, and click **Save settings**. The order must be on the customer's WhatsApp number or linked to their contact: an order placed with another phone number does not show. Open the customer's **Orders** panel in the inbox to see what the agent can see. |
| The agent asks for everything instead of offering the last order | **Offer the last order as default** is ticked on a different form, or the form has no **Items and quantities** detail, or the customer has no earlier order on this WhatsApp number or contact (check their **Orders** panel). The date is never copied from the last order: the agent always asks it again. |
| The agent offers the last order with a product it then cannot price | The item's name in the shop (for example a Bizapp package name) is not the same as a product on **Products**. Give the product the same name, or the agent asks the customer which product they mean. |
| The agent handed a repeat order to the team before the customer confirmed | The chat is handed over only when a confirmed order is saved. If it happened earlier, the customer asked for something the agent cannot do (a refund, a change to an order already placed) or for a person. Check the reply in **AI Activity** with **Show prompt**. |
| You want to know why the agent answered the way it did | In **AI Activity**, click **Show prompt** on the reply (owners and admins). It shows exactly what the AI was given for that reply, even if you changed your settings since. Prompts are kept for 30 days. |

## Related

- [05 · AI agent and knowledge](https://v3.wsapme.com/guides/ai-agent-and-knowledge.md)
- [04 · Chatbot and workflows](https://v3.wsapme.com/guides/chatbot-workflows.md)
- [17 · WooCommerce](https://v3.wsapme.com/guides/woocommerce.md)
- [20 · Sales pages, bookings, payments and domains](https://v3.wsapme.com/guides/sales-pages-bookings-payments-and-domains.md)
- [02 · Team inbox](https://v3.wsapme.com/guides/team-inbox.md)
