Messenger and help center
A chat bubble for your site or app, like Featurebase's or Intercom's messenger. It has three tabs:
- Home: your greeting, the latest chat, a help search and your top articles.
- Messages: the chat with your team. Every chat lands in Support as a conversation. You answer there, or Cass, the Customer experience agent, does (Support › Automation › AI answers).
- Help: your published help articles from Support › Help center, by collection and searchable, read right in the panel. Under each article: "Did this answer your question?" and a button to write to you.
When an answer arrives while the panel is closed, the visitor hears a short sound, the bubble shows a count and a preview card appears above it. An answer the agent based on an article links that article.
Screenshots and files#
So a visitor can report a bug in seconds, the chat takes files: the paperclip in the message field picks pictures (PNG, JPEG, WebP, GIF) or a PDF, a screenshot on the clipboard attaches with Cmd/Ctrl+V, and files can be dropped onto the panel. On computers the paperclip also offers Screenshot of this page: the browser asks once to share the tab, the messenger hides for the picture and comes right back (on phones people take a screenshot with the phone and pick it). Up to 4 files per message, 10 MB each; a message can be only a picture. Each message also carries the browser, system and window size, shown as one gray line under it in Support with the page it was written on. Cass sees the pictures too, so the AI answer can read the screenshot. Files stay private: only the visitor who sent them and your team can open them.
In React Native the paperclip shows when expo-image-picker is installed (npx expo install expo-image-picker) and picks photos and screenshots from the library.
Change the look in MRRocket#
Support › Messenger sets each product's messenger: color, light or dark, left or right, title, greeting, the reply time you promise ("We usually answer within a few hours"), the button's text, whether the chat button shows in your app too, and whether it shows the Help tab, plays the sound, previews answers and asks for an email. A live preview sits beside it, and every change saves at once. Your site and app pick it up the next time a page or the app opens, without new code. Anything your code sets (below) wins over these settings.
Next.js and React#
Once, inside <CockpitProvider>:
import { Messenger, useMessenger } from "@mrrocket/sdk/next";
<Messenger title="Acme" greeting="Hi! How can we help?" />;
// From your own button:
const messenger = useMessenger();
<button onClick={() => messenger.open("help")}>Help</button>;| Prop | Default | |
|---|---|---|
title, greeting | Your product's name, "Hi! How can we help?" | The name beside your mark on Home and the big line on Home |
launcher | true | The round button; false opens it only from your code or data-ck-messenger |
help | true | The Help tab (hidden while you have no published article) |
sound | true | The short sound on a new answer |
preview | true | The answer's card above the closed bubble |
askEmail | true | Anonymous visitors may leave an email |
position | "bottom-right" | A corner, the middle of the top or bottom ("top-center", "bottom-center") or of a side ("middle-left", "middle-right") |
corners, header, font | "round", "plain", "site" | How round it is ("soft", "square"), Home's top in your color ("color"), the system font ("system") |
label, theme, accent | The button's text and the colors |
"Powered by MRRocket" shows at the bottom; on Studio and Agency you can switch it off in Support › Messenger.
open() takes "home", "messages", "help" or { article: "<id>" }. Any element with data-ck-messenger opens it too.
Script tag#
Add data-messenger="true" to the tag:
<script async src="https://app.mrrocket.dev/sdk.js" data-key="mrr_pub_…" data-messenger="true" data-messenger-title="Acme"></script>Also data-messenger-greeting, -label, -position="top-right", -corners="soft", -header="color", -font="system", and "false" for -help, -sound, -preview or -ask-email. mrrocket.messenger.open() opens it from your code. The messenger loads as its own small file, only on pages that use it.
React Native and Expo#
<MRRocketProvider> draws it. Add a bubble, or open it from your own Help button:
<MRRocketProvider apiKey="mrr_pub_…" messenger={{ launcher: true, title: "Acme" }}>
const messenger = useMessenger();
<Button title="Help" onPress={() => messenger.open("help")} />A new answer shows as a banner at the top of the app. With expo-haptics installed (npx expo install expo-haptics) the phone gives a light buzz; apps play no sound of their own.
identify(user.id, { name, email }) and their chats carry their name and email, and the messenger does not ask for an email.