Quick answer

Design a bounded support agent with tool permissions, validation, human approval and error handling. An AI agent combines a model with instructions and optional tools. Granting it a tool does not make every action safe: production systems need validation, permissions and explicit approval for consequential operations. This fictional support example illustrates how to set boundaries before connecting a real account.

An AI agent combines a model with instructions and optional tools. Granting it a tool does not make every action safe: production systems need validation, permissions and explicit approval for consequential operations. This fictional support example illustrates how to set boundaries before connecting a real account.

Before you begin

Use a sandbox dataset of fictional support requests and a mock lookup function. Never place actual customer data or live refund permissions in a first experiment.

Method guide · not a product benchmark

01Define the smallest possible responsibility

Define a support agent that only classifies a ticket and suggests a reply. Require it to report uncertainty and escalate account-specific questions. Write explicit success criteria: correct category, no invented policy and no message sent without consent.

02Provide read-only tools first

Expose only a mock lookup_ticket(id) tool returning non-sensitive sample records. Enforce authorization in the tool implementation, not merely in the agent prompt. Treat tool results and retrieved text as untrusted input that cannot override system permissions.

03Validate inputs and tool results

Check ticket IDs against a strict schema, enforce size limits and inspect returned fields before presenting them. OpenAI's Agents SDK supports input, output and tool guardrails, but their execution boundaries differ. Validate each sensitive tool invocation separately.

04Require approval for consequential actions

Before any email, deletion or refund, display the proposed action and request a human decision. Make the tool reject calls without a verified approval token or authenticated permission. A polite prompt asking for permission is not a security boundary.

05Evaluate failures and record safe traces

Test missing records, malformed IDs, prompt injection hidden in ticket text, timeouts and repeated tool attempts. Log decisions with secret redaction, compare outcomes against a human-reviewed rubric, and provide a safe fallback when checks fail.

Try this prompt

Audit this proposed agent design: tool permissions, input/output/tool guardrails, approval checks, prompt-injection risk and recovery. Do not claim to have executed tests. Design: [paste].

Worked example

Fictional teaching example — not a product test or a real customer record.

Starting information

Fictional support tickets and mock tool results; no live accounts or external actions.

Expected result

Expected: documented tool access, routing or approval decisions, and a reviewed response; no measured success is claimed.

Before you use the result

  • Validate access controls outside prompts.
  • Record errors and uncertain answers.
  • Never execute sensitive actions without verified approval.

Worksheet

Editable text file. Fill it with your own evidence; blank fields are not results.

Download the worksheet (.txt)

Further reading

Back to the library