ai-agents
Writing a job description for an AI agent: mission, guardrails and escalation
Learn how to write mission statements, guardrails and escalation rules that define what your AI agent can do and when to involve humans.

Writing a clear job description is the difference between an AI agent that autonomously resolves 80% of tier-one support tickets and one that floods your Slack with questions every fifteen minutes. Unlike hiring a human, where you can clarify expectations over coffee, an AI agent's performance is bounded entirely by how precisely you define its mission, decision authority and escalation triggers.
This guide walks through the components of an effective AI agent job description: the mission statement that anchors every action, the guardrails that prevent costly mistakes, and the escalation rules that keep humans in the loop when stakes are high. You'll see worked examples, templates you can adapt, and the tradeoffs between autonomy and control.
Why AI agents need job descriptions
A human customer success manager onboarded last week will ask clarifying questions, infer context from body language, and hesitate before refunding $5,000 without approval. An AI agent operating without explicit boundaries will attempt every task it's mentioned near, apply the same decision logic to a $50 discount and a contract amendment, and never pause to check whether it should.
Job descriptions for AI agents serve three purposes:
- Scope containment: defines which tasks the agent owns and which it ignores, so a sales agent doesn't start triaging IT tickets.
- Decision authority: specifies thresholds—dollar amounts, data sensitivity, regulatory risk—that trigger human review instead of autonomous action.
- Consistency: ensures the agent applies the same logic to similar situations, unlike ad-hoc prompting where tone and detail vary by whoever is chatting.
Without a written job description, you're debugging behavior case by case instead of fixing the upstream rules.
Core components of an AI agent job description
Mission statement
The mission is a single paragraph that answers: what does success look like for this agent? It should be concrete enough to guide prioritization but flexible enough to cover edge cases.
Template:
> As [Role], you [primary responsibility] by [method/approach]. Your goal is [outcome metric or user experience]. You work within [team/department] and report escalations to [human owner].
Example — Customer onboarding agent:
> As Customer Onboarding Agent, you guide new users from signup to first value by sending personalized email sequences, scheduling kickoff calls, and tracking setup milestones. Your goal is 90% of users completing core setup within seven days. You work within the customer success team and escalate enterprise accounts or stalled onboardings after three nudges to the CS lead.
Example — Expense approval agent:
> As Expense Approval Agent, you review and approve employee expense requests according to company policy. Your goal is same-day decisions for 95% of requests under $500. You work within the finance team and escalate requests above $500, missing receipts, or policy violations to the finance manager.
The mission should reference a measurable outcome (time to value, approval speed, ticket close rate) so you can evaluate whether the agent is meeting its mandate.
Playbooks and decision rules
Playbooks are step-by-step procedures for recurring tasks. Decision rules define how the agent chooses between actions based on input data.
Playbook structure:
1. Trigger: what event or condition starts this playbook (new support ticket tagged "password reset", expense request submitted).
2. Steps: numbered actions with conditional branches.
3. Success criteria: how to know the playbook completed correctly.
4. Failure handling: what to do if a step fails (retry, log, escalate).
Example playbook — Password reset support:
| Step | Action | Condition | On failure |
|------|--------|-----------|------------|
| 1 | Verify user identity via email domain match | Always | Escalate to human agent |
| 2 | Check if account exists in SSO provider | Identity verified | Log error, ask user to contact IT |
| 3 | Send password reset link via SSO API | Account exists | Retry once, then escalate |
| 4 | Confirm reset completed within 1 hour | Link sent | Send follow-up, mark unresolved after 24h |
| 5 | Close ticket, log resolution time | Reset confirmed | N/A |
Decision rule structure:
- If [condition], then [action], else [alternative action].
Example decision rules — Refund approval:
- If refund amount ≤ $50 and customer tenure > 30 days and no prior refunds this year, approve immediately.
- If refund amount $51–$200 and purchase within 14 days, approve with email notification to sales lead.
- If refund amount > $200 or customer flagged for fraud, escalate to finance with context.
Decision rules should be exhaustive: every possible input should match at least one condition, with a catch-all escalation for undefined cases.
Guardrails
Guardrails are hard constraints that prevent the agent from taking certain actions, even if the mission or playbook might suggest them. They're your safety net.
Categories of guardrails:
- Data access: only query customer records where
account_ownermatches the agent's assigned team; never access payroll or health data. - External actions: never send emails to domains outside the approved customer list; never post to social media without human approval.
- Financial limits: cannot approve spend above $X; cannot issue refunds totaling more than $Y per day.
- Compliance: never store credit card numbers in chat logs; never share PII with third-party APIs not listed in the integration allowlist.
- Tone and content: never use profanity; never make legal promises ("we guarantee"); never contradict published pricing.
Example guardrail set — HR onboarding agent:
- Access limited to employee records with
status = "onboarding"andstart_datewithin 30 days. - Cannot send offer letters or compensation details (view-only).
- Cannot schedule meetings outside 9am–5pm in employee's local timezone.
- Must include unsubscribe link in every automated email.
- Escalates if employee reports a legal or safety concern in any message.
List guardrails as negative rules ("never X") with the reason: "never share PII with external APIs (GDPR compliance)". This makes auditing easier.
Escalation triggers
Escalation rules define when the agent stops and hands off to a human. Good escalation logic balances autonomy (don't escalate every minor ambiguity) and risk (don't let the agent guess on high-stakes decisions).
When to escalate:
- Uncertainty: agent confidence score below threshold, ambiguous input, missing required data.
- High impact: decisions above dollar or reputational risk limits.
- Policy exception: customer requests something outside documented playbooks.
- Negative sentiment: customer expresses frustration, threatens legal action, requests supervisor.
- Sensitive topics: mentions of discrimination, harassment, data breach, safety incident.
Escalation playbook:
1. Pause the workflow: agent stops taking action, preserves state.
2. Summarize context: agent drafts a handoff note with conversation history, decision point, and recommended next step.
3. Notify human owner: sends message to designated Slack channel, email, or task queue with SLA (respond within 1 hour for urgent, 24 hours for standard).
4. Await decision: agent checks for human input; if no response within SLA, sends reminder or escalates further up the chain.
Example escalation rules — Sales follow-up agent:
- Escalate if prospect mentions competitor by name (sales rep should handle competitive positioning).
- Escalate if deal size exceeds $50K (enterprise sales process required).
- Escalate if prospect asks for custom contract terms.
- Escalate if no response after five touchpoints over three weeks (re-evaluate lead fit).
- Escalate if prospect sentiment score drops below 3/10 in last two messages.
Include escalation destinations by name or role, not just "manager"—so "escalate to Jane Doe (Sales Lead, jane@company.com)" or "post in #sales-escalations with @sales-lead mention."
Practical tips for writing effective job descriptions
Start narrow, expand later
Your first AI agent should own one well-defined workflow with clear success criteria, not "handle all customer inquiries." A password reset agent is easier to tune than a general support agent.
Once the narrow agent performs reliably for two weeks, add one adjacent task (e.g., "also handle account unlock requests"). Measure performance before adding more.
Use real examples in decision rules
Generic rules like "escalate complex cases" are unenforceable. Instead, pull five recent edge cases from your support queue or expense log, and write rules that would have handled four of them autonomously and escalated the fifth correctly.
Before: Escalate if the request is unusual.
After: Escalate if the request combines more than two policy exceptions (e.g., refund outside return window AND store credit instead of original payment method).
Version and date your job descriptions
AI agent performance drifts as the business changes—new products launch, policies update, team structure shifts. Treat the job description as a living document:
- Maintain versions in your knowledge base or git repository.
- Date each update and log what changed ("v1.3, 2025-01-15: raised refund approval limit from $100 to $150").
- Review quarterly or when error rates spike.
If you're using Goatfied's GOAT agents, each agent's mission and playbooks are editable in the platform, with version history and the ability to approve or revise their output before it goes live.
Test with historical data
Before deploying an AI agent, run its decision rules against a batch of past tickets, expenses, or leads. Calculate: what percentage would it have handled correctly without escalation? What would it have escalated that a human resolved in under two minutes (over-escalation)? What would it have approved that actually needed review (under-escalation)?
Aim for 70–80% autonomous resolution on the first deployment, with near-zero catastrophic errors (approving out-of-policy spend, sending incorrect data to customers). Tune the guardrails and escalation triggers until the numbers hit your target.
Separate mission from tools
The job description should focus on what the agent does and when it escalates, not how it queries a database or which API it calls. Tool configuration lives in a separate integration or workflow spec.
Job description: "Approve expense requests under $500 that comply with travel policy."
Integration spec: "Query expenses table via Postgres connector; cross-reference receipt URLs in S3 bucket; post approvals to #finance-approvals Slack channel."
This separation lets you swap tools (move from Postgres to BigQuery, or Slack to Teams) without rewriting the mission.
Template: AI agent job description
# [Agent Role]
**Owner**: [Human team lead name, Slack handle]
**Department**: [e.g., Customer Success, Finance, IT]
**Version**: 1.0 | **Last updated**: 2025-01-15
## Mission
As [Role], you [primary responsibility] by [method]. Your goal is [outcome metric]. You work within [team] and escalate to [owner] when [escalation summary].
## Scope
**In scope**:
- [Task 1]
- [Task 2]
**Out of scope**:
- [Task agent should ignore]
## Playbooks
### [Playbook name]
**Trigger**: [Event or condition]
**Steps**:
1. [Action with condition]
2. [Action with condition]
**Success criteria**: [How to confirm completion]
## Decision rules
- If [condition], then [action].
- If [condition], then [action], else [alternative].
## Guardrails
- Never [action] ([reason]).
- Only access [data scope] ([reason]).
- Financial limit: [dollar amount or frequency].
## Escalation triggers
- [Condition requiring human review]
- [High-stakes scenario]
- [Uncertainty or missing data threshold]
**Escalation process**:
1. Pause workflow.
2. Summarize context.
3. Notify [owner] via [channel] with [SLA].
## Success metrics
- [Metric 1, e.g., resolution time < 2 hours for 90% of requests]
- [Metric 2, e.g., escalation rate < 15%]
- [Metric 3, e.g., customer satisfaction > 4.5/5]
## Review schedule
Review this job description [frequency, e.g., quarterly] or when error rate exceeds [threshold].
How Goatfied handles job descriptions for AI agents
When you hire a GOAT agent on Goatfied, you choose from over a thousand pre-configured roles across 26 departments—each with a mission, playbooks, decision rules, guardrails and escalation logic already written. For instance, the "Expense Approval GOAT" in Finance ships with approval thresholds, receipt validation steps, and escalation to your finance lead when spend exceeds your custom limit.
You can edit the mission and rules in plain English, set a monthly budget per GOAT to cap autonomous spend, and review every decision before it executes. GOATs escalate via chat on desktop, web or iPhone, their own email inbox, Slack, Telegram, or @mentions in SPACES. Because Goatfied is one platform instead of a stack of tools, permissions, audit logs and escalation workflows are consistent across every GOAT—IT, sales, HR, customer support—instead of fragmented per tool.
If you're designing custom workflows, the Operations suite in MANAGE lets you build multi-step processes with approval gates and conditional logic, so you can translate your job description into an executable workflow that routes tasks between GOATs and humans.
Frequently asked questions
How detailed should decision rules be?
Detailed enough that two different AI agents given the same input would take the same action. If a rule says "escalate complex cases," define complex with observable criteria: dollar threshold, number of exceptions, sentiment score. A good test: can a new human teammate apply the rule without asking follow-up questions?
What's the right escalation rate for a new AI agent?
For the first deployment, 20–30% escalation is healthy—it means the agent is deferring uncertain cases instead of guessing. As you tune the playbooks and add decision rules for common edge cases, target 10–15% escalation for mature agents. Below 5% may indicate the agent is over-confident and missing cases that need review.
Should one agent handle multiple workflows or dedicate one agent per task?
Start with one agent per workflow (password resets, expense approvals, lead qualification) so you can measure performance and tune rules independently. Once each agent is stable, you can combine related tasks under one agent if they share similar decision logic and escalation paths—for example, merging "new customer onboarding" and "expansion onboarding" into a single onboarding agent.
How do I update a job description without breaking existing workflows?
Version the job description and test changes in a staging environment or on a small subset of tasks before rolling out. If you're raising an approval threshold from $100 to $150, monitor the first 50 decisions under the new rule to confirm the agent isn't approving out-of-policy requests. Roll back if error rates spike.
Can I use the same job description template for different departments?
The structure—mission, playbooks, decision rules, guardrails, escalation—applies across departments, but the content will vary significantly. A sales follow-up agent cares about deal size and engagement signals; an IT helpdesk agent cares about severity levels and SLA timers. Adapt the categories, but don't copy-paste rules between unrelated roles.