Skip to main content

Data Model: hbf-webchat

This service does not directly access domain objects. It is a client-side web widget (TypeScript/React 18) that communicates via Microsoft Bot Framework Direct Line.

Data Consumed (Client-Side)

ObjectAccessKey Fields Used
BotDeployment configurationreads via HTTP fetch to hbf-coretenantId, deploymentId, widget settings, styling
Chat messagesreads/writes via Direct Line WebSockettext, attachments, suggested actions, adaptive cards
CSAT surveysreads via bot messagessurvey questions, responses

Local State (Browser)

ObjectStoragePurpose
SessionlocalStorage/sessionStorageuserId, conversation token, session duration
Message historyin-memory storetranscript for display and replay
Bot propertiesin-memorywidget configuration, styling, feature flags

Notes

  • No server-side data access. Pure frontend widget.
  • Fetches bot deployment configuration from hbf-core's public API at initialization.
  • All conversation data flows through Microsoft Bot Framework Direct Line protocol.
  • No dependency on @helvia/hbf-core-api.
  • Supports multiple channels: embedded web widget with configurable styling.
  • Manages local notification state, speech-to-text, and file upload capabilities.