Skip to main content
The chat widget is a floating button that opens a conversation panel. It runs on any site, needs no framework, and is kept deliberately small.
The chat open on a coffee shop's site, with the shop's opening message and a visitor typing a question

Set it up

1

Add the chat

In the dashboard, go to Channels and pick Chat on your website, or open Your website in Get started. Your chat is created straight away, with an opening message and a colour you can change later.
2

Pick what your website is built with

HTML, WordPress, WooCommerce, Next.js / Vercel, Notion, iFrame or Webflow.
Add the chat to your website: tiles for HTML, WordPress, WooCommerce, Next.js / Vercel, Notion, iFrame and Webflow, and a Copy prompt button for AI agents
3

Follow its steps

Each platform has its own short steps, with your code ready to copy.
Add the chat to HTML: copy the one line of code, paste it before the closing body tag, send a test message, with Someone else builds your site? and Copy prompt beside them
4

Send a test message

Open your site and write in the chat. The message lands in your inbox, and the install window turns green.
Someone else builds your site? Type their email under Someone else builds your site? and we send them the steps with your code. If they reply, it comes to you. Building your site with an AI agent such as Claude Code, Cursor or Lovable? Copy prompt gives you instructions with your code already in them. Paste them into the agent and it adds the chat for you. Until the chat has loaded on your website, its row under Channels reads Waiting for your website, with Finish installing to reopen the steps and Customize to change the questions and the look. Once it is live, the same settings are under Configure.
The Website chat row reading Waiting for your website, with Customize and Finish installing buttons

Install on your platform

HTML

Paste it just before the closing </body> tag on every page, or in your site’s footer template. The script is async, so it never holds up your page.

WordPress and WooCommerce

Install the miniDesk.ai plugin from wordpress.org, open miniDesk in the WordPress sidebar and click Connect with miniDesk. The plugin adds the chat for you, and with WooCommerce the AI can also answer “where is my order?”. See WordPress.

Next.js and Vercel

Put it inside <body> in app/layout.tsx (App Router), or inside your component in pages/_app.tsx (Pages Router), then deploy.

Notion

Copy your chat link, which looks like https://cdn.minidesk.ai/widget/current/chat.html?key=mdw_.... In your Notion page, type /embed, paste the link and click Embed link. The chat shows as a box on the page rather than a bubble in the corner.

iFrame

For a site builder that accepts an embed or HTML block but not a script, the same chat link goes in a frame:

Webflow

Paste the HTML snippet into Site settings → Custom code → Footer code, save, then publish your site. Webflow allows custom code on paid site plans only.

Where it loads

The chat loads on any website where its code is pasted, including preview and staging addresses. localhost works too, so you can try it while you build, but it does not count as installed. Neither does your own help center, which shows the chat by itself. If the same chat is on your website and on a subdomain, like example.com and app.example.com, the visitor keeps one conversation across both. The chat saves it in a cookie on your main domain. Two separate domains, like example.com and example-app.io, each keep their own conversation. The chat’s row under Channels lists the websites it loaded on in the last 30 days (“Seen on yoursite.com”). If you see a site that is not yours, someone has copied your code: remove the chat and add it again to get a new key.

The public key is public

data-public-key is meant to sit in your page source. It is not a secret and it cannot read anything. It identifies which chat is asking. Visitor traffic is rate limited per site and per visitor, and the “Seen on” list shows you where it runs. Do not confuse it with an API credential, which starts with mdsk_api_ and must never appear in a browser.

Asking for an email address

You can have the widget ask for an email after the visitor’s first message. The ask happens in the conversation, after they have said what they want, not as a form standing in front of the chat. A visitor who has already typed their question is far more likely to leave an address than one who has been asked for one before they could ask anything. If the chat has pre-chat questions, the email is asked with them instead, since the visitor is already answering a few questions. A pre-chat Email question you added is used for this. Otherwise one is added to the end, and it is required when the setting is. An address given this way is stored unverified. See requesters for what that means and why.

When the visitor leaves, the chat moves to email

Most visitors do not wait for an answer. They close the tab, or leave it behind others. If they gave an email address, the conversation follows them to their inbox.
1

They step away

The visitor closes the tab, or leaves it in the background.
2

Fifteen minutes later, we email them the conversation

The email holds everything said so far, including any answer the AI already gave. It tells them that new answers will come by email, and that they can reply to it.
3

From then on, it is an email conversation

Every reply you send from the inbox is emailed to them, unless they are back in the chat. When they reply to the email, their message lands in the same conversation in your inbox.
The email a visitor gets after leaving: the conversation so far, and a note that they can reply to continue
The ticket’s source changes from widget to email when the recap is sent, and the conversation timeline records the change.
You do not need to set up the Email channel for any of this. That channel only receives mail sent to your own support address. These emails go out from us, with a reply address unique to this conversation, so the customer’s answers always find their way back.

What to expect

  • One recap per conversation. It is sent once and never again.
  • Coming back within fifteen minutes cancels it. Somebody who switched tabs to find their order number goes back to the chat, not to their inbox.
  • No address, no recap. Without an email, your reply only reaches them while the chat is open. This is the main reason to ask for an address.
  • A resolved or closed conversation is not mailed.
  • Internal notes are never included. Only messages the customer could already see go into the email.
  • They can still come back to the chat. New messages still appear in the chat panel if they reopen it. This holds even after they close the tab, for six months after their last visit in the same browser.
  • While they are in the chat, replies stay in the chat. A reply sent while they have the chat open on screen is not emailed, so a live conversation does not fill their inbox. Once they leave again, replies go by email.
  • AI auto replies follow the setting for where the reply goes. Your Live chat setting while they are in the chat, your Email setting while they are away.

