Put the chat in your product.
A React hook or a script tag gives you a finished chat. Go headless and every pixel is yours. Light and dark themes, voice input and read-aloud are included.
From $18/month for your whole team after the trial. Card required. No charge if you cancel within 14 days. Available to businesses in the UK and US.
A launcher in the corner of the page. It opens a chat panel, and fills the screen on a phone. Left or right.
const masheev = useMasheev({
inboxId: "inb_123",
mode: "chat-widget",
position: "right",
});Load it your way.
SupportButton.tsx
import { useMasheev } from "@masheev/embed-sdk/react";
function SupportButton() {
const masheev = useMasheev({
inboxId: "inb_123",
mode: "chat-widget", // floating bubble
position: "right",
colorScheme: "auto",
});
return (
<button onClick={() => masheev.open()}>
Need help?
</button>
);
}widget.js
import { init, open } from "@masheev/embed-sdk";
init({
inboxId: "inb_123",
mode: "chat-widget",
position: "right",
});
open();index.html
<script src="https://unpkg.com/@masheev/embed-sdk"></script>
<script>
Masheev.init({
inboxId: "inb_123",
mode: "chat-widget",
position: "right",
});
</script>Or draw it yourself.
When the design has to be yours, go headless. Masheev handles the AI, streaming and session; you render the conversation.
import { MasheevProvider, useMasheev } from "@masheev/embed-sdk/headless";
function Chat() {
const { messages, sendMessage, isConnected } = useMasheev();
// Render messages with your own components
return <YourChatUI messages={messages} onSend={sendMessage} />;
}
// Streams over WebSocket, no iframe. On the web, add turnstileSiteKey for bot protection.
export default function App() {
return (
<MasheevProvider inboxId="inb_123">
<Chat />
</MasheevProvider>
);
}What you get.
A React hook
useMasheev returns open and close, send, events, live context updates and an isReady flag, so the assistant is a few lines of code.
Matches your product
Light, dark or automatic colour scheme, plus your own placeholder, agent name and starter questions.
Voice input and read-aloud
Speech-input and read-aloud hooks let people talk to the assistant and hear its answers, as well as type.
Live context and events
Pass user identity and context at runtime, and subscribe to ready, message, resolved and tool events to respond in your app.
You are looking at it.
- Mode
- chat-widget
- Hook
- useMasheev
- Package
- @masheev/embed-sdk
The chat on this site runs on this SDK. Open it and ask something.
Frequently asked questions
Still have questions?
How do I add an AI chat widget to my website?
Install @masheev/embed-sdk and call the useMasheev React hook, or init() in vanilla JS, with your inbox ID. You can also use a single script tag. Then choose a mode: chat-widget (a floating bubble), prompt-input (a prompt bar) or embedded (fills a container).
Does it work without React?
Yes. The vanilla JS entry point (@masheev/embed-sdk) works with any stack through init() and open() or a script tag. The React entry point (@masheev/embed-sdk/react) wraps it in the useMasheev hook.
Can I build my own chat UI instead of using yours?
Yes, with the headless package (@masheev/embed-sdk/headless). It opens a WebSocket session and exposes messages, sendMessage, connection status and read-aloud controls. You render the interface; Masheev handles the AI, streaming and session.
Can users talk to it by voice?
Yes. The SDK includes speech-input and read-aloud hooks, so people can speak to the assistant and have its answers read back, which helps when their hands are busy.
Is the widget secure?
Sessions use short-lived HMAC-signed tokens, Cloudflare Turnstile bot protection, and per-session and per-IP rate limits. The iframe runs under a strict content security policy. Your conversation data is stored in the EU or US region you choose. AI, voice and messaging providers process it as listed on our sub-processors page, and some of them are outside that region.
Explore more
Add it today.
Start building
From $18/month for your whole team after the trial. Card required. No charge if you cancel within 14 days. Available to businesses in the UK and US.