Integrations

Shopify

For shoppers, search a store and manage the cart; for staff, read and work with orders, products, customers and draft orders in the admin.

Where it works

Any Shopify storefront, recognised from Shopify’s own page markers, and the Shopify admin at admin.shopify.com or a store’s /admin.

Open the site in XataWorks Browser and the tools below appear in the page-tools list in the browser’s toolbar, ready for the agent in any chat that has the tab. There is nothing to install or switch on.

How it works

The tools call Shopify’s own APIs from the page, with the session you are already signed in with — no Admin API token, no app, no separate sign-in. Which tools appear depends on whether you are in a storefront or the admin.

Where Shopify or a store offers WebMCP tools of its own, XataWorks uses those and steps aside.

Tools

Each tool with the name XataWorks shows you, the name the agent uses, and the first sentence of the description the agent reads. You do not call them yourself: ask for what you want in your own words, and the agent picks the tool. Before one runs, XataWorks asks you, according to its class; Approvals and permissions explains the question and each answer.

Reads Read only

These only look things up.

  • Get Shopify session capabilities get_capabilitiesReport whether the Shopify browser session can use the API from this page, the detected audience (storefront or admin), and the API base.
  • Get the current cart get_cartReturn the shopper’s current cart on this Shopify storefront (item count, line items with title/variant/quantity/line price, and totals).
  • Get a storefront product get_productFetch one storefront product by handle (the slug in /products/{handle}).
  • Search storefront products search_productsSearch this storefront’s products by query using Shopify’s predictive search.
  • List collection products list_collection_productsList the products in a storefront collection by handle.
  • Get product recommendations get_recommendationsGet product recommendations related to a storefront product id.
  • Get storefront shop info get_shop_infoReturn basic info about this Shopify storefront (shop domain, currency, locale) from the page’s own Shopify globals.
  • Get the Shopify store get_shopReturn the current Shopify store’s basic info (name, domains, currency, plan) from the admin session.
  • Get the current admin object get_current_admin_objectReturn the order, product, or customer currently open in the admin (derived from the route like /orders/123, not scraped).
  • List orders list_ordersList orders in the admin, newest first.
  • Get an order get_orderFetch one order by numeric id from the admin.
  • List admin products list_productsList products in the admin.
  • Get an admin product get_admin_productFetch one product by numeric id from the admin.
  • List customers list_customersList customers in the admin.
  • Get a customer get_customerFetch one customer by numeric id from the admin.
  • List draft orders list_draft_ordersList draft orders in the admin.

Adds and changes Mutating

These change something, and the adapter declares the change additive: a create, an append, a status set.

  • Add an item to the cart add_to_cartAdd a product variant to the shopper’s cart on this storefront.
  • Update a cart line quantity update_cart_lineChange the quantity of a line already in the cart.
  • Create a draft order create_draft_orderCreate a draft order from a list of line items (each { variant_id, quantity } or a custom { title, price, quantity }).

Changes that may not be undoable Consequential

These may make changes that cannot be undone, so XataWorks treats them with the most care.

  • Remove a cart line remove_cart_lineRemove a line from the cart entirely (sets its quantity to 0).
  • Clear the cart clear_cartRemove all items from the shopper’s cart on this storefront.
  • Set an order note add_order_noteSet the note on an order (numeric id).
  • Set order tags set_order_tagsSet the tags on an order (numeric id).

See Page tools in the user guide for how to see what a tab offers, or every integration.