WooAi¶
Add-on for OG AI Core. It lets your chatbots search your WooCommerce products, show them as cards in the chat, and answer logged-in customers about their own orders.
Requires: OG AI Core (free or Pro) and WooCommerce 8.0+, both active, and a WooAi licence. WordPress 6.0+, PHP 8.1+. The chatbot's model must support function calling.
Install¶
Install it from OG AI Core > Manage add-ons > Get add-ons: one click if you own it, or enter its licence key. Then open OG AI Core > Add-ons > WooAi. Nothing is switched on after installing.

Settings save themselves as you change them: a small "Saved" note shows at the bottom right.
Settings¶
Chatbots
- Enabled for: the chatbots that get the WooAi functions.
- Other chatbot IDs: custom IDs of shortcode chatbots (the
custom_idoridattribute), separated by commas.
Functions
- Products: search products and read product details. Keywords, category, price range and in stock only. Only published products that are visible in the shop or in search are returned. Set the number of products per search.
- Product cards: show the products found as cards (image, name, price, stock) under the reply.
- My orders: logged-in customers can ask about their own recent orders or one order: status, date, items, total, shipping method, tracking numbers and links, and the store's notes to the customer. Set how many orders the history shows.
- Guest order status (off by default): a visitor who is not logged in gives the order number and billing email. Both must match, and only the status is returned. 5 lookups per hour per visitor and per order number.
Store summary (off by default)
Tell the chatbot the store name, currency, main categories, shop link, up to three policy page excerpts (the first 600 characters of each) and your own notes (up to 500 characters). It is added to the chatbot's instructions.
Test tab¶
Test runs the functions exactly as a chatbot would, as you, and shows the answer the AI model would receive. Nothing is sent to an AI service. Try a product search, your own orders, or a preview of the store summary.
Good to know¶
- Order functions only return the logged-in customer's own orders. A visitor who is not logged in is asked to log in.
- Function results are built from allow-lists: no addresses, phone numbers, email addresses, names or payment details.
- Tracking works with WooCommerce Shipment Tracking, Advanced Shipment Tracking, AfterShip, YITH Order Tracking and plain tracking meta.
- Orders are read through
wc_get_orders()andwc_get_order(), so both order storages work (HPOS and posts). - The functions are added to the chatbot's query, not to OG AI Core's function list, so they do not show in the chatbot's Functions picker.
Functions¶
ogwa_search_products, ogwa_get_product, ogwa_list_my_orders, ogwa_get_my_order, ogwa_guest_order_status.
Hooks¶
| Filter | Use |
|---|---|
ogwa_guest_lookup_limit |
Guest lookups per hour (default 5). |
ogwa_client_address |
The visitor's address behind a proxy. |
ogwa_order_id_from_number |
For stores whose order numbers are not order IDs. |
ogwa_order_tracking |
Add or change tracking entries. |
WooAi uses OG AI Core's ogaie_chatbot_query, ogaie_chatbot_params, ogaie_chatbot_reply and ogaie_ai_feedback filters. Settings are in the option ogwa_settings.