Inside the application, the AMS SDK loads the engine; the engine renders the application's components and maintains a session with AMS. The agentic webpage is a second deployment of your own application. The same codebase built with FORTY_AGENTIC=1 renders the agentic page at /; every other route — products, cart, checkout — stays your application’s own. Without the flag the app builds exactly as before. Supported: Shopify Hydrogen and Next.js (App Router), React 18.3+.

Integration

The agentic page mounts the SDK:
app/forty/route.tsx
The agentic build serves it at /:
Add a shell — composer, conversation, agent activity — from UI Components or your own.

Files added

Deployment and security

Deploy the agentic build as its own environment — a second Oxygen environment or Vercel project, on a domain such as ask.example.com — with FORTY_AGENTIC=1 at build time, then register its origin with forty origin add <url>. Requests from unregistered origins are rejected. Your Content Security Policy must allow the AMS API origin in connect-src (https and wss) and scripts from it. On Hydrogen add it to defaultSrc, not scriptSrc, which replaces Hydrogen’s defaults and stops the app hydrating. Block changes ship as releases; component code ships with your application through your existing pipeline.