Shopping Assistant SDK
Changelog

Changelog

Version 1.2.0

  • Release Date: 13/08/2025
  • Components Version: 1.2.0
  • Hooks Version: 1.2.0
Highlights ⚡️

Performance optimizations focused on streamlining conversation initialization and reducing unnecessary API overhead for faster user experience.

Performance Optimizations 🚀
  1. Optimized Conversation Initialization: Streamlined the conversation startup process by removing redundant API calls that were triggering on every conversation start, significantly improving initial load times and reducing server overhead.
Improvements 🔧
  1. Faster Conversation Startup: Conversations now start more quickly with optimized initialization flow.
  2. Reduced API Overhead: Eliminated unnecessary API requests during conversation initialization for better performance.
  3. Enhanced User Experience: Smoother and more responsive conversation flow with reduced loading times.

Version 1.1.0

  • Release Date: 12/08/2025
  • Components Version: 1.1.0
  • Hooks Version: 1.1.0
Highlights ⚡️

Major API improvements with better naming conventions, enhanced configuration options, and streamlined interface management for improved developer experience.

New Features 🚀
  1. apiEndPoint Configuration: Added support for custom API endpoint configuration, allowing developers to specify different backend services and deployment environments.
  2. getInitialPrompts Function: New function to fetch predefined conversation starters, enabling better user onboarding and engagement.
  3. Enhanced Parameter Management: Improved parameter handling with uid now passed through extraParams for better organization.
Breaking Changes ⚠️

Hook Method/Variables Renames:

  1. storeConversationIdstorageType: Renamed for clearer purpose - now specifies how conversations are stored (localStorage/sessionStorage).
  2. InitialisestartNewConversation: More descriptive name that clearly indicates starting a fresh conversation session.
  3. fetchAllConversationsgetAllConversations: Consistent naming convention across all getter methods.
  4. askaskAgent: More specific name indicating interaction with the AI agent.
  5. appLoadinginitialLoading: Clearer distinction for initial app loading state vs other loading states.

Component Changes: 6. onSendonSubmit: Renamed Input component prop to follow standard form conventions and improve clarity.

Parameter Changes: 7. uid Parameter Location: uid now needs to be passed inside extraParams object instead of as a direct parameter for better parameter organization.

Removed Features ⚠️
  1. resetChat Function: Removed from hook as startNewConversation can be used directly for the same functionality, reducing API complexity.
  2. updateConversationId Function: Removed to simplify conversation management - use startNewConversation for new conversations.
Improvements 🔧
  1. Proper Interface Management: Enhanced TypeScript interfaces with better type safety and clearer property definitions.
  2. Consistent API Naming: All methods now follow consistent naming patterns for better developer experience.
  3. Simplified Conversation Flow: Streamlined conversation management by removing redundant functions.
  4. Better Parameter Organization: Grouped related parameters into objects for cleaner API structure.

Initial Release

  • Release Date: 29/07/2025
  • Components Version: 1.0.0
  • Hooks Version: 1.0.0
Highlights ⚡️

The first official release of the Shopping Assistant SDK, designed for seamless integration of AI-powered conversational shopping into React applications.

Features 🚀
  1. UnbxdShoppingAssistantWrapper: Context provider for managing conversation state and API communication.
  2. useShoppingAssistant Hook: Core hook providing AI interactions, conversation management, and state handling.
  3. Chat Component: Complete chat interface with user/AI message rendering, product recommendations, and interactive filters.
  4. InputBar Component: Text input interface with customizable send button and Enter key support.
  5. ResetChat Component: Conversation reset functionality with customizable reset interface.
  6. AI-Powered Conversations: Natural language processing with contextual responses and multi-turn conversation support.
  7. Product Integration: Seamless product recommendations and filter application through conversational queries.
  8. TypeScript Support: Full TypeScript definitions for enhanced developer experience.
  9. Customizable UI: Fully customizable components with support for custom styling and theming.
  10. Storage Options: Configurable conversation persistence with localStorage or sessionStorage support.