Skip to main content
Scaffold a support desk:
The starter declares a transcript label, a table of help articles, one tool that reads an article, and mounts the Agents app at agents.

The transcript and the tool belt

bijection/access.ts
bijection/desk.ts

Mount the Agents app

A mountable app is a function from its capabilities to app(...). Mounting it is calling it at a path:
bijection/app.ts
The agents app declares its own role, agents.participant, which clears the transcript. Its conversation functions allow it, so they are exposed at their paths (agents.conversations.open, agents.conversations.post, …). Every other function of the app is internal. Run bijection check and commit the bijection.lock it writes: it lists every exposed path, with the grave acts and guards of each.

Settings

The settings are checked when the app is declared.

Credentials and access

The agents app’s model packs, such as agents.models.anthropic, are slots. Unbound, Bijection’s model account serves them. To use your own account, bind the pack in the installation’s bindings file with anthropicAccount({ credential: "agents.models.anthropic.key" }) from @bijectionhq/pack-providers and set that secret as an operator:
Grant or revoke the participant role from installer mutations. Their admitting role includes support.participant and declares issue: true.
Name the installation (export const support = agents({ … })) and place it in the tree to call its functions from your code. subject is a PrincipalId. until: null holds the grant until it is revoked.

Chat from React

ui/SupportChat.tsx
Render it inside <Bijection client={client}>. Open a conversation and post with useMutation; see Conversations.