Skip to main content
Cookbook Marketing FluentCart

Add or Update FluentCart Products with AI

Have the AI create or reprice FluentCart products for you, drafted first so you can check everything before it goes live.

Difficulty Intermediate
Time ~15 min

Prerequisites

FluentCart installed and active, and a connected site.

The prompt
Here are the products I want in my FluentCart store:
[list each one: name, price in dollars, and whether it's physical or digital. If you're updating existing products instead, name them or give their IDs and say what should change.]

Creating a FluentCart product is one call if you include the right field:
POST /fluent-cart/v2/products, body: {"post_title": "...", "post_status": "draft", "detail": {"fulfillment_type": "physical" or "digital", "variation_type": "simple"}}. You MUST include "variation_type": "simple" — without it, no priced variant gets created and the product silently has no price. The response's variant.id is what you need next.

Set the price with POST /fluent-cart/v2/products/variants/{variantId} (the same variant ID from creation, in the URL). The body must nest everything under a "variants" object, and that object's own "id" field is what actually gets written to — it is NOT just a check against the URL, it's the real target, so always set variants.id to the exact same ID as the URL or you'll silently edit the wrong product. Also required inside "variants": post_id, variation_title, item_price, fulfillment_type, stock_status, total_stock, available, committed, on_hold, and other_info: {"payment_type": "onetime"}.

Price handling: write item_price in plain dollars (e.g. 34.95). For anything you show me or compare against — confirming a current price, checking a change took effect — use the API's own "formatted_total" or "formatted_min_price" field (it's already a dollar string like "$34.95" — note it comes back HTML-entity encoded as "$34.95", so decode "$" to "$" before showing it to me; don't mistake the encoding for a wrong field and fall back to raw item_price). Never read the raw item_price field and treat it as dollars; it's stored in cents and writing that number back would turn a $35 product into $3,500.

To look up a product's current price before changing it, use GET /fluent-cart/v2/products/{productId}/pricing — it returns the variant id and formatted_total together, so look up the price there first and show it to me before making any change.

Create new products as drafts so I can review before they go live. When you're done, list every product you created or changed with its price (read from formatted_total, not raw item_price), so I can check it against what I actually asked for before publishing.
Already connected?

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

Run the “Add or Update FluentCart Products with AI” recipe from the WPVibe cookbook on my connected site.

Adding a handful of products to a FluentCart store, or fixing prices across a bunch of them, means opening each one in the product editor, filling in the title, fulfillment type, and price, and saving. It’s not hard, just slow, and slow is exactly the kind of thing that makes a store owner put off a catalog update for another week.

The AI creates or updates FluentCart products through its REST API in two steps: the product itself first (title, whether it’s physical or digital), then the price on its variant, since FluentCart keeps pricing on a separate record and the product call alone won’t set it. New products are created as drafts by default, so nothing appears on your storefront until you publish it. For price changes on an existing product, it shows you the current price in dollars before changing anything, so you have a clear before-and-after to check.

Paste the prompt and list the products with their price and whether each is physical or digital. If you’re updating prices on existing products, say so explicitly and give the product names or IDs. Review the drafted products in FluentCart before publishing them, and double check any price the AI shows you against what you actually asked for, since FluentCart’s own API returns prices in cents while it expects them written in dollars, a mismatch that’s easy to get backwards.

Outcome

New or updated FluentCart products with correct pricing, created as drafts so nothing goes live until you review it.