
A shopping chat built with Rails 8 where the AI decides when to search Shopify's live Global Catalog over MCP and answers with real products, prices and links, instead of making them up.
The model gets one tool, SearchProducts, and decides when to use it. The model call runs in a Solid Queue background job and the reply streams to the browser with Turbo Streams. Verified with 14 RSpec specs and end to end against Shopify's live Global Catalog. Two real bugs fixed along the way: replies not reaching the browser (fixed with Solid Cable) and the assistant forgetting the conversation (fixed by replaying saved messages).
Stack: Ruby 4.0, Rails 8.1, RubyLLM, Gemini, Hotwire, Solid Queue, Solid Cable, MongoDB, RSpec. Case study: https://mjesar.github.io/projects/ai_shop_assistant/ Code: https://github.com/mjesar/ai_shop_assistant
0 likes · 2 views · Oct 29, 2026
A Rails shopping chat where the AI searches Shopify's live catalog over MCP instead of making products up.