Who can use what
Access levels in skills, tools opened to end users, and how public bots stay safe.
When an agent answers the public through the Chat API, for example a support bot on your website, it must not use your staff's tools for whoever happens to be typing. Access levels decide which tools an end user may reach: some for anyone, some only after the portal has checked who the person is, and the rest for staff only. You write the levels in one of the agent's skills, and the portal's code enforces them. The model is never asked to decide.
Before you start
- The agent needs an end-user API key: one where every message names the person with
end_user.id. See Chat API. - Tick, on the agent, every tool you want to open to end users, and set each one to Runs freely. A Chat API conversation runs no Asks first tool. See Connect tool servers (MCP) and Runs freely or Asks first.
- If people must prove who they are, you need a tool on your own system that checks it, such as one that matches a customer's email and booking code.
The three levels
| Level | Who gets the tool | Shown on Connections as |
|---|---|---|
anyone | Every end user, checked or not | Anyone |
verified | Only in a conversation that passed the verify step, with one argument set by the portal | Verified — pins <argument> |
| Not listed | Staff only: never offered to an end user | Staff only |
| The verify tool | Run by the portal during the verify step (below) | Verifies callers |
With no access block at all, every connection tool is staff only. End users then get only the agent's know-how and a few safe built-in tools (below).
Write the access block
- Open the agent's Know-how and pick the skill that describes the public conversation, or add one. See Main skill and skills.
- Make the block the skill's first lines: a fence opened by
```accesson the first non-blank line and closed by```. - Inside, under
access:, add an optionalverify:step and atools:list. - Save the skill. The portal checks the block against the agent's tools and refuses it, naming the line, if anything does not hold.
```access
access:
verify:
tool: bookings.check_customer
pass_when: match == true
keep: customer_id
tries: 3
on_fail: end
tools:
bookings.list_slots: anyone
bookings.my_bookings: verified
bookings.cancel_booking: { level: verified, pin: owner_id }
http_request: verified
```
| Key | What it means |
|---|---|
verify.tool | The tool that checks who the person is, as <connection>.<tool>. Do not list it again under tools. |
verify.pass_when | When the check passes, tested on the tool's JSON answer: <field> == true, false, a number or 'text', or <field> present. A field may be a dot path such as result.ok. |
verify.keep | The field of the answer to keep, such as the customer's id. It may be a dot path such as customer.id, and must hold a string or a number, at most 256 bytes. |
verify.tries | How many tries a conversation gets: 1 to 10, default 3. |
verify.on_fail | stay keeps the conversation going at the anyone level; end closes it. |
tools | One line per tool: anyone, verified, or { level: verified, pin: <argument> }. A verified tool's pin defaults to the last part of keep; here, customer_id. |
The block uses a small part of YAML: spaces for indents (no tabs), # for comments, and plain words, quoted text or one-line { key: value } maps. Only one skill of an agent may carry a block.
How the verify step works
- A new conversation starts at the anyone level. The agent sees the anyone tools and the verify tool.
- The agent asks the person for what the check needs and calls the verify tool.
- The portal, not the model, runs that call, tests
pass_whenand records the try. The model sees onlyVerified.,Not verified. <n> tries left.orNot verified. No tries left.It never sees the answer or why it failed. - On a pass, the portal keeps the
keepvalue. From the next turn the conversation is verified: the agent also gets the verified tools, and the verify tool goes away. A conversation checks one person only. - When the tries run out,
on_fail: stayleaves the conversation at the anyone level.on_fail: endcloses it, and every later message is answered "This conversation was closed after too many failed checks."
In the portal, the API conversation's head shows Verified <time> once it passes. The kept value is never shown.
Pinned ids
A pin stops a verified person from reaching someone else's data. For each verified tool, the portal takes the pinned argument out of what the model sees and fills it with the kept value on every call. In the example, my_bookings always gets the verified person's own id as customer_id, and cancel_booking gets it as owner_id, whatever the model or the person asks for. If the tool has no argument by the pin's name, the block is refused.
What end users get
An end user's turn is offered a closed set of tools, plus the connection tools their level opens:
- Built-in:
make_file,make_chart,devtoolsandnetcheck, andload_toolswhen there are many tools. - The agent's know-how, read only.
- Connection tools at
anyone, and atverifiedonce the conversation passes. http_request, only if the block lists it (see http_request for end users).
They never get memory, the log, web pages, the code sandbox, the shell, cloud tools or repository tools. Their conversations never feed the agent's memory. The API card on Connections › Channels sums it up: End users get N tools before checking and M after.
http_request for end users
List http_request by its bare name, at anyone or verified. It takes no pin. Then, on the agent's Connections tab, tick Open to end users on each host they may reach (see Call an API). For an end user:
- it calls only the hosts open to end users;
- it sends only GET, unless the agent's changes through
http_requestrun freely; - on a verified turn it adds the kept value as the
Entropix-Verified-Idheader, so your API knows whose data to return.
Identity headers
Every request of an end user's turn tells your systems who is asking. This covers every call to a tool server and every http_request call:
| Header | Value | When |
|---|---|---|
Entropix-End-User | The message's end_user.id | Every end-user turn |
Entropix-Caller | api-end-user | Every end-user turn |
Entropix-Verified | true | A verified turn |
Entropix-Verified-Id | The kept value | A verified turn, http_request only |
Your server can use these to apply its own rules as well.
Limits per end user
Each end user may send at most 10 messages a minute and 200 a day, counted across all keys of the same key family. This holds whenever a message names end_user.id, on any kind of key. Past the limit, the Chat API answers HTTP 429 with the error end_user_rate_limited. The key itself has its own limits of 60 messages a minute and 1,000 a day. See Chat API reference.
When a level stops working
An entry can fall out of force after you saved the block: someone unticks the tool, sets it to Asks first, or the server changes the tool's inputs. The portal then treats that tool as staff only. On Connections, the server's For API end users fold shows the reason, for example Not in force: … asks first, and API chats run no Asks first tool: set it to Runs freely. It also links the skill that sets the levels (Set by the access block in <skill>). If the verify tool falls out of force, nobody can be verified until you fix it.
How a public bot stays safe
- An end user only gets tools you list, and staff tools are absent from their turns: the model is not told they exist.
- Proof of identity is checked by code, and the pinned id cannot be changed by the model or the person.
- A Chat API conversation acts at member level: Runs freely tools only, no goals, no approvals, no asking other agents and no memory changes.
- Text from tools is treated as data, never as instructions.
- Every request carries the identity headers, and every verify try is recorded in the audit log with its outcome, never the value.
What you can and can't do
- Open each connection tool to anyone, to verified people, or to nobody.
- Check identity with your own tool, and pin a verified tool's argument to the checked id.
- Close a conversation after too many failed checks.
- Open chosen
http_requesthosts to end users.
- Open an Asks first tool to end users.
- Give end users memory, web, code, shell, cloud or repository tools.
- Set access in more than one skill of an agent.
- Show the kept value to anyone, or to the model.
Troubleshooting
Every refusal starts "access block, line N:" and names the line.
- "… is not a tool this agent has ticked"
- Tick the tool on the agent's Connections tab, or fix its name. Names are
<connection>.<tool>. - "… asks first, and API chats run no Asks first tool: set it to Runs freely"
- Change the tool's level, or leave it out of the block.
- "… is verified, but the block has no verify step"
- Add a
verify:step, or make the toolanyone. - "… is the verify tool: leave it out of tools"
- The verify tool is offered by the step itself.
- "… has no argument … to pin"
- Set
pinto one of the tool's own argument names. - "no host of http_request is open to end users: tick Open to end users on a host (Connections › Tools)"
- Open at least one host, or remove
http_requestfrom the block. - "Another skill of this agent, …, already sets access."
- Move the rules into that skill.