WaForgeDevelopers

Data feed quickstarts

WordPress and WooCommerce

The WaForge Connect plugin turns a WooCommerce store into a live source for the agent: products, variations, prices, stock and order status, plus change events when stock or orders change. No code. WordPress 6.0+ and PHP 7.4+.

Steps #

  1. Add the source in WaForge. Dashboard, Data feeds, "Your website (live data)", type WordPress or WooCommerce plugin. Enter your shop domain and click Create and get my secret. Copy the four values shown once: feed secret, key id, tenant id, verification token.
  2. Install the plugin. Download waforge-connect.zip. In WordPress: Plugins, Add New, Upload Plugin, choose the zip, Install, Activate.
  3. Paste the values. Settings, WaForge Connect: paste the four values, Save. The plugin now serves /.well-known/waforge.json and adds the verification meta tag to your home page.
  4. Verify and check. Back in WaForge click Verify domain, add a product id and a search word as test values, then Run checks. When every row passes, the source is Active and the agent reads your shop live.

What the plugin shares #

  • Published products and visible variations: name, price as displayed in your shop (with or without tax, following your WooCommerce setting), sale price, images, short description, categories.
  • Stock: in stock, low stock (threshold in the plugin settings, default 3), out of stock, backorder.
  • Order status, only when the customer's WhatsApp number matches the order's billing phone. Untick "Allow order status lookups" in the settings to turn this off.

It never shares customer addresses, emails or payment data.

Endpoints it serves #

AddressSigned?
/.well-known/waforge.json and /wp-json/waforge/v1/manifestNo
GET /wp-json/waforge/v1/catalog/searchYes
GET /wp-json/waforge/v1/products/{id} (numeric WooCommerce id), /products/by-sku/{sku}Yes
POST /wp-json/waforge/v1/availabilityYes
POST /wp-json/waforge/v1/orders/lookupYes

Live updates #

With "Push stock, price and order changes to WaForge" ticked (the default), the plugin queues a signed event whenever stock changes, a product is edited or an order changes status. It uses Action Scheduler when WooCommerce provides it, otherwise WP-Cron, so checkout is never slowed down. WaForge then drops its cached copy and reads your shop live at the next question.

Rotating the secret #

Click New secret on your feed in WaForge, then paste the new value into Feed secret and the old one into Previous secret. The previous secret is accepted for 24 hours and then ignored; tick "Clear previous secret now" to drop it earlier.

If verification fails #

  • Manifest 404: some hosts block /.well-known/. Use the second address https://YOUR-SHOP/wp-json/waforge/v1/manifest (shown in the plugin settings) as the manifest URL in WaForge. Saving Settings, Permalinks once also refreshes the rewrite rule.
  • 401 with a valid signature: a security plugin or firewall may strip the WaForge-Signature header. Allow it for /wp-json/waforge/.
  • Custom order numbers (Sequential Order Numbers and similar): use the waforge_find_order filter described in the plugin README.

Without WooCommerce the plugin still serves the manifest and the meta tag for domain verification.