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

Prompt Details

Model
Chat - (gpt-5.6)
Token size
3,769
Example input
[Describe the overall system, business objective, workflow, or problem the agent team must solve]: Build an AI customer-support system that receives customer issues, identifies the problem, researches the answer, drafts a response, validates it, and escalates sensitive cases to a human. [List existing or proposed agents, their expertise, tools, permissions, and capabilities]: Support Orchestrator - coordinates the workflow. ๐Ÿ”Ž Triage Agent - classifies and prioritizes tickets. ๐Ÿ“š Knowledge Agent - retrieves relevant help-center information. โœ๏ธ Response Agent - drafts customer responses. ๐Ÿ›ก๏ธ Validation Agent - checks accuracy, policy compliance, and completeness. ๐Ÿ‘ค Human Support Agent - handles high-risk or unresolved cases. [Describe the tasks the system must perform, expected outputs, dependencies, and major workflows]: Receive ticket โ†’ classify โ†’ retrieve information โ†’ draft response โ†’ validate โ†’ send or escalate. [Describe latency limits, token/cost constraints, concurrency, reliability expectations, failure tolerance, and scaling requirements]: Fast responses for normal tickets. Maximum 2 retries per failed delegated task. Avoid unnecessary agent calls. Important responses require validation. [Specify whether you need a delegation graph, agent contracts, orchestration design, implementation blueprint, policy, or complete multi-agent architecture]: Complete implementation-oriented delegation architecture with Phases 1-16.
Example output
๐Ÿงฉ PHASE 1 โ€” MULTIAGENT SYSTEM RECONSTRUCTION ๐ŸŽฏ Overall Objective Process customer-support tickets accurately while minimizing unnecessary agent calls and ensuring that high-impact actions remain under appropriate human control. ๐Ÿ”„ Major Workflow Customer โ†“ Support Orchestrator โ†“ Triage Agent โ†“ Knowledge Agent โ†“ Response Agent โ†“ Validation Agent โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ Send Escalate โ”‚ โ”‚ Customer Human โœ… Confirmed Information The system has five AI roles plus human support. The Orchestrator owns workflow coordination. Triage determines ticket classification. Knowledge Agent retrieves relevant information. Response Agent drafts responses. Validation Agent validates important outputs. Humans handle high-impact cases. ๐Ÿ’ก Assumptions The knowledge base contains approved support information. Ticket IDs are unique. Customer-account lookup is read-only for AI agents. Ticket sending is an external action controlled by the orchestration layer. ๐Ÿ—๏ธ Proposed Architecture Central orchestration. Bounded delegation. Structured handoff contracts. Validation before customer-facing responses. Human escalation for restricted actions. โ“ Unresolved Decisions Exact SLA per ticket priority. Exact confidence thresholds. Whether low-risk responses require full validation. Exact API authentication mechanism. --- ๐Ÿงฉ PHASE 2 โ€” TASK DECOMPOSITION Task Objective Owner Delegation T1 Receive ticket Orchestrator No T2 Classify issue Triage Agent Yes T3 Retrieve knowledge Knowledge Agent Yes T4 Draft response Response Agent Yes T5 Validate response Validation Agent Yes T6 Send response Orchestrator No T7 Escalate high-risk case Orchestrator Human T8 Resolve restricted action Human No ๐Ÿ” Task Characteristics T1 - Receive Ticket Independent: No Complexity: Low Delegation: Unnecessary T2 - Classification Expertise: Support classification Delegation: Useful T3 - Knowledge Retrieval Requires knowledge-base access Delegation: Useful T4 - Response Drafting Requires customer communication expertise Delegation: Useful T5 - Validation Independent verification provides meaningful value Delegation: Required for important responses T6 - Sending External action Should remain controlled by Orchestrator T7/T8 - High-impact action Requires human authority. --- ๐Ÿค– PHASE 3 โ€” AGENT ROLE & RESPONSIBILITY ARCHITECTURE ๐ŸŽฏ 1. Support Orchestrator Mission Own the complete workflow. Responsibilities Create tasks. Route work. Track state. Aggregate results. Enforce policies. Trigger escalation. Tools Ticketing API Task state store Agent registry Audit log Permissions May invoke approved agents. May read workflow state. May submit approved responses. Restrictions Cannot bypass human approval requirements. Delegation Can delegate T2-T5. Validation Checks that required validation occurred. --- ๐Ÿ”Ž 2. Triage Agent Mission Classify incoming support requests. Inputs Ticket text Basic ticket metadata Outputs Category Priority Risk level Required workflow Restrictions Cannot send responses. Cannot modify customer accounts. Cannot delegate. --- ๐Ÿ“š 3. Knowledge Agent Mission Retrieve authoritative information. Inputs Ticket category Customer issue Relevant metadata Outputs Relevant knowledge Source references Retrieval confidence Restrictions Read-only knowledge access. Cannot send customer messages. --- โœ๏ธ 4. Response Agent Mission Produce a customer-facing draft. Inputs Ticket Approved knowledge Response constraints Outputs Draft response Referenced information Uncertainty flags Restrictions Cannot independently send messages. Cannot authorize refunds. --- ๐Ÿ›ก๏ธ 5. Validation Agent Mission Independently evaluate the proposed response. Checks Factual correctness Knowledge-source alignment Policy compliance Missing information Unsafe commitments Outputs PASS REVISE ESCALATE --- ๐Ÿ‘ค 6. Human Support Agent Mission Handle cases requiring human authority. Responsibilities Restricted actions. Sensitive cases. Policy exceptions. Unresolved conflicts. --- ๐ŸŽฏ PHASE 4 โ€” TASK-TO-AGENT ROUTING Task Primary Backup Trigger Validation Risk Classification Triage Orchestrator fallback New ticket Rule check Low Knowledge retrieval Knowledge Orchestrator fallback Information needed Source check Medium Drafting Response Orchestrator Customer response needed Validation Agent Medium Validation Validator Human Response ready Required High Restricted action Human None Refund/security/legal Human approval High ๐Ÿ“Œ Routing Rule Route according to task capability, not agent availability. Example: Need classification? โ†’ Triage Need authoritative information? โ†’ Knowledge Need customer-facing language? โ†’ Response Need independent verification? โ†’ Validator Need restricted authority? โ†’ Human --- ๐Ÿ”€ PHASE 5 โ€” DELEGATION DECISION ENGINE โœ… DELEGATE Delegate when: Another agent has specialized capability. Required data/tool access belongs to that agent. Independent validation is valuable. The task has a clear output contract. Delegation improves quality enough to justify cost. Example Orchestrator โ†’ "This ticket requires knowledge retrieval." โ†’ Knowledge Agent โš™๏ธ EXECUTE LOCALLY Do not delegate when: Task is simple orchestration. Delegation adds no meaningful expertise. The task only involves state updates. Another agent would merely repeat existing reasoning. Example Update workflow status โ†’ Orchestrator handles locally ๐Ÿšจ ESCALATE Escalate when: Authority is insufficient. Required evidence is unavailable. Agents produce unresolved conflicting results. High-impact action is requested. Security/legal concerns exist. --- ๐Ÿ”— PHASE 6 โ€” AGENT COMMUNICATION & HANDOFF CONTRACTS ๐Ÿ“ค Example: Orchestrator โ†’ Triage Sender: Support Orchestrator Receiver: Triage Agent Task: Classify ticket Context: Ticket text + minimal metadata Expected Output: { category, priority, risk_level, workflow_type } Correlation ID: SUP-2026-000451 Timeout: Defined by orchestration policy Completion: Valid structured classification returned ๐Ÿ“ค Triage โ†’ Knowledge Only transfer: Ticket ID Issue category Relevant customer issue Required information Do not transfer: Unrelated customer history Internal reasoning Unnecessary personal information --- ๐Ÿง  PHASE 7 โ€” CONTEXT & STATE MANAGEMENT ๐Ÿ—‚๏ธ Shared Context Contains: Ticket ID Workflow state Task status Approved outputs Correlation ID ๐Ÿ”’ Local Context Each agent keeps: Its task-specific reasoning Temporary retrieval information Intermediate processing ๐Ÿ“ฆ Persistent State Store: Ticket Task Owner Status Delegation history Agent result Validation result Final action Audit record ๐Ÿšซ Prevent Context Problems Context duplication โ†’ Pass references instead of copying large documents. Stale information โ†’ Use versioned artifacts. Contradictory state โ†’ Orchestrator state store is authoritative. Context explosion โ†’ Send only task-relevant information. --- ๐ŸŒ PHASE 8 โ€” DELEGATION GRAPH & EXECUTION TOPOLOGY ๐Ÿ”— Primary Graph โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Orchestrator โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Triage โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Knowledge โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Response โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Validator โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Orchestrator โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ†“ โ†“ Send Human ๐Ÿ”„ Delegation Depth Maximum recommended depth: 1 delegated hop per task No: A โ†’ B โ†’ C โ†’ D โ†’ E unless explicitly required. ๐Ÿšซ Cycle Prevention Forbidden: Triage โ†’ Orchestrator โ†’ Triage as a recursive workflow. --- โš–๏ธ PHASE 9 โ€” RESULT AGGREGATION & CONFLICT RESOLUTION Suppose Knowledge Agent says: > "Refunds are allowed." Validator says: > "The retrieved policy does not authorize this refund." ๐Ÿ” Conflict Detection The Orchestrator compares: Source references Policy version Evidence Agent output Task scope ๐Ÿง  Resolution Authority hierarchy: Current approved policy โ†“ Authoritative knowledge source โ†“ Validated specialist output โ†“ Agent-generated interpretation ๐Ÿšจ If Conflict Remains Conflict โ†’ Re-check authoritative source โ†’ If unresolved โ†’ Human escalation No arbitrary majority voting. --- ๐Ÿ›ก๏ธ PHASE 10 โ€” AUTHORIZATION, SECURITY & AGENT BOUNDARIES ๐Ÿ‘ค WHO MAY REQUEST? Orchestrator may create delegated tasks. Human may directly request support actions. ๐Ÿ”€ WHO MAY DELEGATE? Orchestrator only. โš™๏ธ WHO MAY EXECUTE? Each agent only executes within its assigned capability. ๐Ÿ‘ค WHO MAY APPROVE? Human for: Refunds above defined threshold Account deletion Legal requests Security incidents Policy exceptions ๐Ÿ” Critical Rule Delegation does not transfer authority. Example: Orchestrator โ†’ Response Agent Response Agent does NOT receive: โ†’ Refund permission โ†’ Account deletion permission โ†’ Admin access --- ๐Ÿšจ PHASE 11 โ€” FAILURE, TIMEOUT & RECOVERY ๐Ÿค– Agent Unavailable Primary Agent unavailable โ†“ Retry once if transient โ†“ Backup/fallback โ†“ Escalate if required โฑ๏ธ Timeout Task timeout โ†’ Cancel task โ†’ Check idempotency โ†’ Retry within budget โ†’ Fallback โ†’ Escalate โŒ Invalid Output Invalid schema โ†’ Reject โ†’ Retry once with corrected contract โ†’ If repeated โ†’ fallback/escalation ๐Ÿ” Maximum Retry Example policy: Maximum 2 attempts per task. No unlimited retries. --- ๐Ÿ”„ PHASE 12 โ€” LOOP, DUPLICATION & DELEGATION CONTROL Every task receives: Task ID Correlation ID Idempotency Key Owner Delegation Depth Visited Agents Attempt Number ๐Ÿšซ Circular Delegation Block: A โ†’ B โ†’ A using: Visited-agent tracking ๐Ÿšซ Duplicate Assignment Before creating a task: Check: Does active task with same idempotency key exist? If yes: Reuse existing task ๐Ÿšซ Recursive Delegation Agent registry stores: delegation_allowed = false for specialist agents that should never delegate. --- ๐Ÿ’ฐ PHASE 13 โ€” COST, LATENCY & RESOURCE OPTIMIZATION ๐Ÿ’ธ Main Cost Sources Agent calls Large context payloads Knowledge retrieval Validation calls Retries External API calls โšก Optimization Rules Rule 1 Do not call Knowledge Agent if the required answer is already available in an approved context artifact. Rule 2 Do not call Validator repeatedly after a successful validation. Rule 3 Run independent tasks in parallel when safe. Example: Ticket โ”œโ”€โ”€ Customer metadata retrieval โ””โ”€โ”€ Knowledge retrieval โ†“ Response Agent Rule 4 Keep context minimal. Rule 5 Use expensive validation only where risk justifies it. No fabricated cost estimates are used. --- ๐Ÿงช PHASE 14 โ€” MULTIAGENT TESTING & EVALUATION ๐ŸŽฏ Routing Tests Test: Refund request. Expected: Triage โ†’ High-impact classification โ†’ Human escalation path ๐Ÿ”€ Delegation Tests Verify that: Triage cannot delegate. Response cannot delegate. Only Orchestrator creates delegated tasks. ๐Ÿ”— Handoff Tests Verify: Correct ticket ID. Correct task. Correct context. No unnecessary customer data. โš–๏ธ Conflict Tests Create contradictory knowledge and validation outputs. Expected: Conflict detected โ†’ Evidence comparison โ†’ Reconciliation โ†’ Human escalation if unresolved ๐Ÿšจ Failure Tests Simulate: Knowledge API failure Agent timeout Invalid response Duplicate request ๐Ÿ”„ Loop Tests Attempt: Orchestrator โ†’ Triage โ†’ Orchestrator โ†’ Triage Expected: Blocked. ๐Ÿ” Security Tests Attempt: Response Agent โ†’ Refund API Expected: Denied. โšก Performance Tests Measure: End-to-end latency Agent calls Retry frequency Context size Parallelization effectiveness ๐Ÿงช End-to-End Test Customer ticket โ†’ Classification โ†’ Knowledge retrieval โ†’ Draft โ†’ Validation โ†’ Response Expected final state: RESOLVED --- ๐Ÿ—๏ธ PHASE 15 โ€” IMPLEMENTATION & ORCHESTRATION BLUEPRINT ๐ŸŽ›๏ธ 1. Orchestrator Responsibility Workflow control. Input Customer ticket. Output Final workflow state. --- ๐Ÿ“‹ 2. Agent Registry Stores: Agent ID Capabilities Tools Permissions Delegation Authority Availability Version --- ๐Ÿงญ 3. Task Router Determines: Task type โ†’ Required capability โ†’ Eligible agent โ†’ Routing decision --- ๐Ÿ“œ 4. Delegation Policy Engine Checks: Is delegation allowed? Is agent eligible? Is authority sufficient? Is depth within limit? Is duplicate task active? --- ๐Ÿง  5. Context Manager Controls: Context selection Context size Artifact references Versioning Sensitive-data filtering --- ๐Ÿ—ƒ๏ธ 6. Task State Store Maintains: PENDING โ†’ RUNNING โ†’ VALIDATING โ†’ COMPLETED Alternative states: FAILED TIMEOUT ESCALATED CANCELLED --- ๐Ÿ“จ 7. Message/Event Layer Carries structured events: TASK_CREATED TASK_ASSIGNED TASK_STARTED TASK_COMPLETED VALIDATION_FAILED ESCALATION_REQUIRED WORKFLOW_COMPLETED --- ๐Ÿ” 8. Authorization Layer Enforces: Identity โ†’ Permission โ†’ Tool โ†’ Action --- ๐Ÿงฎ 9. Result Aggregator Combines: Agent output Evidence Validation Workflow state --- ๐Ÿ›ก๏ธ 10. Validation Layer Checks: Schema Evidence Policy Required fields Risk --- ๐Ÿ”„ 11. Retry/Recovery Manager Controls: Retry count Backoff Fallback Timeout Recovery state --- ๐Ÿ“Š 12. Observability System Logs: Correlation ID Task ID Agent Input reference Output reference Latency Status Retry count Validation result Final outcome --- ๐Ÿ‘ค 13. Human Approval Layer Receives: High-risk tickets Policy exceptions Security incidents Unresolved conflicts ๐Ÿš€ Implementation Sequence 1. Agent contracts โ†“ 2. Authorization model โ†“ 3. Task state store โ†“ 4. Orchestrator โ†“ 5. Router โ†“ 6. Delegation policy โ†“ 7. Context manager โ†“ 8. Agent integrations โ†“ 9. Validation โ†“ 10. Recovery โ†“ 11. Observability โ†“ 12. Human escalation โ†“ 13. End-to-end testing --- ๐Ÿ† PHASE 16 โ€” FINAL MULTIAGENT DELEGATION BLUEPRINT 1. ๐ŸŽฏ Executive Summary The recommended architecture uses a central Orchestrator with specialized agents rather than unrestricted agent-to-agent collaboration. The architecture has: 1 workflow owner 4 specialized AI execution roles 1 human authority layer Bounded delegation Explicit handoff contracts Independent validation Central authorization Idempotency controls Human escalation The system deliberately avoids unnecessary peer-to-peer communication. --- 2. ๐Ÿ—๏ธ System Architecture CUSTOMER โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ ORCHESTRATOR โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ TRIAGE โ”‚ โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ KNOWLEDGE โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ RESPONSE โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ VALIDATION โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ ORCHESTRATOR โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”Œโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ” โ†“ โ†“ SEND HUMAN --- 3. ๐Ÿค– Agent Inventory Agent Responsibility Tools Permissions Can Delegate Validation Orchestrator Workflow ownership Ticket/API/state Workflow control Yes Final workflow checks Triage Classification Ticket data Read-only No Classification rules Knowledge Evidence retrieval Knowledge base Read-only No Source relevance Response Drafting Approved context Draft only No Validator checks Validator Independent verification Knowledge/policy Read-only No Primary validator Human Restricted decisions Support tools High authority N/A Final authority --- 4. ๐Ÿงฉ Task Decomposition T1 Receive T2 Classify T3 Retrieve evidence T4 Draft T5 Validate T6 Send T7 Escalate T8 Human resolution Each task has exactly one owner. --- 5. ๐ŸŽฏ Routing Matrix Task Primary Backup Delegation Trigger Validation Risk Classify Triage Orchestrator New ticket Rule check Low Retrieve Knowledge Orchestrator Evidence required Source check Medium Draft Response Orchestrator Response required Validator Medium Validate Validator Human Draft completed Required High Restricted action Human None High-impact request Human High --- 6. ๐Ÿ”€ Delegation Rules โœ… Delegate When: Specialized capability + Clear task boundary + Expected quality improvement + Allowed authority โš™๏ธ Execute Locally When: Simple orchestration + No specialized expertise required ๐Ÿšจ Escalate When: Authority insufficient OR Evidence insufficient OR Conflict unresolved OR High-impact action --- 7. ๐Ÿ”— Handoff Contract Every delegation contains: Task ID Correlation ID Sender Receiver Task Required context Constraints Expected output Evidence requirements Timeout Retry budget Completion criteria --- 8. ๐Ÿง  Context Architecture Global State โ†“ Workflow Context โ†“ Task Context โ†“ Agent Local Context โ†“ Validated Artifact Only necessary context crosses an agent boundary. --- 9. ๐ŸŒ Delegation Graph Orchestrator โ†“ Triage โ†“ Knowledge โ†“ Response โ†“ Validator โ†“ Orchestrator โ†“ Send / Human Maximum normal delegation depth: 1 hop per task. --- 10. โš–๏ธ Conflict Resolution Conflict โ†“ Compare evidence โ†“ Check source version โ†“ Check authority โ†“ Re-run required validation โ†“ Still unresolved? โ†“ Human Evidence quality and authority take precedence over arbitrary voting. --- 11. ๐Ÿ›ก๏ธ Security Model Identity โ†“ Authorization โ†“ Task Permission โ†“ Tool Permission โ†“ Action Delegation cannot increase privilege. --- 12. ๐Ÿšจ Failure Architecture Failure โ†“ Classify failure โ†“ Transient? โ”œโ”€ Yes โ†’ bounded retry โ””โ”€ No โ†’ fallback/escalation โ†“ Final state Possible final states: COMPLETED FAILED ESCALATED CANCELLED TIMEOUT --- 13. ๐Ÿ”„ Loop & Duplication Prevention Use: Task IDs Correlation IDs Idempotency keys Ownership locks Delegation depth Visited-agent tracking Retry limits Execution budgets Timeout controls ๐Ÿšซ Forbidden A โ†’ B โ†’ A A โ†’ B โ†’ C โ†’ A A โ†’ A A โ†’ B โ†’ B unless explicitly defined as a controlled retry or validation operation. --- 14. ๐Ÿ’ฐ Cost & Performance Architecture Minimize Unnecessary agent calls Duplicate execution Repeated validation Large context transfers Sequential independent operations Unbounded retries Prefer Parallel independent retrieval โ†“ Single synthesis โ†“ Single required validation rather than repeated sequential delegation. --- 15. ๐Ÿงช Testing Strategy Required test categories: 1. ๐ŸŽฏ Routing 2. ๐Ÿ”€ Delegation 3. ๐Ÿ”— Handoff 4. โš–๏ธ Conflict 5. ๐Ÿšจ Failure 6. ๐Ÿ”„ Loop prevention 7. ๐Ÿ” Security 8. โšก Performance 9. ๐Ÿงช End-to-end 10. ๐Ÿ‘ค Human escalation --- 16. ๐Ÿš€ Final Implementation Blueprint โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ CUSTOMER โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ ORCHESTRATOR โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ TASK ROUTER โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ AGENT REGISTRY โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ†“ โ†“ โ†“ โ†“ TRIAGE KNOWLEDGE RESPONSE VALIDATOR โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ RESULT AGGREGATOR โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ AUTHORIZATION LAYER โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”Œโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ” โ†“ โ†“ SEND HUMAN --- ๐Ÿ“‹ DELEGATION DECISION TEMPLATE TASK โ†’ Customer ticket classification OWNER โ†’ Support Orchestrator SHOULD DELEGATE? โ†’ Yes TARGET AGENT โ†’ Triage Agent CONTEXT โ†’ Ticket text + required metadata AUTHORITY โ†’ Classification only EXPECTED OUTPUT โ†’ Category + priority + risk VALIDATION โ†’ Schema + classification policy TIMEOUT โ†’ Workflow-defined timeout FAILURE PATH โ†’ Bounded retry โ†’ fallback โ†’ escalation --- ๐Ÿ“œ AGENT CONTRACT TEMPLATE MISSION โ†’ Classify support tickets accurately INPUTS โ†’ Ticket text + permitted metadata OUTPUTS โ†’ Category + priority + risk TOOLS โ†’ Approved ticket-data access PERMISSIONS โ†’ Read-only RESTRICTIONS โ†’ Cannot send messages or modify accounts DELEGATION RULES โ†’ Cannot delegate VALIDATION โ†’ Structured schema + policy validation ESCALATION โ†’ Ambiguous/high-risk classification --- โœ… DELEGATION QUALITY CHECKLIST [x] Clear ownership [x] Explicit delegation authority [x] Bounded delegation depth [x] No circular delegation [x] Context sufficiency [x] Output contract [x] Result validation [x] Failure handling [x] Authorization boundaries [x] Observability [x] Cost controls [x] Human escalation [x] Task IDs [x] Correlation IDs [x] Idempotency controls [x] Retry limits [x] Explicit final authority [x] Traceability from goal to final decision ๐Ÿ”— Complete Traceability GOAL โ†“ TASK โ†“ OWNER โ†“ DELEGATION DECISION โ†“ RECEIVING AGENT โ†“ CONTEXT โ†“ EXECUTION โ†“ VALIDATION โ†“ RESULT โ†“ FINAL DECISION ๐Ÿ Architecture Principle The smallest effective architecture is preferred: Central Orchestrator + Specialized Agents + Independent Validation + Central Authorization + Bounded Recovery + Human Escalation The design avoids creating additional agents unless a measurable architectural reason exists, such as specialized expertise, independent validation, isolation, parallel execution, or authority separation.
GPT

Multiagent Delegation Blueprint

Add to Cart
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoneyโ€‘back
By purchasing this prompt, you agree to our terms of service
GPT-5.6
Tested icon
Guide icon
4 examples icon
Free credits icon
Multiagent Delegation Blueprint transforms a complex AI workflow into a structured delegation architecture that defines which agent owns each task, when delegation is all ๐Ÿค– Design specialized AI-agent roles ๐Ÿงฉ Decompose complex work into agent tasks ๐Ÿ”€ Define delegation rules and routing ๐Ÿ”— Map agent-to-agent dependencies ๐Ÿ“ฆ Design context and handoff contracts ๐Ÿ›‘ Prevent circular delegation Turn a collection of AI agents into a coordinated, controlled, and implementation-ready agent system. ๐Ÿš€
...more
Added over 1 month ago
Report
Browse Marketplace