Skip to main content
Cookbook WooCommerce WooCommerce

Check whether WooCommerce sent a customer’s order email with AI

Read an order's email notes to see what WooCommerce sent, what failed and why, and get a reply drafted for the customer.

Difficulty Beginner
Time ~3 min

Prerequisites

A site connected to WPVibe running WooCommerce 11.3 or newer (tested on 11.3.0, free) on WordPress 6.9 or newer, with an administrator account, and the email address the customer ordered with.

The prompt
A customer at [customer email address] says they never got [the email, for example their order confirmation or the shipping update].
Order number they gave: [order number, or none]

Find out whether WooCommerce sent it. Only read the store: do not resend any email, do not change anything and do not email anyone.

1. Run discover_abilities with category woocommerce. If woocommerce/order-notes-query is not there, stop and tell me to update the free WooCommerce plugin to 11.3 or newer (on WordPress 6.9 or newer).
2. Run woocommerce/orders-query with billing_email set to their address and per_page 100. If they gave an order number that is not among these orders, do not look it up: tell me and stop. If no order matches, tell me the customer may have ordered with another address, and stop.
3. Use the order they gave, or else the newest order. Tell me its number, date and status. Run woocommerce/order-notes-query with its id.
4. List every note about an email, with its date: WooCommerce writes Email "Processing order" sent., or Email "Completed order" failed to send, with the reason when it has one. The note names the email, not who got it: New order goes to the store, Failed order and Cancelled order can be the store's copy or the customer's, and on most stores the others go to the customer. Also list the customer notes (customer_note true), which were emailed to the customer.
5. Explain in plain words what you found for the email they are missing:
- Sent: WooCommerce handed it to the site's mail server at that time. That does not prove it arrived: it may be in their spam folder, or the address on the order may have a typo (show me the billing email).
- Failed to send: the site could not send it. Give me the reason WooCommerce recorded, and tell me other customers may be missing emails too, so the site's email sending needs checking.
- No note for it: the order may never have reached the status that sends it (compare the status to the email), that email may be turned off under WooCommerce, Settings, Emails, or it was sent before the store ran WooCommerce 10.9, which started writing these notes.
6. Draft a short, friendly reply I can send myself. Tell me that to send the customer their order details again, I can open the order in wp-admin and pick Send order details to customer under Order actions. Do not change anything.
Already connected?

Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:

Run the “Check whether WooCommerce sent a customer’s order email with AI” recipe from the WPVibe cookbook on my connected site.

“I never got my confirmation.” When a customer says that, you can’t tell from the order screen whether WooCommerce sent the email and it landed in spam, failed to send at all, or was never meant to go out. So you resend it and hope, and if the site’s email is broken, every other customer is missing theirs too.

The AI finds the customer’s order by their email address and reads its notes through WooCommerce’s own abilities. Since version 10.9, WooCommerce writes a note on the order each time it sends a customer or store email, or fails to, with the reason when it has one. The AI lists every email the order sent, says plainly what each result means, and drafts a reply for you. It only reads: it doesn’t resend anything or change the order, and it won’t look up an order number that doesn’t belong to that email address.

Sent means WooCommerce handed the email to your site’s mail server, not that it arrived, so the reply asks the customer to check spam and the address on the order. A failure, or the same problem with several customers, means the site’s email needs fixing; this SureMail recipe can show what your mail provider said. Emails sent before your store ran WooCommerce 10.9 left no note. To send the customer their order details again, open the order in wp-admin and pick Send order details to customer under Order actions.

Outcome

Which emails the order sent and when, what failed and why, and a reply drafted for you to send, with nothing changed.