4 min read

Lead & delegation

How the primary bot takes requests, decides which specialists to ask, and handles @mentions.

Your users talk to one teammate: the lead. Behind it, the lead routes work to the specialists who know the domain, waits for their answers, and replies with one result — credited to whoever did the work.

The primary bot

Choose the lead in the portal under Setup → Primary bot. The primary bot:

  • is pinned at the top of the shelf, slightly larger, with a separator below it;
  • is selected by default, so a user who just starts typing is talking to it;
  • is the bot the shelf folds into.

Changing the primary bot updates every open widget.

Coordinator instructions

Nothing makes a bot a lead by default — instructions do. Below the primary-bot picker, Apply writes a managed section into the lead’s instructions. It tells the lead that it leads the team, that it should handle simple requests itself, delegate specialist work by messaging teammates, and combine their answers. It also lists every teammate with their role.

The section sits between two markers:

Text
<!-- teamshelf:coordinator:start -->
## Team lead role (Logistics Ops)
You lead this team. Most requests come to you first. …
Your teammates:
- **Carrier Analyst**: Reads tracking, scans and ETAs
- **Warehouse**: Pick, pack and stock questions
<!-- teamshelf:coordinator:end -->

Your own instructions above it are left alone. Re-apply replaces the managed section in place — it never duplicates it.

The portal shows Applied or Not applied next to the button so you can tell at a glance.

Roles: how other bots see it

Each bot has a one-line role, edited in Bots & sections as Role: how other bots see it. The lead reads these to decide whom to ask, so they matter more than the bot’s name:

  • Good: “Reads carrier tracking, scans and ETAs.”
  • Too vague: “Helps with shipping.”

Keep it to one line, and make roles distinct so the lead doesn’t have to guess between two similar teammates.

@mentions

Users can mention teammates in a message to the lead — “@Warehouse can you check the pick logs?” The message bar’s @ button and autocomplete insert names for them.

The mention goes to the lead along with the message, and the coordinator instructions tell the lead to message each mentioned teammate and include their answers.

What users see

When the lead delegates, the specialists it asks switch to working on the shelf, and the lead’s conversation shows each handoff — “Messaged Warehouse”, “Message from Warehouse” — which users can expand to read. The lead’s reply arrives when it has the answers it needs.

Delegation happens inside each visitor’s own conversations. The handoffs, the specialists’ answers and their working status are only visible to the visitor who asked.

A specialist that only answered the lead doesn’t get a new-reply dot of its own: its answer is in the lead’s conversation, and that’s where users read it.