Skip to main content

One call, start to finish

What happens when an agent decides to send an email. Every tool call takes the same path, and every step of it is recorded.

Agent sandbox
The agent asksno key, no route out
Policy decidesgo on, send back, or ask
A person approveswhere a policy says so
OBO token
Way outAI gatewayadds the credential
credential
Models
Internal services
External APIs
Record: every step, who it was for, which agent, what was decided and what came back

Reading the diagram​

  • Left to right is one call. The agent asks, policy decides, a person approves where a policy says so, and the AI gateway makes the call.
  • The dashed boxes are conditions. The agent is inside its sandbox, and a person is asked only when a policy says so.
  • The record runs under all of it. Every step is written down by the platform as it happens.

How it works​

1. The agent asks​

The model, running in the org's runtime, returns a tool call: send this email, to this address, with this text.

The runtime has no credential for the mailbox and no route to it.

2. Policy decides, before anything runs​

The runtime puts the call to the org's policy engine with the whole picture: who is acting, for whom, which tool, its arguments, and what the thread has done so far (for example, that it has read content from outside).

The answer is one of:

Go onNothing found
Needs approvalThe thread stops with the call on screen, and waits for a person
Sends backThe agent is told what to fix

If the engine cannot answer, the call is not made.

3. A person approves, if asked​

The reviewer sees the email as it will leave, and the policies that asked. They approve it or reject it. Rejected, the agent is told why and goes on another way.

4. The AI gateway makes the call​

The runtime sends the call to the org's AI gateway with its OBO token: issued by the identity provider for this person and this agent.

The AI gateway verifies the token against the identity provider's published keys, with no call to it. It checks that this agent, acting for this person, may use this connector. Then it adds the credential, which only it holds, and calls the connector over MCP, whether that is one of your internal services or an external API.

5. The result comes back as a source​

What the tool returns is kept in the thread's record, whole, and labelled so later claims can cite it. If a policy hides fields of the result, they are hidden before the model reads it.

6. It is on the record​

The call, its arguments, the decision and who made it, and the result are now a step of the thread. It shows in the conversation as a line, opens to its detail, and appears in the project's History.

What always holds​

  • No call skips policy. If the engine cannot answer, the call is not made.
  • An approval is for one call.
  • The agent never holds the key. See Identity and delegation.
  • What happened is recorded by the platform, not reported by the agent. See Record.