Chat Widget – English Demo

The chat bubble is in the bottom-right corner. Below is a full explanation of every setting you can change β€” just edit the matching value in the script tag at the top of this file.

What the widget looks like

Configurable settings (data attributes)

  1. data-title β€” Header title text.
    Current value: DDoptics experts
    Change to any name you want shown in the widget header.
  2. data-status β€” Status line below the title.
    Current value: Help & advice within minutes
    Adjust the copy or swap for an out-of-hours message.
  3. data-placeholder β€” Placeholder text inside the message input.
    Current value: Write a message…
  4. data-greeting β€” The first bot message shown when the chat opens, before the server responds.
    Current value: Hi! DD Optics here πŸ‘‹ I'm trained to answer any questions you have in English.
    Note: the AI agent also sends its own greeting β€” coordinate the two to avoid repetition.
  5. data-chips β€” Category tile labels, separated by |. Must have the same number of entries as data-chip-icons.
    Current value: Rifle scopes|Binoculars|Spotting scopes|Accessories|Service
    Clicking a tile sends its label as a user message. Remove both chip attributes entirely to hide the card.
  6. data-chip-icons β€” Icon image paths for the category tiles, separated by |. One path per tile, matching the order of data-chips.
    Current value: /icons/chat_icons/target.png|/icons/chat_icons/binoculars.png|/icons/chat_icons/spektive.png|/icons/chat_icons/settings.png|/icons/chat_icons/service.png
  7. data-error-connect β€” Message shown when the server cannot be reached on startup.
    Current value: Sorry, I was unable to connect at the moment. Please try again later.
  8. data-error-msg β€” Message shown when a message fails to send mid-conversation.
    Current value: Something went wrong. Please try again.

Fixed settings (not configurable)

Mobile behaviour

On screens narrower than 768 px the widget fills the full viewport (no rounded corners, no edge padding). The expand button is hidden. Category tile labels are always visible on mobile at 8 px bold β€” the compact-mode hide rule is overridden so users can read the tile names without hovering. iOS safe-area insets are respected so content is never hidden behind the home indicator.