Skip to main content

What's required to connect a real shopping cart?

An AISA recommendation and actually adding an item to a cart are different events. A real action is possible only in a specifically agreed integration in which the store retains control over products, quantities and orders.

Three modes​

ModeProductsResult
Public demoSample productsTest cart, no real payment
LiVi owner testOwn connected catalogProduct search without a real customer cart
Separate customer integrationThe catalog and storefront of a specific storePermitted handoff of a request; the store decides whether to add the item

Don't assume there is a ready-made universal JS widget, checkout API or automatic Shopify/WooCommerce/Prom.ua connection. Compatibility and a separate agreement are required for each store.

Passing on user intent safely​

  1. AISA displays a product from the validated catalog.
  2. The user explicitly initiates a permitted action for that product.
  3. The server checks the current product, quantity, availability and validity of the authorization again.
  4. A request to the store is prepared within one agreed mode.
  5. The storefront validates its own product identifier, final price, availability and quantity, then calls its normal cart function.
  6. Only the corresponding store response confirms that the action actually occurred.

Internal handoff protocols, identifiers and store-specific keys are not a public API for third-party calls.

Retries and product changes​

If a handoff is repeated after a delayed response, the store must prevent the same action from being performed twice. A change in price, availability or quantity may require renewed validation and user action. A message saying “sent” does not mean “added to cart”.

Authorization modes​

The integration architecture distinguishes adding an item after explicit selection from a workflow with a separate review and confirmation step. One permitted mode is selected for each store, with no automatic switching between the two. This does not establish that both options are generally available to every store.

Next: Read which powers belong to AI and which belong to the store.