The orange Muse chat-bubble mark says it all: a friendly orange bubble, a white Muse "M" inside, and three little dots underneath. Tap it, and help pops open.
A fake pop-up support AI chat window that is real where it counts. It floats on any site, opens a live chat, and talks to a backend through one configurable endpoint. Built to test the Muse AI support widget, and built to ship.
Live demo link: https://git-fed.github.io/muse-ai-support-widget/
Open the demo, tap the orange button in the bottom right corner, and try it. The demo is index.html at the repo root, so GitHub Pages serves the Space as the site. It loads the widget from widget/ and shows it working on a sample site. No backend is connected on the static demo, so a message gets a clear offline reply instead of a fake answer. Deploy the worker, point the endpoint at it, and the same widget gets live replies.
- Floating button, bottom right, with an unread badge
- Chat window with greeting, suggestion chips, and typing indicator
- Message history saved in localStorage, so a refresh keeps the chat
- Backend call to a configurable endpoint, with a clear offline message if no backend answers
- No secrets in the code. No keys, no tokens, no hardcoded backend.
- Search inside the conversation, with highlighted matches and a match count
- 6 topic shortcuts on the empty state: Getting started, Pricing, Install the widget, Customize colors, Connect a backend, Report a bug
- Expandable window for a bigger chat view
- Emoji picker
- Auto-growing input with a 0/2000 character counter
- Bold formatting in AI replies (
**text**renders bold) - Typing timer that shows how long the reply is taking
- Scroll-to-latest button when you scroll up
- Delivered ticks: one tick sent, two ticks delivered
- Transcript download as a text file
- End-of-chat 1-5 star rating
- Live stats: message count, average reply time, thumbs up/down, average stars
- Thumbs up and down on every AI reply
Step 1. Copy the widget files into your site.
widget/muse-support-widget.js
widget/muse-support-widget.css
favicon.svg
Step 2. Add the widget to your page, before </body>.
<link rel="stylesheet" href="widget/muse-support-widget.css">
<link rel="icon" type="image/svg+xml" href="favicon.svg">
<script>
window.MUSE_SUPPORT_ENDPOINT = "https://YOUR-WORKER-URL/api/chat";
</script>
<script src="widget/muse-support-widget.js"></script>Step 3. Deploy the worker and point the endpoint at it.
Deploy worker/worker.js on Cloudflare Workers, set the allowed demo origin at the top of that file, and put the worker URL in window.MUSE_SUPPORT_ENDPOINT. That is the whole install.
The Widget Lab on the demo page lets you test the widget like a product. Change these, and they save to the backend config:
- Agent name
- Greeting message
- Accent color
- Left or right position
- Proactive "Need help?" bubble
Or set them in code before the widget script loads:
<script>
window.MUSE_SUPPORT_CONFIG = {
agentName: "Muse Support",
greeting: "Hi, I am Muse Support. Ask me anything about Muse AI.",
accent: "#ff6b1a"
};
</script>The widget sends POST /api/chat with JSON { message, history }. The worker in worker/worker.js validates the input, allows CORS for the demo origin only, and returns JSON { reply, suggestions }.
The worker is a clean stub right now. The exact spot to add the live Muse backend call is marked with a TODO in worker/worker.js. Put the backend key in a Worker secret, never in the file.
| File | What it does |
|---|---|
widget/muse-support-widget.js |
Standalone pop-up chat widget, all v2 features, localStorage history |
widget/muse-support-widget.css |
All widget styles, orange accent, mobile friendly |
worker/worker.js |
Cloudflare Worker stub for POST /api/chat, input validation, CORS |
index.html |
The Space as a page, served by GitHub Pages at the repo root, loads the widget and shows it working |
demo/index.html |
Same demo page, kept under demo/ |
favicon.svg |
Orange chat-bubble favicon with a white Muse mark |
LICENSE |
MIT License |
.gitignore |
Ignores node modules, Wrangler files, and local env files |
MIT License. Copyright (c) 2026 Git-FED / FEDPromptly LLC. See LICENSE.