/salesforce-commerce:sf-einsteinfrom salesforce-commerce
Implements Einstein AI for Salesforce Commerce Cloud: recommendations, predictive sort, search ranking, and Data Cloud personalization. Use when adding AI features to commerce storefronts.
Ships in salesforce-commerce. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live docs before implementing Einstein AI features.
Recommender Types:
| Type | Description | Typical Placement |
|---|---|---|
| Product-to-Product | Similar or complementary items (cross-sell) | PDP |
| Recently Viewed | User's browsing history | Homepage, category |
| Also Bought | Products frequently purchased together | Cart, PDP |
| Trending | Popular items across all users | Homepage, category |
| Top Sellers | Best-selling products by category/site | Homepage, category |
| Personalized | ML-driven per-user recommendations | Homepage (returning users) |
Recommender Configuration (Business Manager):
Activity Collection:
Einstein activity tracking uses a collect.js library loaded on storefront pages. It automatically captures product views, add-to-cart, purchases, and search events. Configured via Business Manager > Einstein > Activity Tracking.
Warning: The
_etmcbeacon pattern is for Marketing Cloud Einstein, not Commerce Cloud Einstein. Do not confuse the two.
Recommendation Zones:
Personalized category page sorting powered by ML.
| Aspect | Detail |
|---|---|
| Input | User behavior (clicks, purchases, browse history) |
| Output | Per-user product ranking on category pages |
| Fallback | Default sorting for new / anonymous users |
| Config | Per-category toggle in Business Manager |
Search Dictionaries:
| Dictionary Type | Purpose | Example |
|---|---|---|
| Synonyms | Map equivalent terms | sneakers -> running shoes |
| Hypernyms | Broader category terms | iPhone -> smartphone |
| Compound Words | Multi-word phrases | ice cream, swimming pool |
Search Relevance Tuning:
Typeahead Suggestions:
Integration Architecture:
B2C Commerce -> Data Cloud Connector -> Unified Profile
-> Segmentation + ML Models (Einstein)
-> Personalized Recommendations / Content
-> Commerce Storefront (SFRA / PWA Kit)
Key Concepts:
Data Cloud vs Commerce Cloud Einstein:
| Aspect | Commerce Cloud Einstein | Data Cloud Personalization |
|---|---|---|
| Data source | Commerce activity only | Cross-cloud unified profile |
| Setup | Business Manager config | Data Cloud connector + config |
| Segments | Implicit (ML-driven) | Explicit (rule-based + ML) |
| Best for | Product recommendations | Cross-channel personalization |
Zone Placement Strategy:
| Page | Recommended Zones |
|---|---|
| Homepage | Trending + personalized (returning users) |
| PDP | Similar products + complementary items (cross-sell) |
| Cart | Cross-sell + upsell opportunities |
| Category | Predictive sort + trending in category |
| Search Results | Einstein-ranked results |
// Pattern: SFRA recommendation zone
// Fetch live docs for Einstein Recommendations API
var recs = einsteinAPI.getRecommendations(zone, customer);
// Render recs in ISML template
// Pattern: PWA Kit recommendations hook
// Fetch live docs for commerce-sdk-react useRecommendations
const {data} = useRecommendations({recommenderName, products});
// Pattern: Fallback when Einstein unavailable
// Fetch live docs for CacheMgr and fallback strategies
// try Einstein -> catch -> return getTopSellers(zone)
Fetch the Einstein Recommendations API reference and Data Cloud connector docs for exact configuration parameters and SDK versions before implementing.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin salesforce-commerce24 skills in this plugin
/js-modernWrite modern JavaScript and TypeScript — ES6+ features, async/await, modules, destructuring, optional chaining, TypeScript types. Covers SFCC server-side JS (CommonJS, limited ES6), PWA Kit (full modern JS/TS), and LWC JavaScript (Lightning Locker constraints). Use when writing JavaScript for Salesforce Commerce./node-backendBuild Node.js backends for Salesforce Commerce — SFCC server-side JavaScript (not actual Node.js runtime), PWA Kit backend (Express-like SSR server), Commerce SDK for server-side SCAPI access, and async patterns for external service integration. Use when building server-side commerce logic./react-patternsBuild React applications for PWA Kit — hooks, composition, SSR, Commerce SDK integration, Chakra UI components, getProps data fetching, and client-side state management. PWA Kit uses React (NOT Remix/Next.js). Use when building PWA Kit storefronts./sf-b2b-apexBuild B2B Commerce Apex extensions using the CartExtension namespace — PricingCartCalculator, ShippingCartCalculator, TaxCartCalculator, InventoryCartCalculator implementations, governor limits, bulkification, test coverage (75% minimum), and checkout flow customization. Use when implementing server-side B2B commerce logic./sf-b2b-experienceBuild B2B Commerce storefronts with Experience Builder — LWR templates, page types (Home, Product, Category, Cart, Checkout), standard and custom components, theme layouts, navigation, SEO configuration, and site publishing. Use when assembling B2B/D2C storefronts./sf-b2b-lwcBuild B2B Commerce LWC components — Lightning Web Components with @api/@track/@wire decorators, commerce-specific wire adapters, custom events, Lightning Web Security, Jest unit testing, and component lifecycle. Use when building B2B storefront UI components.Other plugins' skills for the same job