5 min read

Concepts

The handful of ideas behind TeamShelf — teams, leads, specialists, sections, the shelf, conversations and visitors.

Teams

A team is a set of AI bots you embed together. Each team has its own public key (ts_…), its own allowed origins, one OpenAI key, and its own bots. Most products need one team; add another when you want a different crew on a different app.

Leads and specialists

One bot on the team is the primary bot, or lead. It’s pinned at the top of the shelf and selected by default, so most requests go to it first. The lead handles simple questions itself and hands specialist work to its teammates, then combines their answers into one reply.

Every other bot is a specialist with a narrow job — scheduling, carrier tracking, clause review. A one-line role description (“how other bots see it”) tells the lead what each specialist is for. See Lead & delegation.

Users can also talk to a specialist directly by selecting it on the shelf, or ask the lead to involve someone with an @mention.

Sections

Sections group specialists on the shelf — for example Front desk, Coverage and Outreach. Each section gets its own color family by default, and the expanded shelf shows section names as headings. Bots that aren’t in a section appear after the sections. See Sections.

The shelf

The shelf is the vertical strip the embed adds to your page. It floats over your app, anchored left by default, inside a shadow root so your CSS and the shelf’s CSS never collide.

It has three layouts:

  • Collapsed — a narrow rail of bot avatars (the default).
  • Expanded — names, one-line status and section headings. Toggle with the chevrons at the top.
  • Folded — just the lead, plus a chevron to unfold the rest. Fold with the chevron at the bottom of the strip. The folded state is remembered for the browser tab’s session, per team.

Status at a glance

Each bot shows its state with a small dot and, when expanded, a status line. States are per visitor: each person sees their own.

StateDotMeaning
WorkingBlue, pulsingA run is in progress. The status line shows live activity.
Needs attentionAmberThe bot is waiting for an answer, or its last run failed.
New replyGreenIt finished with a reply this visitor hasn’t read yet.
IdleNone, dimmedNothing waiting. Bots that have never replied also show a dash.

The selected bot is never dimmed, and its outline uses the bot’s own color. While the shelf is folded, the unfold chevron carries a dot for the most urgent hidden state — attention beats working beats a new reply.

Conversations

Clicking a bot opens a message bar at the bottom center of the page, with a conversation panel above it. Users can switch bots from the picker, @mention teammates, attach files, and answer the questions and approval cards bots post. Opening a bot’s conversation marks its replies read. The trash icon clears the visitor’s own conversation with that bot, after a confirmation; other visitors’ conversations aren’t touched. Clicking anywhere outside the message view closes it; an unsent draft is kept.

Voice input isn’t available yet.

Visitors

Each person using your site is a visitor. The bots and their setup are the same for everyone, but each visitor has:

  • Their own conversations with every bot on the team. Nobody else sees them.
  • Their own status. Read and unread state, and live status like working or needs attention, are per visitor. One visitor reading a reply doesn’t clear the dot for anyone else.
  • Their own memory. What the bots remember about a visitor stays with that visitor.
  • Delegation stays inside. When the lead hands work to a teammate, that handoff lives in the same visitor’s conversations.

Nothing crosses between visitors.

By default, visitors are anonymous. The widget keeps a random id in the browser’s localStorage, under teamshelf:<team key>:visitor-id. Clearing site data, or opening your site in another browser, makes a new visitor. Anonymous visitors who stay away longer than your team’s retention period are deleted, with their conversations. See Security.

If your app has its own sign-in, you can identify signed-in users. Their conversations then follow them across browsers and devices.