(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

DynamicChatComponent User Manual

The DynamicChatComponent is an interactive chat interface for dynamic applications. It supports user and bot messages, custom rating icons, and event-driven actions. This manual describes all configurable properties, grouped by category, with examples.


General Properties


Visual Properties

  [
    {
      "name": "thumbs-up",
      "tooltipTranslations": { "en-US": "Helpful", "de-DE": "Hilfreich" },
      "alternateIcon": "thumbs-up-filled",
      "isClickableOnce": true,
      "events": [/* ... */]
    }
  ]

Data Source Properties

  [
    { "type": "ON_SEND_MESSAGE", "actions": [/* ... */] },
    { "type": "ON_CONTENT_CLICK", "actions": [/* ... */] }
  ]

Authorization


Testing Hooks


Event Actions


Example Configuration

{
  "id": "supportChat",
  "displayName": "Support Chat",
  "botMessageRatingIcons": [
    {
      "name": "thumbs-up",
      "tooltipTranslations": { "en-US": "Helpful" },
      "alternateIcon": "thumbs-up-filled",
      "isClickableOnce": true,
      "events": [{ "type": "ON_ICON_CLICK", "actions": [] }]
    }
  ],
  "maxMessageLength": 500,
  "events": [
    { "type": "ON_SEND_MESSAGE", "actions": [] },
    { "type": "ON_CONTENT_CLICK", "actions": [] }
  ],
  "dataTestId": "support-chat-component"
}

Data Documentation

The component manages an array of chat messages, each with properties such as type (user or bot), content, and timestamp.
Example message:

{
  "type": "user",
  "question": "How can I reset my password?",
  "timestamp": 1697800000000
}

Summary

DynamicChatComponent provides a flexible chat interface with customizable visual elements, event-driven actions, and support for testing and authorization. By configuring its properties, you can tailor the chat experience to fit a wide range of application needs.