Shopping assistant in the chat widget

Shopping assistant in the chat widget

Recommend products from your Shopify catalog as cards in the chat, add-to-cart links and optional single-use discount codes.

Growth Pro Open in TR-AI5 min read

When a visitor in the chat widget asks for product advice (“which running shoe is best for wide feet?”), TR-AI searches your Shopify catalog by meaning and replies with product cards: image, price, a link to the product and an “Add to cart” link that opens a ready-made cart.

  1. 1
    Create a Shopify token
    In Shopify admin → Apps → Develop apps, create an app with the read_products scope (add write_price_rules and write_discounts if you want discount codes). Copy the Admin API access token.
  2. 2
    Connect the store
    Dashboard → Shopping assistant: enter your shop domain (your-store.myshopify.com), the token and your public store URL used for links, then switch the assistant on.
  3. 3
    Index the catalog
    Click “Sync catalog now”. Active products are indexed by title, description, type and tags; the index refreshes automatically about every 6 hours.
  4. 4
    Choose discount rules
    Off, automatic or with approval; set the percentage (up to 30%), the daily cap, how many days codes stay valid and an optional minimum order subtotal.

Discount codes

  • Codes are single-use, created through Shopify price rules, and at most one is offered per conversation.
  • In “with approval” mode the request appears on the Shopping assistant page; once approved the code is posted into the visitor’s chat.
  • The daily cap stops new codes once it is reached, in every mode.
  • Codes are only offered when the visitor asks for a discount — TR-AI never volunteers them.
Tips & tricks
  • Write product descriptions in customers’ words (fit, use, materials) — recommendations match on meaning, not just titles.
  • Start discounts in “with approval” mode with a low daily cap, then switch to automatic once you are happy with when codes are offered.
  • Show 3 products per answer; more cards make the chat harder to scan on phones.