AI agent design
How to design permissions and confirmations for AI agents
Give an agent enough access to help, then make consequential actions reviewable and approval specific to what will happen.
An AI agent can fetch information, prepare a draft, and take action on someone's behalf. These steps have different consequences. A product team should decide which permission each step needs and when the user must make the decision. Consider a fictional office operations agent that prepares a note to an outside maintenance supplier.
Separate reading, drafting, and sending
Start with a matrix that lists the action, the information it touches, who can authorize it, and the consequences of a mistake. Reading a maintenance ticket can use a limited view of permitted fields. Preparing a note can save it as a draft. Sending the note to an outside supplier requires a separate action. For higher-impact operations, such as changes to supplier records, send the user to the established process and its existing approvals. OWASP's guidance on excessive agency recommends narrowly scoped tools, limited permissions, and approval for consequential actions. OWASP guidance on excessive agency
Show what the user is being asked to approve
A good confirmation preview answers the questions an office coordinator would ask before sending. Show the recipient, subject, full draft, included attachments, and where the message will go. Use an action-specific button such as “Send to maintenance supplier,” and put “Edit draft” and “Cancel” beside it. Let the user decline and return to the ticket with the draft available. If several emails are proposed, keep the subjects, recipients, and decisions distinguishable.
Approvals should remain attached to the details the person saw. If the recipient, message, or attachment changes, present a revised preview before sending. The OpenAI Agents SDK documents a flow where a tool can pause for approval and later resume from the same run state. Products still need to define which action details users see and how stale approvals are handled. OpenAI Agents SDK approval flow
Check the permission again at execution
The system that sends the message should verify the current user’s permission, that the recipient matches the approved draft, and that the approval still applies. Verify this at the point of sending so the action respects the current state when permissions, ticket ownership, or the draft changes. Give a send attempt an operation identifier so a retry can check whether the service already accepted it. Show a clear status such as “Sent,” “Draft kept,” or “Status unclear, check sent messages,” based on the evidence available.
Capture the action identifier, the approval time, and the final result in an audit record visible to the appropriate team. Keep sensitive message contents in the existing workspace where they are already subject to access controls.
Test the cases approval screens tend to miss
In the fictional workflow, include a stale draft, a changed recipient, a denied send, a coordinator whose permission was removed, and an interrupted connection after a send. For each, write the expected system outcome and what the user should see. Use a sandbox with test addresses so the exercise produces no real messages.
In a pilot, monitor how often people understand what they are approving, how often they edit or decline a proposed send, and how often retries create duplicates. If several people decline because of unclear recipients, improve the preview and the available choices. Keep the rule for what counts as an authorized send explicit in acceptance tests.