Skip to main content

Cart integration & checkout

ShopGuide's AI can act on the cart during a conversation using two tools, and it's given live cart context so it doesn't act blind. This page describes what's actually implemented — not a general cart-automation platform.

What the AI can do

Add to cart. When a customer asks to buy something, the AI calls an add_to_cart tool with the exact product and variant ID it found via catalog search — it's explicitly instructed to never invent an ID, and the tool refuses to run if it detects a placeholder/generic ID. It accepts a quantity (1–10) and returns instructions the storefront widget uses to actually add the item to the Shopify cart.

Open checkout. When a customer is ready to pay ("checkout", "pay now", etc.), the AI calls an open_checkout tool, which tells the widget to open /checkout.

Cart awareness. The AI is given the current cart state as context for every message: whether it's empty, item count, line items, total price and currency, any applied discount, and any cart note. This lets it reference what's actually in the cart ("you already have the blue medium in your cart") instead of guessing.

What this isn't

There's no exit-intent detection, no proactive "you're about to abandon your cart" intervention, no dynamic/real-time pricing engine, no stock-hold/reservation system, and no omnichannel cart sync or AR/VR try-on. The AI reacts to what the customer says in the conversation — it doesn't independently watch for cart abandonment and interrupt the customer.

Cart activity as a passive analytics signal

Separately from the chat itself, ShopGuide's Path Explorer feature passively records page views, add-to-cart events, cart views, and checkout starts as customers move through your store (used to build the customer-journey/funnel views in the dashboard). This is analytics only — it does not trigger any chat behavior on its own.

Next steps