Add an agent of your own, step by step
Make a user an agent with one request, give it a narrow role, decide whose access may add to its own, and learn the switch that turns it off.
Make a user an agent with one request, give it a narrow role, decide whose access may add to its own, and learn the switch that turns it off.
What it is
- An agent is a user with Is Agent on. Its name and Description are its persona, and it gets a pill and a tab of its own on Builder → Agents.
- The Users list has no create button and the User form does not show Is Agent, so an administrator makes the agent with one request through the developer tools.
- What the agent can touch comes from the roles you tick on its user (Builder → Users → Edit). When it works for a person, that person's access is added only if their role holds Add to Agent Access.
- The switch on its tab turns the agent off and on. A per-table Context record can brief it when it starts on a table.
Good to know
- Creating the agent and ticking an existing role are free. Saving a new role starts Coin's role design, which costs a few cents, so reuse a role.
- Users cannot be deleted. To undo an agent, switch it off.
- An agent never signs in and never holds an API key.
Before you start
- An agent is a user account with Is Agent switched on. The Builder has no button for making one and the User form does not show the field, so an administrator makes it through the developer tools, with one request. After that everything else is clicking in the Builder.
- Our example: Wren, a lease-file clerk for the invented firm Ashgrove Law. Wren is meant to open the follow-up tasks a lease default needs and note what it did, for a person to keep or undo. All names are invented.
- The request, as text (an administrator sends it with crift_write or as a POST to
/api/v1/data/user):
POST /api/v1/data/user
{
"first_name": "Wren",
"username": "[email protected]",
"email": "[email protected]",
"is_agent": true,
"is_service_account": true,
"description": "Wren keeps lease files moving: it opens the follow-up tasks a lease default needs and notes what it did, for a person to keep or undo."
}- Creating the agent and giving it an existing role is free. Do not save a new role for an agent: a new role starts Coin's role design, which costs a few cents. An agent cannot be deleted; to undo it you switch it off.
1Users has no create button
Go to Builder → Users. You will see the header and the search box and no button to add anyone: people arrive from your directory, and an agent is made with the request above. The Is Agent field is not on the User form either, which is why the request sets it.

2Wren appears on Builder → Agents
Once the request is accepted, open Builder → Agents. Wren has its own grey pill after the six built-in agents, and its tab shows Wren is on with the description you wrote. The name and description are the agent's persona, so write them as you would brief a new colleague.

3Give Wren a role
Go to Builder → Users, type Wren in the search, click Edit and tick an existing role under Roles that is as narrow as the work needs, here Lease paralegal. Click Save. Do not create a new role for this. Without a role, the agent can read and change nothing.

4Decide whose access adds to an agent's
When an agent works for a person, it can add that person's access to its own, but only if the person's role holds Add to Agent Access. Open Builder → Roles, click Messages × roles, pick All, search Agent Access and tick the roles whose holders may do this. A Global Administrator holds it by rule. People without it send the agent out on its own roles only.

5Switch Wren off
On Wren's tab, the switch turns the agent off. The dialog Turn Wren off? says what changes: chats say it is off, relays and dispatches sent to it wait until their good-till date, and nothing starts it from a save. Turning it back on runs the waiting work, and that work is paid as it runs. Click Cancel if you only wanted to read it. This switch is also how you undo an agent.

6What Wren could be told per table
On the tab, under Context, Per table → New opens a start record: choose the Agent and the Table (both required), write Agent Start, the words the agent is told when it starts on that table, and switch on Show Start to show them to the person and Opens The Chat to open the chat. Nothing is needed to make an agent work; add this when a table needs its own briefing.

What next
- The rest of the agent's tab, one thing at a time: Meet your office's own agents.
- Whose access an agent may use while it works for a person: Decide how far an agent's access reaches.