Site chat
A chat bubble on your own website: visitors ask a question, you answer from the Sumidata dashboard - with the visitor's session replay one click away. Included on every plan.
01Turning it on
One attribute on the snippet you already have. No separate script, no extra setup.
Add data-chat="true" to the Sumidata <script> tag - or flip the Site chat switch on the Install page and copy the snippet from there.
<script
src="https://sdk.sumidata.io/loader.js"
data-project-id="YOUR_PROJECT_ID"
data-src="https://sdk.sumidata.io/sumidata.js"
data-chat="true"
async
></script>A dark Ask us anything bubble appears in the bottom-right corner of every page that carries the snippet. The chat loads separately, after the SDK has started, so it does not slow down your page.
@sumidata/browser npm package? Pass chat: true to init() instead of the attribute - the widget code loads from the package when the chat starts.02Matching your site's colors
CSS variables in your own stylesheet. Leave one out and that part keeps its default color.
The widget takes its colors from CSS variables. Set them on :root in your site's stylesheet and the chat picks them up on every page - no change to the snippet.
:root {
--sumidata-chat-primary: #2f7f34;
--sumidata-chat-primary-hover: #1b5e20;
--sumidata-chat-on-primary: #ffffff;
--sumidata-chat-accent: #f9a825;
--sumidata-chat-bg: #f9fbf9;
--sumidata-chat-surface: #ffffff;
--sumidata-chat-text: #111811;
--sumidata-chat-muted: #718096;
--sumidata-chat-border: #e2e8e2;
}| Variable | What it colors |
|---|---|
--sumidata-chat-primary | The bubble, the visitor's messages, the Send button and input focus |
--sumidata-chat-primary-hover | The bubble and the buttons on hover |
--sumidata-chat-on-primary | Text on the bubble, the visitor's messages and the buttons |
--sumidata-chat-accent | The reply-waiting dot and the small status dots |
--sumidata-chat-bg | The panel background |
--sumidata-chat-surface | Your team's replies and the input fields |
--sumidata-chat-text | The title, your team's replies and typed text |
--sumidata-chat-muted | Hints, times, the close button and the footer link |
--sumidata-chat-border | Borders and dividers |
03What a visitor sees
A small panel with the conversation, a message box and an optional email field.
- Clicking the bubble opens a Questions & answers panel. On phones it takes the whole screen.
- The visitor types a question and presses Send (or Enter). A message can be up to 4,000 characters.
- The + button attaches one image per message - a screenshot is the usual case. The visitor sees a preview in the conversation; clicking it opens the full size.
- After the first message the panel offers an optional email field: Leave your email - we'll notify you about the reply. Leaving it is up to the visitor.
- While the panel is open, your replies appear within a few seconds.
| Images | Limit |
|---|---|
| Formats | Images only: JPG, PNG, GIF, WebP |
| Size | Up to 5 MB per image |
| Per message | One image, with or without text |
Anything else is refused with Images only, up to 5 MB, and nothing is sent.
04Answering from the dashboard
Chats in the project's sidebar. Every member of the workspace can read and reply.
- Open Chats in the project's sidebar. Conversations are listed newest first; a badge in the sidebar shows how many are waiting for a reply. Search finds a conversation by the visitor's email.
- A conversation shows the whole thread and the page where the question was asked. View session → opens the replay of that visitor's latest session, so you see what they were doing when they asked.
- Reply with text, an image, or both - the same image limits apply.
- Delete removes the conversation for both sides, images included.
05How notifications arrive
Email in both directions. Grouped, so a busy site does not flood an inbox.
| Who | When | What they get |
|---|---|---|
| Your team | A visitor sends a message | New chat message on your site - the start of the message, the page it came from and an Open Chats button that opens the conversation. Sent to every member of the workspace. |
| The visitor | You reply, if they left an email | You got a reply to your question - the start of your reply and a link back to the page where they asked. |
Several messages in a row are grouped: one conversation sends at most one email every five minutes, and one site sends your team at most 30 alerts an hour. Visitors who left no email see your reply the next time they open the chat on your site.
06Good to know
Privacy, spam protection and how long conversations are kept.
- Conversations belong to their project: only people in your workspace can see them.
- Spam protection is built in. A visitor can send up to 10 messages a minute in one conversation and start up to 3 conversations an hour; past that the widget asks them to wait a moment.
- Conversations and their images are kept for up to 3 years after the last message, like the rest of your data, and then deleted.
- Site chat is included on every plan, Free too. Messages are not counted against your plan's limits.