What the chat asks, offers and says first

Open the chat’s dialog on the Channels screen. Its Conversation start tab holds the first two settings below. Pre-chat questions are asked before the first message. Each one is a Name, Email, Text or Choice answer, and can be required. Name and email fill in the customer. The other answers show on the conversation, and a question can also save its answer to a customer field, if that field is open to the widget. With no questions, visitors write straight away. Proactive messages let the chat speak first. You set the message, the page path (/pricing also covers the pages under it, and empty means every page), how many seconds the visitor spends on the page before it shows, and quick replies to offer with it. Each visitor sees each proactive message once. Q&A tab, in the Settings tab, adds a Q&A to the chat: your published help center articles, by category, most read first, with a search. The chat’s home shows the first three, and while a visitor types, the chat offers the articles that match. Each article asks whether it helped, and the answers count with your help center’s. Visitors see it as Q&A in English and FAQ in French, German, Spanish and Portuguese. It turns on by itself when your help center goes live.

In the conversation

  • Photos and files. Visitors can send images, up to 10 MB each. Members can also send PDFs.
  • Emoji. The composer has an emoji picker.
  • Quick replies and cards from your team. A member can add tap-to-answer replies, or a card with a title, text and a button link, to a message.
  • Typing preview. Members see what the visitor is typing before they send it.
  • Outside business hours, the chat tells the visitor when your team is back, from Settings → Business hours. To take the chat off the page instead, turn on Hide the chat outside business hours in the chat’s Settings tab. A visitor already in a conversation still sees it, so they can read your reply.
  • Who answered. By default, every reply comes from your business. Turn on Show the picture of who answered or Show the name of who answered in the chat’s Settings tab, or both, to show visitors the member behind each reply. The picture and name come from each member’s profile, and a member with no picture shows their initials. With pictures on, your team shows at the top of the chat and one of them says the opening message. AI replies show your logo and workspace name. With both off, the name never leaves miniDesk.
  • A rating at the end. When Ask for a rating is on, a resolved chat asks the visitor how you did, from 1 to 5, in the chat window.
  • Home. A visitor’s first time, the chat opens on a new conversation. After that it opens on their conversations, a button to start another, and your most read articles. A new conversation from the same browser is the same customer in your inbox, and an email given in one of them is on all of them.
  • Quick actions. The menu at the top of the chat minimizes it, makes it larger, mutes its sounds, downloads the conversation as a text file, or starts a new one. The previous conversation stays in your inbox and on the chat’s home. Clear my conversations takes them off the visitor’s browser, for a shared computer.

Telling the chat who the visitor is

If your page knows who is signed in, say so before the widget loads, and members see a name instead of an anonymous visitor:
Every field is optional. The chat reads the object each time the visitor sends a message, so a single-page app that signs someone in without a reload is picked up on their next message. These values come from the visitor’s browser, so they are claims: the customer is stored as unverified, and the AI never looks up data on the strength of them. attributes are written to customer fields only when the field is open to the widget. They never put the chat under a customer your server created with an external_id, nor change that customer: only a token does. To have the visitor verified, so the AI can read their billing or account data straight away, your server signs a token and the page adds it to the same object. Set it up under Proving who the visitor is on the chat’s Install tab: see identity verification. Without a token, the AI can still ask the visitor to confirm their email with a code when it is answering on its own.

When they sign out

The chat keeps a visitor’s conversations in their browser for six months. On a computer somebody else may use next, unlink them when your page signs the visitor out:
Your inbox keeps the conversations. The chat also clears them by itself when your page names another visitor, by id or email. The WordPress plugin does it for you.

Opening the chat from your own button

The bubble in the corner is not the only way in. A button or link on your page can open the chat:
open() exists once the chat has loaded, shortly after your page finishes loading. Written with ?. as above, a click that comes earlier does nothing rather than throwing an error. The chat adds open() and reset() to the window.miniDesk object your page may already have made for visitor. If your page sets window.miniDesk = { visitor: ... } again after the chat has loaded, that replaces the object and both are gone: change window.miniDesk.visitor instead.

Moving the bubble

The bubble sits 16px from the bottom of the window and 32px from the side you chose. If your page has its own fixed elements in that corner, such as a sticky checkout bar, a sidebar’s account row or a cookie banner, move the bubble from your own stylesheet with two CSS custom properties:
The open panel and the message cards above the bubble move with it. Setting them on :root works too. These two properties are the supported way to place the chat, and their names will not change. The chat draws inside its own shadow root, so the rest of your stylesheet cannot reach it, and CSS aimed at what is inside would break with the next update. Because they are ordinary CSS, a value can differ per site, per page or per screen size. Each site’s stylesheet sets its own, with the same key, and a media query gives phones another one:
For a bar that comes and goes, tie the value to a class your page adds. The bubble moves as soon as the class changes, without a reload:
Use a length, such as 80px or 5rem. A value without a unit is ignored and the default stays. A value above 40% of the window is held at 40%, so the bubble stays on screen. On a phone set to full screen, the open chat still fills the screen.

On a phone

Two choices:
  • Full screen, the default and almost always right. A floating chat panel over a phone screen has no room to be useful.
  • Floating panel, for the rare case where your site is itself a full-screen mobile app that cannot give up the view.

Turning it off

The Pause switch on the placement stops the key from resolving. The widget then renders nothing at all, not a broken panel, so you can pause it without touching your site’s code. Conversations that already arrived stay in your inbox.