An AI-powered procurement assistant for B2B commerce built with React, CopilotKit, and Lit web components.
npm install @field123/ep-assistantAn AI-powered procurement assistant for B2B commerce built with React, CopilotKit, and Lit web components.
EP Assistant provides an intelligent chat interface for product discovery and procurement guidance. It integrates with Elastic Path Commerce Cloud to deliver AI-powered shopping experiences as reusable web components.
ChatDashboardRoot: Main dashboard with full procurement interfaceChatRoot: Simplified chat-only interfaceEpAssistantDashboard: Web component wrapper for dashboardEpAssistant: Web component wrapper for chat interfaceauthenticate-store-account: User login with form UIsearchProducts: Product search with interactive resultsgetProductDetails: Detailed product information display``html
client-id="your-client-id"
ep-url="https://api.elasticpath.com"
ep-access-token="your-token">
client-id="your-client-id">
`
`typescript
import { ChatDashboardRoot, ChatRoot } from '@field123/ep-assistant';
// Full dashboard
clientId="your-client-id"
epUrl="https://api.elasticpath.com"
epAccessToken="your-token"
/>
// Chat only
clientId="your-client-id"
/>
`
`typescript`
interface Product {
id: string;
name: string;
category: string;
price: number;
bulkPrice: number;
minBulkQuantity: number;
description: string;
specifications: string[];
inStock: boolean;
leadTime: string;
image: string;
}
bash
pnpm install
`$3
`bash
pnpm dev
`$3
`bash
pnpm build
``The package is designed to integrate with Elastic Path Commerce Cloud:
1. Replace mock product data with EP API calls
2. Implement authentication via EP customer accounts
3. Connect product search to EP catalog services
4. Configure runtime URL and credentials
MIT License