Frontend Integration
Frontend integration covers two npm packages plus framework-specific guides:
- @usesophi/sophi-web-sdk — embed the Sophi assistant widget (
SophiWidget) and handle widget events. - @usesophi/sophi-web-object — framework-agnostic e-commerce tracking via
window.sophi_objectandSophiTracker, with events delivered to Sophi over HTTPS. - Framework guides — patterns for React, Angular, and more.
-
Widget installation, initialization, events, methods, and security.
-
Data layer, event types, types reference, and integration patterns for storefront tracking.
-
Framework-specific implementation guides.