OG WooAi: product search and order help in your chatbot

Jellybean, the OG Nexus mascot: OG WooAi: product search and order help in your chatbot

OG WooAi is an add-on for OG AI Core from OG Nexus. It connects your chatbots to WooCommerce. They can search your products, show them as cards in the chat and answer logged-in customers about their own orders.

We run it on our own store at og-nexus.com. So this guide shows how we set it up, and why we made the choices we did.

Product search

When a shopper asks for something, the chatbot calls a product search. It can filter by:

Keywords.

Category.

Price range.

In stock only.

For each product it gets the name, price, stock status, short description, link and image. Only published, visible products are ever returned. Hidden, draft, private, pending and password-protected products never appear.

Product cards

The products found appear as a row of cards under the reply. Each card shows the image, name, price and stock. Shoppers can click straight through to the product.

That matters more than it sounds. A text reply that says "we have a blue one" still makes the shopper go and find it. A card is one click away.

My orders

A logged-in customer can ask about their recent orders or a single order. The chatbot can tell them:

The status and date.

The items and the total.

The shipping method.

The store's notes to the customer.

Tracking numbers and links from common shipment-tracking plugins.

Customers only ever see their own orders, and this is checked twice. A visitor who is not logged in is asked to log in. The statuses are the standard ones described in the WooCommerce guide to managing orders, so "Processing" or "Completed" means what it means in your admin.

What the AI never sees

Function results never contain addresses, phone numbers, email addresses, names or payment details. Results are built from allow-lists. Free text, such as item names and notes to the customer, is also scrubbed of email addresses and phone numbers.

OG WooAi makes no calls of its own. Function results go to the AI provider you set in OG AI Core, like the rest of the chat.

Optional extras

Two features are off until you turn them on.

Guest order status

A visitor who is not logged in gives the order number and the billing email. Both must match. Only the status is shown. Each visitor and each order number gets 5 lookups per hour. The rate-limit counters store hashes only, never addresses or order numbers.

Store summary

This adds a short brief to the chatbot's instructions. It includes your store name, currency, main categories and shop link. It also adds excerpts from up to three policy pages, plus your own notes. Each category is listed once, in the main language of a translated site.

With it on, a question like "do you have a privacy policy?" gets a real answer from your own pages.

Per chatbot, tested first

You turn OG WooAi on for each chatbot you choose. Nothing is switched on after installing. You can pick a chatbot by its ID, or by the custom ID of a shortcode chatbot.

The Test tab runs the functions as you. It shows exactly what the AI model would receive. Use it after every change to a setting, before a real shopper sees the result.

Developers get filters to adjust lookup limits and tracking. There is also one for stores whose order numbers are not the same as their order IDs.

Set it up, step by step

1

Install OG WooAi from OG AI Core > Manage add-ons. WooCommerce must be active.

2

Open OG AI Core > Add-ons > WooAi. The Status block shows WooCommerce, OG AI Core and your order storage.

3

Under Chatbots, tick the chatbots it should work for. For a chatbot added with a shortcode and a custom ID, enter that ID in Other chatbot IDs.

4

Under Functions, choose what the chatbot may do: product search, product cards, My orders, and guest order status.

5

Switch on the Store summary if you want the chatbot to know your store name, currency, main categories and policies. Pick your policy pages and add short notes.

6

Each change saves itself. Open Test in the side rail to run a product search or look up your own latest order, exactly as the chatbot would.

OG WooAi settings: status and chatbots

WooAi: the status of WooCommerce and OG AI Core, then the chatbots it is enabled for.

Every setting explained

Enabled for and Other chatbot IDs: which chatbots get the WooAi functions. The chatbot's model must support function calling.

Products: search products and read product details, with the number of products per search. Only published products that are visible in the shop or in search are returned.

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 orders: status, items, totals, shipping method and tracking. You set how many orders are in the history. Addresses, phone numbers, emails and payment details are never returned.

Guest order status: off by default. Visitors who are not logged in can check one order's status with the order number and billing email. Lookups are limited per hour.

Store summary: adds the store name, currency, main categories, shop link and policy excerpts to the chatbot's instructions (up to 3,000 characters).

Policy pages: for example shipping, returns or FAQ. The first 600 characters of each are used.

Notes: anything else the chatbot should know, such as opening hours, up to 500 characters.

What we would do first

1

Turn it on for one chatbot only.

2

Leave the product limit at 5 to start with.

3

Open the Test section and search for a product you know well. Check the price and stock are right.

4

Place a test order as a customer, then ask the chatbot "where is my order?".

5

Add the store summary once the basics work, and pick your real policy pages.

6

Only turn on guest order status if your customers often buy without an account.

Who it is for

WooCommerce shops that run an AI chatbot with OG AI Core. It helps shoppers find products and answers "where is my order?" without a support ticket. It needs WooCommerce and a chatbot model that supports function calling.

Getting it

OG WooAi is an add-on for OG AI Core and works with OG AI Core free or Pro. See the OG AI Core product page or the whole OG plugin family.

Keep reading