Guide the user through setting up a product store — either connecting Shopify or creating an internal product catalog.
First check if a shop already exists: erp_table_data(table_name="com_shop")
If no shop exists, ask: "Do you have a Shopify store to connect, or should I set up a product catalog here?"
shopify(op="connect", args={"shop_domain": "mystore.myshopify.com"})shopify(op="status") — products sync automaticallyshopify(op="help") for full list of operations: create/update/delete products, manage collections, set discounts, adjust inventoryConnected stores sync products, orders, payments, refunds, and shipments automatically.
erp_table_crud(op="create", table_name="com_shop", data={"shop_type": "internal", "shop_name": "..."})erp_table_crud(op="create", table_name="com_product", data={...})erp_table_crud(op="create", table_name="com_product_variant", data={"pvar_product_id": "...", "pvar_price": ..., ...})Use erp_table_meta(table_name="com_product") and erp_table_meta(table_name="com_product_variant") to see available fields.
Walk through the catalog conversationally — ask broad questions, don't go field by field. If they have a website, read it first and propose a catalog. Create products as you go, confirm each one.