Magento AI Chatbot Implementation — Hyvä Drawer + Streaming Backend
Every Magento + AI chatbot tutorial stops at the demo. This one builds the real thing on Magento 2.4.4 — 2.4.9 with Hyvä: an Alpine drawer that persists history to localStorage, a fetch ReadableStream SSE parser, a REST controller that proxies to Claude with cart context, a Zendesk handoff trigger, and a per-conversation cost cap that fires before the API bill spirals. Code, math, and the gotchas we hit shipping it.