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

Prompt Details

Model
Chat - (gpt-5.6)
Token size
368
Example input
[INSERT AGENT GOAL, e.g., Automated Web Research & Article Writer / Financial Data Analyst / Customer Support Orchestrator]: Automated Web Research & Technical Article Writer [INSERT FRAMEWORK, e.g., AutoGen / CrewAI / LangGraph / Custom Python]: LangGraph [INSERT LLM MODELS, e.g., OpenAI GPT-4o, Claude 3.5 Sonnet, Local Llama 3]: Claude 3.5 Sonnet and OpenAI GPT-4o [INSERT TOOLS & STORAGE, e.g., Web Search API, PostgreSQL, Qdrant Vector DB, Python Sandbox Execution]: Serper Web Search API, Qdrant Vector DB, Redis, Python Sandbox Execution
Example output
# Production-Grade Autonomous AI Multi-Agent Architecture ## Domain: Automated Web Research & Technical Article Writer **Role:** Principal AI Systems Architect & Lead Multi-Agent Engineer --- # 1. High-Level System Architecture ``` User Request │ ▼ API Gateway / UI │ ▼ LangGraph Supervisor Agent │ ┌──────────────────┼──────────────────┐ │ │ │ ▼ ▼ ▼ Planning Agent Memory Agent Budget Controller │ │ │ └──────────────────┼──────────────────┘ │ ▼ Task Decomposition Engine │ ┌───────────┬─────────────┬────────────┐ ▼ ▼ ▼ ▼ Research Search Retrieval Tool Router Agent Agent Agent Agent │ │ │ │ └─────┬─────┴──────┬──────┴────────────┘ ▼ ▼ Knowledge Validation Agent │ ▼ Technical Writer Agent │ ▼ SEO Optimization Agent │ ▼ Fact Verification Agent │ ▼ Quality Review Agent │ ▼ Final Response Formatter │ ▼ User ``` --- # 2. Communication Topology ## Architecture Pattern **Primary:** Hierarchical ``` Supervisor │ ├────────Planner │ ├────────Research │ ├────────Writer │ ├────────Reviewer │ └────────Publisher ``` Supervisor owns all decisions. Workers never directly answer the user. --- ## Internal Pattern Sequential + Parallel Hybrid Example ``` Planning │ ▼ Parallel Research │ ├──Google Search ├──Documentation ├──GitHub ├──Academic Papers └──Blogs │ ▼ Merge Results │ ▼ Validation │ ▼ Writing │ ▼ Review ``` --- # LangGraph State ```python class AgentState(TypedDict): user_query: str task_plan: List[str] search_results: List retrieved_docs: List validated_sources: List article_outline: List draft: str reviewed_article: str final_output: str memory_context: Dict execution_logs: List token_usage: Dict errors: List ``` --- # 3. Individual Agents --- # A. Supervisor Agent ## Responsibility Entire orchestration Makes routing decisions. ### System Prompt ``` You are the supervisor. Never perform research yourself. Delegate work. Monitor execution. Terminate loops. Validate completion. Return only when all tasks pass QA. ``` ### Tools - LangGraph Router - Redis - Token Counter - Budget Manager ### Boundaries Never writes article. Never searches web. --- # B. Planning Agent ## Responsibility Break request into subtasks. ### Output Example ``` Task 1 Understand topic Task 2 Research Task 3 Collect sources Task 4 Write outline Task 5 Draft article Task 6 Fact check Task 7 SEO Task 8 Review ``` ### Prompt ``` Break work into smallest executable tasks. ``` --- # C. Search Agent ## Tools - Serper API Responsibilities - Google Search - News - Documentation - GitHub - StackOverflow Prompt ``` Retrieve only authoritative sources. Ignore low authority websites. ``` --- # D. Retrieval Agent Tools - Qdrant - Embedding Model Responsibilities Retrieve internal knowledge. Hybrid Search ``` BM25 + Dense Embeddings + Metadata Filter ``` --- # E. Research Agent Tools - Search - Python - Retrieval Responsibilities Read Summarize Extract Facts Generate structured knowledge. Output ``` Facts Claims Statistics Citations Code snippets Best Practices Limitations ``` --- # F. Validation Agent Purpose Detect hallucinations. Checks ✔ Claim exists ✔ Source exists ✔ Multiple references ✔ Freshness Rejects - Unsupported claims - AI generated references - Broken URLs --- # G. Technical Writer Preferred Model Claude 3.5 Sonnet Reason Excellent long-form writing. Prompt ``` Write technical content. Be concise. Professional tone. Explain concepts. Never invent facts. Use Markdown. ``` Output ``` Title Introduction Architecture Examples Code Pros Cons Conclusion ``` --- # H. SEO Agent Tasks Generate - Meta Title - Meta Description - Keywords - Slug - Headings - Internal links - FAQ --- # I. Fact Checker Model GPT-4o Tasks Compare Article vs Sources Flags ``` Incorrect numbers Incorrect APIs Missing references Contradictions ``` --- # J. Review Agent Checklist Grammar Readability Markdown Formatting Consistency Length Technical accuracy --- # K. Publisher Agent Produces Markdown HTML PDF JSON CMS Payload --- # 4. Memory Strategy --- ## Short-Term Memory Technology LangGraph State Contains ``` Current messages Current task Intermediate outputs Execution logs Agent decisions ``` TTL ``` Session only ``` --- ## Long-Term Memory Technology Qdrant Stores ``` Past research Code examples Articles Documentation FAQs Prompt improvements ``` Embedding ``` OpenAI text-embedding-3-large ``` Metadata ``` Author Date Tags Domain Confidence Source Language ``` --- ## Fast State Cache Technology Redis Stores ``` Session API cache Embeddings cache Search cache Rate limits Execution state Authentication ``` TTL ``` 24 hours ``` --- # Retrieval Flow ``` Query ↓ Embedding ↓ Vector Search ↓ Metadata Filter ↓ Top K ↓ Reranking ↓ Context Window ↓ LLM ``` --- # 5. Tool Calling Protocol Every tool follows the same lifecycle. ``` Validate Input ↓ Permission Check ↓ Rate Limit Check ↓ Execute ↓ Retry ↓ Validate Output ↓ Normalize ↓ Return ``` --- ## Search Tool ``` Input ↓ Keyword Cleaning ↓ Serper Search ↓ Deduplicate ↓ Extract Content ↓ Return ``` --- ## Python Sandbox Purpose Safe execution. Restrictions ``` No Internet CPU Limit Memory Limit Execution Timeout Filesystem Isolation Package Whitelist ``` Allowed ``` Pandas NumPy Matplotlib Scikit Regex JSON BeautifulSoup ``` --- ## API Retry Policy Retry ``` 429 500 502 503 504 ``` Strategy ``` Exponential Backoff 1 sec 2 sec 4 sec 8 sec 16 sec ``` Maximum ``` 5 retries ``` Circuit Breaker ``` Fail Fast Cooldown Retry Later ``` --- # 6. Guardrails --- ## Infinite Loop Detection Supervisor tracks ``` Visited Nodes Execution Count Same Prompt Count Repeated Outputs ``` Terminate if ``` >10 iterations ``` --- ## Hallucination Detection Rule Every factual paragraph ↓ Must have citation. Otherwise ↓ Rewrite. --- ## Budget Controller Tracks ``` Input Tokens Output Tokens API Cost Latency ``` Thresholds ``` Research $0.50 Writing $0.70 Review $0.20 Maximum $1.50 per request ``` --- ## Human in the Loop Trigger if Confidence ``` <80% ``` OR Conflicting sources OR Sensitive domain OR Missing evidence Supervisor asks ``` Human approval required. ``` --- ## Source Quality Ranking Priority ``` Official Documentation ↓ Research Papers ↓ Government Sources ↓ GitHub ↓ Company Blogs ↓ Technical Blogs ↓ Community Forums ``` --- ## Confidence Score Calculated ``` Source credibility + Agreement + Freshness + Citation count + Validation score ``` --- # 7. LangGraph Workflow ``` START ↓ Supervisor ↓ Planner ↓ Memory Retrieval ↓ Parallel Search ↓ Research ↓ Validation ↓ Draft ↓ SEO ↓ Fact Check ↓ Review ↓ Publish ↓ END ``` --- # 8. Execution Example ## User Request ``` Write an article: "How LangGraph enables enterprise multi-agent AI systems." ``` --- ### Step 1 Supervisor receives request. --- ### Step 2 Planning Agent creates tasks. ``` Research Architecture Examples Pros Code Comparison Best Practices ``` --- ### Step 3 Memory Agent Searches Qdrant. Finds ``` Previous LangGraph docs Enterprise notes Stored examples ``` --- ### Step 4 Search Agent Uses Serper. Collects ``` Official LangGraph Docs GitHub LangChain Blog Microsoft Papers Arxiv ``` --- ### Step 5 Research Agent Extracts ``` Architecture Advantages Workflow State Graph Nodes Edges Persistence ``` --- ### Step 6 Validation Agent Confirms Every claim has at least two trustworthy references. --- ### Step 7 Writer Claude writes ``` 3,500-word technical article Examples Architecture diagrams Code snippets Tables ``` --- ### Step 8 SEO Agent Creates ``` Meta title Slug Keywords FAQ Description ``` --- ### Step 9 Fact Checker GPT-4o verifies ``` API names Libraries Terminology Statistics ``` --- ### Step 10 Reviewer Improves Grammar Formatting Markdown Readability --- ### Step 11 Publisher Exports ``` Markdown HTML PDF CMS JSON ``` --- ### Step 12 Supervisor Checks ``` No errors Budget OK Sources validated Article approved ``` Returns final article to the user. --- # 9. Recommended Production Technology Stack | Layer | Technology | |--------|------------| | Agent Framework | LangGraph | | LLM (Writing) | Claude 3.5 Sonnet | | LLM (Reasoning / Review) | OpenAI GPT-4o | | Embeddings | OpenAI text-embedding-3-large | | Vector Database | Qdrant | | Cache / Session Store | Redis | | Web Search | Serper API | | Sandbox Execution | Isolated Python Runtime | | Orchestration | LangGraph + Async Workers | | API Framework | FastAPI | | Message Queue | RabbitMQ / Redis Streams | | Object Storage | S3 / MinIO | | Logging | OpenTelemetry | | Monitoring | Prometheus + Grafana | | Error Tracking | Sentry | | Containerization | Docker | | Orchestration Platform | Kubernetes | | CI/CD | GitHub Actions | | Secret Management | HashiCorp Vault / AWS Secrets Manager | | Authentication | OAuth2 + JWT | | Rate Limiting | Redis-based Limiter | | Observability | LangSmith + OpenTelemetry | --- # 10. Production Design Principles - **Single Supervisor Pattern:** One orchestrator controls all worker agents. - **Hybrid Communication:** Hierarchical control with sequential and parallel execution where appropriate. - **Model Specialization:** Claude 3.5 Sonnet for high-quality long-form writing; GPT-4o for reasoning, validation, and review. - **Memory Architecture:** LangGraph state for short-term context, Redis for fast persistence/cache, and Qdrant for long-term semantic retrieval (RAG). - **Robust Tooling:** Strict input validation, isolated Python sandbox, standardized retries with exponential backoff, and circuit breakers for external APIs. - **Safety First:** Hallucination checks, citation enforcement, loop detection, token/cost budgeting, and human-in-the-loop escalation for low-confidence or sensitive tasks. - **Production Readiness:** Full observability, structured logging, metrics, tracing, containerized deployment, horizontal scalability, and secure secret management.
🤖 GPT

Autonomous Agent System Generator

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
Generates end-to-end production architecture for multi-agent AI systems, LLM tools, memory structures, and agentic workflows. Ideal for developers building autonomous AI agents, multi-agent frameworks, and task automation systems with complete logic and safety guardrails.
...more
Added 1 day ago
Report
Browse Marketplace