Support inbox
Give your team a place to answer customer messages.
Use Tori for a ready-made support inbox
If you are using TalkJS for customer support, we recommend trying Tori (our customer support product, built on TalkJS) instead. Tori gives you a shared inbox for answering customers and leaving private notes, with excellent AI support agents that handle the majority of customer questions for you.
This guide shows how to add a staff inbox to an existing service. It assumes you have already added the customer-facing chat popup.
In your existing conversation setup, add staff as participants. This JavaScript Data API example adds Alex and Sam by their TalkJS user IDs:
const conversation = session.conversation(conversationId);
await conversation.participant("support_alex").createIfNotExists();
await conversation.participant("support_sam").createIfNotExists();Alex and Sam can now both see the conversation and reply to the customer.
On your staff page, show the inbox with the signed-in staff member's TalkJS user ID. These examples use staffUserId for that ID.
'use client';
import { Inbox } from "@talkjs/react-components";
import "@talkjs/react-components/default.css";
export function SupportInbox({ staffUserId }) {
return (
<Inbox
appId="<APP_ID>"
userId={staffUserId}
style={{ width: "100%", height: "600px" }}
/>
);
}The inbox lists the conversations that staff member participates in. Selecting a conversation opens it for replying.
For private staff messages and notes, create a separate conversation with a random ID and add only staff as participants. Store the ID with the support case and return it only to staff.