Skip to main content

Smart Consultation Widget Configuration

· 2 min read

Temporary documentation - Recording widget optimization configuration

Optimization Goals

Based on user behavior and UED analysis, optimize the click-to-open experience for the smart consultation widget.

Contextual Welcome Messages

Page PathDetection ConditionWelcome Message
Homepage/ or /docs"Hello! I'm the CCLHUB Smart Assistant. I can help you with: Product features, Usage guides, FAQ"
E-commerce Toolkitbrowser-plugin"Hello! About the browser plugin, I can help you with: Installation, Feature usage, Data export, Platform support"
AI Operationsai-analytics"Hello! About the analytics platform, I can help you with: Account setup, Feature operations, Report interpretation, API integration"

Quick Questions Configuration

PageQuick Question 1Quick Question 2
Homepage"How to get started?""Which platforms are supported?"
E-commerce Toolkit"How to install the plugin?""Plugin not showing data?"
AI Operations"How to connect data?""How to view analytics reports?"

Collection Mapping

PageCollectionDescription
Homepageproduct_helpGeneral product help
E-commerce Toolkitproduct_helpBrowser plugin help
AI Operationsproduct_helpAnalytics platform help

Mobile Adaptation

// Responsive size configuration
const getChatWindowStyles = () => {
const isMobile = window.innerWidth < 640
return {
width: isMobile ? 'calc(100vw - 32px)' : '380px',
height: isMobile ? '60vh' : '520px'
}
}

First Visit Guidance

  • First visit: Widget button shows breathing animation + red dot
  • Auto-dismiss after 3-5 seconds
  • Use localStorage to track first visit status

Naming Conventions

  • Widget Button: "Smart Consultation"
  • Widget Title: "Smart Consultation"
  • Product Name: "AI Support" (not "Smart Support")

Implementation Priority

  1. ✅ Product context detection + contextual welcome messages
  2. ⏳ Quick question presets
  3. ⏳ First visit guidance
  4. ⏳ Mobile adaptation