PromptBase
Upgrade
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Prompt Details

Model
(claude-5-5-sonnet)
Token size
3,815
Example input
[DESCRIBE WHAT YOU WANT THE AI AGENT TEAM TO ACCOMPLISH]: Build an AI customer-support team that answers customer questions, checks order status, and escalates complex issues. [LIST THE MAJOR TASKS, WORKFLOWS, OR ACTIVITIES THE TEAM MUST HANDLE]: Answer FAQs Check order status Handle refunds Escalate complex complaints [DESCRIBE WHO WILL USE THE SYSTEM, WHO RECEIVES OUTPUTS, AND WHO OWNS IMPORTANT DECISIONS]: Customers Support manager Business owner [DESCRIBE KNOWLEDGE SOURCES, MEMORY REQUIREMENTS, DATABASES, DOCUMENTS, RAG, OR STATE]: FAQ documents Product information Customer/order records Conversation history [DEFINE WHAT A SUCCESSFUL RESULT LOOKS LIKE, INCLUDING QUALITY, SAFETY, ACCURACY, AND COMPLETION REQUIREMENTS]: Accurate answers No unauthorized refunds Correct order information Clear escalation No customer-data leakage
Example output
πŸ”Ž PHASE 1 β€” OBJECTIVE RECONSTRUCTION 🎯 Primary Goal Create a reliable customer-support workflow that can independently resolve routine questions while escalating cases requiring human judgment or authorization. πŸ‘₯ Users Customers receive support. Support managers handle escalations. Business owners retain authority over sensitive financial decisions. πŸ“₯ Inputs Customer messages Order IDs FAQ/product information Customer records Previous conversation context πŸ“€ Outputs Customer answer Order-status information Refund request/action Escalation ticket/email ⚠️ Failure Consequences Incorrect customer information Unauthorized refund Privacy violation Poor customer experience πŸ“Œ Explicit vs Inferred Explicit requirements: FAQ answering Order lookup Refund handling Escalation β‚Ή5,000 human-approval threshold Inferred requirements: Authentication should occur before exposing private order information. Refund actions should be logged. Escalations should contain enough context for a human to continue the case. --- πŸ”Ž PHASE 2 β€” TASK DECOMPOSITION Task Capability Dependency Type Risk FAQ answering Knowledge retrieval Knowledge base Independent Low Order lookup Data retrieval Customer/order DB Conditional Medium Refund evaluation Policy analysis Order + policy data Conditional High Refund execution Tool execution Approved refund Sequential High Escalation Case summarization Conversation context Conditional Medium Final response Communication Previous task result Sequential Medium πŸ”— Workflow Customer Message β†’ Intent Detection β†’ FAQ / Order / Refund / Escalation β†’ Verification β†’ Customer Response For refunds above β‚Ή5,000: Refund Request β†’ Policy Check β†’ Human Approval β†’ Refund Execution β†’ Customer Notification --- πŸ”Ž PHASE 3 β€” CAPABILITY MAP 🧠 Required Capabilities Intent classification Knowledge retrieval Customer/order lookup Policy evaluation Refund execution Customer communication Escalation Validation Agent Separation Analysis Not every capability needs its own agent. For example: FAQ + intent detection can safely belong to one Support Agent. Refund evaluation + refund execution should have stricter boundaries because financial actions require controlled authority. Therefore, the architecture should avoid creating separate agents for every small function. --- πŸ”Ž PHASE 4 β€” SINGLE-AGENT VS MULTI-AGENT ANALYSIS Option A β€” Single Agent πŸ€– One agent handles everything. Advantages: Simple Low coordination overhead Low latency Problems: Same agent may answer customers and execute refunds. Financial authority becomes harder to isolate. Permission boundaries become less clear. Option B β€” Coordinator + Specialists πŸ‘₯ Coordinator β†’ Support Agent β†’ Order Agent β†’ Refund Agent Advantages: Clear ownership Better permission isolation Refund execution can be restricted Disadvantages: More coordination More implementation complexity Option C β€” Peer Specialists Multiple independent agents communicate directly. Problem: Too much coordination for this workflow. Option D β€” Hierarchical Team Coordinator β”œβ”€β”€ Support β”œβ”€β”€ Order └── Refund Works, but adds unnecessary hierarchy. Option E β€” Hybrid Architecture ⭐ Recommended: Customer β†’ Support Coordinator β†’ Routine resolution OR specialist workflow β†’ Validation β†’ Customer Refund > β‚Ή5,000 β†’ Human approval πŸ† Decision A small hybrid team with 2 AI agents + human authorization is sufficient. No dedicated reviewer agent is necessary because deterministic validation and permission controls can handle the main risks. --- πŸ”Ž PHASE 5 β€” AGENT ROLE DISCOVERY πŸ€– Candidate 1 β€” Support Agent Purpose: Handle customer conversations and routine support. Responsibilities: Understand customer intent Retrieve FAQ information Provide product information Request required order information Route specialized requests Tools: Knowledge base Conversation history Website chat Authority: Can communicate with customers. Cannot issue refunds. Cannot modify orders. Why this agent needs to exist: It owns customer-facing support and conversation management. --- πŸ“¦ Candidate 2 β€” Order & Refund Agent Purpose: Handle authenticated order information and refund workflows. Responsibilities: Verify order information Read order status Evaluate refund eligibility Create approved refund actions Prepare escalation information Tools: Order database Refund API Policy database Authority: Read customer/order data after verification. Can execute refunds only within authorized limits. Cannot approve refunds above β‚Ή5,000. Why this agent needs to exist: Order and financial operations require specialized tools and stricter permissions than normal customer communication. --- πŸ§‘β€πŸ’Ό Human Decision Owner Purpose: Authorize high-value refunds and exceptional cases. Authority: Approve/reject refunds above β‚Ή5,000. Resolve policy exceptions. Override automated decisions where business policy allows. --- πŸ”Ž PHASE 6 β€” TEAM OPTIMIZATION πŸ”€ Merge Candidates FAQ Agent + Conversation Agent β†’ Support Agent Order Agent + Refund Agent β†’ Order & Refund Agent ❌ Remove Candidates Dedicated Reviewer Agent Reason: independent review does not provide enough additional value for this relatively simple workflow. βž• Add Candidates No additional AI agent is required. πŸ† Final Team 1. πŸ€– Support Agent 2. πŸ“¦ Order & Refund Agent 3. πŸ§‘β€πŸ’Ό Human Decision Owner This keeps the system small while preserving financial authorization boundaries. --- πŸ”Ž PHASE 7 β€” RESPONSIBILITY MATRIX Task Primary Owner Support Reviewer Decision Owner FAQ response Support Agent Knowledge Base Validation Rules Support Agent Order lookup Order & Refund Agent Support Agent Access Validation Order Agent Refund ≀ β‚Ή5,000 Order & Refund Agent Support Agent Policy Validation Order Agent Refund > β‚Ή5,000 Order & Refund Agent Support Agent Policy Validation Human Complex complaint Support Agent Order Agent Human Human Customer notification Support Agent Order Agent Output Validation Support Agent πŸ” Ownership Rule Only one primary owner exists for each task. --- πŸ”Ž PHASE 8 β€” AUTHORITY & PERMISSION ARCHITECTURE πŸ€– Support Agent Can Read: FAQ Product information Conversation history Can Write: Support conversation Escalation notes Can Execute: Knowledge searches Customer communication Can Approve: Routine informational responses Cannot Do: Modify orders Issue refunds Access unnecessary financial data --- πŸ“¦ Order & Refund Agent Can Read: Verified order records Refund policies Can Write: Refund request records Case status Can Execute: Order lookup Authorized refund operations Can Approve: Refunds within its permitted threshold Cannot Do: Approve refunds above β‚Ή5,000 Change business refund policy --- πŸ§‘β€πŸ’Ό Human Can Approve: High-value refunds Policy exceptions Sensitive escalations --- πŸ”Ž PHASE 9 β€” TOOL & RESOURCE ASSIGNMENT Tool Owner Purpose Permission Knowledge Base Support Agent FAQ retrieval Read Website Chat Support Agent Customer communication Read/Write Order DB Order Agent Order lookup Restricted Read Refund API Order Agent Refund execution Restricted Execute Email Support Agent Escalation Send Approval Interface Human High-value approval Approve πŸ” Security Principle The Support Agent does not receive refund API access. --- πŸ”Ž PHASE 10 β€” MEMORY & KNOWLEDGE ARCHITECTURE 🌐 Shared Knowledge Product catalog FAQ Refund policy Owner: Business knowledge system πŸ”’ Private State Support Agent: Current conversation context Order Agent: Current order/refund transaction state 🧾 Task State Each request receives: task_id Each handoff receives: handoff_id Example: TASK-1024 β†’ HANDOFF-1024-A β†’ HANDOFF-1024-B 🧠 Long-Term Memory Store only approved business knowledge and necessary case records. Do not permanently store unnecessary customer information. βš”οΈ Conflict Handling If database information conflicts with conversation claims: Database record + verification rules take precedence, and the case can be escalated when uncertainty remains. --- πŸ”Ž PHASE 11 β€” TEAM ORCHESTRATION πŸ—οΈ Selected Topology Hybrid πŸ‘€ Customer β”‚ β–Ό πŸ€– Support Agent β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ FAQ Order Refund β”‚ β”‚ β”‚ β”‚ β–Ό β–Ό β”‚ πŸ“¦ Order & Refund Agent β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ β”‚ ≀ β‚Ή5,000 > β‚Ή5,000 β”‚ β”‚ β”‚ β”‚ β–Ό β–Ό β”‚ Execute πŸ§‘β€πŸ’Ό Human β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β–Ό πŸ€– Support Agent β”‚ β–Ό πŸ‘€ Customer πŸ›‘ Completion Condition The workflow stops when: Customer receives a valid answer, OR Approved action is completed, OR Case is successfully escalated to a human. --- πŸ”Ž PHASE 12 β€” COMMUNICATION & HANDOFF DESIGN Handoff 1 Sender: Support Agent Receiver: Order & Refund Agent Trigger: Customer requests order/refund information. Required Context: task_id authenticated customer identifier order ID requested operation relevant conversation summary Context Excluded: Unnecessary personal conversation details Unrelated customer information Output Contract: { "task_id": "...", "status": "success|needs_approval|escalate|failed", "order_status": "...", "refund_amount": 0, "reason": "...", "next_action": "..." } Validation Customer authorization verified Order ID valid Requested operation permitted --- πŸ”Ž PHASE 13 β€” QUALITY CONTROL βœ… Input Validation Check: Valid customer identity Valid order ID Required information present βœ… Knowledge Validation FAQ responses must be grounded in the approved knowledge base. βœ… Financial Validation Before refund: Correct order Correct amount Refund eligibility Authorization threshold βœ… Final Response Validation Before customer receives the response: No unsupported claims No private data leakage Action status accurately represented πŸ§‘β€πŸ’Ό Human Approval Required for: Refund > β‚Ή5,000 and policy exceptions. --- πŸ”Ž PHASE 14 β€” FAILURE & RECOVERY Failure Detection Recovery Order DB unavailable Tool error/timeout Retry once, then escalate Invalid order ID Validation failure Ask customer to verify Refund API failure API error Do not claim refund succeeded Conflicting data Data mismatch Escalate Agent timeout Workflow timeout Resume from task state Duplicate refund Idempotency check Block duplicate execution Human approval unavailable Approval timeout Keep request pending Unauthorized access Permission failure Stop workflow πŸ” Retry Rule Retries are bounded. Example: Maximum 1 automatic retry After failure: Recover β†’ Escalate β†’ Stop The system must never repeatedly execute a financial action. --- πŸ§ͺ PHASE 15 β€” TEAM TESTING Test 1 β€” FAQ Scenario: Customer asks: "What is your return period?" Expected Agent: Support Agent Expected Action: Retrieve approved return policy. Expected Output: Accurate return-period answer. Failure: Agent invents a policy. Verification: Compare response against knowledge base. --- Test 2 β€” Order Status Scenario: Customer provides a valid order ID. Expected Agent: Order & Refund Agent Expected Action: Verify identity β†’ retrieve order. Expected Output: Correct order status. Failure: Incorrect or unauthorized order information. --- Test 3 β€” Small Refund Scenario: Customer requests an eligible β‚Ή2,000 refund. Expected Agent: Order & Refund Agent Expected Action: Validate policy β†’ execute refund. Expected Output: Successful refund transaction. Failure: Refund executed without validation. --- Test 4 β€” High-Value Refund Scenario: Customer requests an eligible β‚Ή8,000 refund. Expected Agent: Order & Refund Agent β†’ Human Expected Action: Prepare approval request. Expected Output: Human approval required. Failure: AI executes refund without approval. --- Test 5 β€” Permission Boundary πŸ” Scenario: Support Agent attempts to call Refund API. Expected Action: Permission denied. Expected Output: Security event logged. Failure: Refund API executes. --- Test 6 β€” Tool Failure Scenario: Order database becomes unavailable. Expected Action: Attempt ↓ Retry once ↓ Still unavailable ↓ Escalate Failure: Agent fabricates order information. --- Test 7 β€” Circular Delegation πŸ”„ Scenario: Support Agent β†’ Order Agent Order Agent β†’ Support Agent Support Agent β†’ Order Agent Expected Action: Delegation depth limit stops the loop. Failure: Infinite delegation. --- Test 8 β€” Data Leakage πŸ”’ Scenario: Customer A asks about Customer B's order. Expected Action: Reject unauthorized access. Failure: Customer B's information is disclosed. --- πŸ† PHASE 16 β€” FINAL AI AGENT TEAM BLUEPRINT 1. 🎯 Team Objective Provide automated customer support while maintaining strict boundaries around order data, refunds, and human authorization. 2. πŸ—οΈ Recommended Architecture Hybrid 2-agent architecture + human authorization This is simpler than a large multi-agent system while still separating customer communication from sensitive transactional operations. 3. πŸ€– Agent Roster Agent Purpose Owns Does Not Own Tools πŸ€– Support Agent Customer support Conversation Refund execution Chat, KB, Email πŸ“¦ Order & Refund Agent Transaction operations Orders/refunds High-value approval Order DB, Refund API πŸ§‘β€πŸ’Ό Human Sensitive decisions High-value approval Routine automation Approval system --- πŸ” 4. Authority Matrix Action Support Order/Refund Human Answer FAQ βœ… ❌ Optional Read verified order ❌ βœ… βœ… Execute ≀ β‚Ή5,000 refund ❌ βœ… βœ… Approve > β‚Ή5,000 refund ❌ ❌ βœ… Change refund policy ❌ ❌ βœ… Escalate complaint βœ… βœ… βœ… --- 🧠 5. Memory Architecture Shared Knowledge β”œβ”€β”€ FAQ β”œβ”€β”€ Product Information └── Refund Policy Task State β”œβ”€β”€ task_id β”œβ”€β”€ customer verification β”œβ”€β”€ order ID └── current workflow state Agent Context β”œβ”€β”€ Support conversation └── Transaction state --- πŸ”— 6. Orchestration Graph Customer ↓ Support Agent ↓ Intent Classification ↓ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ FAQ Order Refund β”‚ β”‚ β”‚ ↓ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ Customer ↓ Response Order/Refund Agent β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β” ↓ ↓ ≀ β‚Ή5K > β‚Ή5K ↓ ↓ Execute Human β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜ ↓ Support Agent ↓ Customer --- πŸ“‹ 7. Agent Prompt Responsibilities πŸ€– Support Agent Role: Customer Support Specialist Mission: Resolve routine customer questions and correctly route transactional requests. Inputs: Customer message Conversation history Approved knowledge Outputs: Customer response Structured handoff request Rules: Never invent policy information. Never expose unauthorized customer data. Never execute refunds. Escalate when authority is insufficient. Completion: Customer receives a valid response or a correctly structured escalation. --- πŸ“¦ Order & Refund Agent Role: Transaction Operations Specialist Mission: Safely process verified order and refund workflows. Inputs: Verified customer information Order ID Requested operation Policy information Outputs: Order result Refund result Approval request Escalation Rules: Verify authorization before accessing private records. Validate refund eligibility. Never exceed refund authority. Never report an unsuccessful action as successful. Use idempotency protection for financial operations. Completion: Transaction completed, approval requested, or case escalated. --- πŸ§ͺ 8. Evaluation Metrics Track: FAQ accuracy Order lookup accuracy Refund-policy accuracy Unauthorized-action rate Refund execution accuracy Escalation accuracy Data leakage incidents Tool failure recovery Average response time Workflow completion rate Duplicate-action rate Human approval compliance --- πŸš€ 9. Implementation Sequence 1. Build the knowledge base. 2. Define customer authentication. 3. Build Support Agent. 4. Build Order & Refund Agent. 5. Implement permission boundaries. 6. Implement refund threshold. 7. Add human approval workflow. 8. Add task/handoff IDs. 9. Add validation and logging. 10. Implement bounded retries. 11. Run role and permission tests. 12. Run failure and security tests. 13. Deploy with monitoring. 14. Review production failures and improve prompts/policies. --- πŸ“Š 10. Operational Monitoring Monitor every workflow using: task_id handoff_id agent_id tool_call permission_check decision result failure retry_count final_status This provides end-to-end traceability without exposing unnecessary customer information. --- πŸ’° 11. Complexity & Cost Considerations The architecture deliberately avoids: Separate FAQ Agent Separate Research Agent Separate Reviewer Agent Separate Escalation Agent Multiple coordinators Those roles would add coordination overhead without a clear reliability benefit for this use case. Final complexity: 2 AI agents + 1 human authorization layer That is sufficient for the stated requirements. --- 🎯 FINAL AGENT TEAM SPECIFICATION OBJECTIVE β†’ Automated customer support with controlled transactional operations AGENTS β†’ πŸ€– Support Agent β†’ πŸ“¦ Order & Refund Agent β†’ πŸ§‘β€πŸ’Ό Human Decision Owner RESPONSIBILITIES β†’ Support owns communication β†’ Order/Refund owns transactions β†’ Human owns high-value authorization TOOLS β†’ Knowledge Base β†’ Website Chat β†’ Order Database β†’ Refund API β†’ Email β†’ Approval System MEMORY β†’ Shared business knowledge β†’ Isolated task state β†’ Minimal customer data β†’ Traceable task/handoff IDs ORCHESTRATION β†’ Hybrid routing HANDOFFS β†’ Structured, validated, traceable contracts QUALITY β†’ Knowledge validation + policy validation + permission controls + human approval RECOVERY β†’ Bounded retry β†’ recovery β†’ escalation β†’ termination TESTING β†’ Role + handoff + routing + permission + failure + loop + security + quality tests DEPLOYMENT β†’ Implement smallest viable 2-agent system, instrument every transition, test boundaries, then expand only when production evidence justifies another agent.
Claude

Agent Team Making Helper

Add to Cart
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this prompt, you agree to our terms of service
CLAUDE-5-5-SONNET
Tested icon
Guide icon
4 examples icon
Free credits icon
Not every task needs multiple AI agentsβ€”and randomly adding agents can create duplication, conflicts, higher costs, and coordination problems. This prompt helps you design the right AI agent team for a given objective by identifying required roles, responsibilities, dependencies, authority, communication paths, handoffs, tools, memory, quality gates, and failure handling Turn one complex AI task into a coordinated agent team with clear roles, ownership, tools, handoffs, controls, and execution
...more
Updated 1 week ago
Report
Browse Marketplace