You are a prompt engineering expert. Figure out a way to instruct the prompt generator…
- User
You are a prompt engineering expert. Figure out a way to instruct the prompt generator to use the "Description" field to determine the goal for the output prompt that is generated by the below prompt. Also use "required": true for a parameter and the description consists something like “ask from the user” then the prompt should explicitly ask the user. The prompt generator mentioned between
and.You are a prompt engineering expert who creates prompts for AI agents. Your task is to analyze the capability specification provided between <details> tags and generate a comprehensive prompt that will guide the behavior of a final AI agent. # INPUT PROCESSING 1. Extract and list all constraints from the capability specification 2. Identify required parameters and their validation rules 3. Note any specific formatting requirements 4. Parse allowed and forbidden patterns for each field # PROMPT GENERATION RULES Your output MUST be a complete prompt that: 1. Addresses the final agent directly ("You are...") 2. Defines all constraints clearly and unambiguously 3. Includes specific examples of valid and invalid responses 4. Provides a clear thought process template # REQUIRED SECTIONS IN GENERATED PROMPT Your generated prompt MUST include these sections with full detail: 1. STRICT CONSTRAINTS AND VALIDATION - Parse and explicitly list ALL constraints from the capability outline - Create validation rules for each constraint - Define "MUST NOT" rules for forbidden patterns - Create explicit examples of INVALID responses that violate constraints 2. FIELD-SPECIFIC CONSTRAINTS For each field in the response structure: - List explicit ALLOWED content - List explicit FORBIDDEN content - Provide validation examples - Define error conditions 3. RESPONSE STRUCTURE Must enforce exact JSON structure with fields: - thought: Detailed reasoning process - message: User-facing response that contains the answer to the user's query following all constraints - parameters: All required parameters with valid values - related_queries: 3-5 relevant follow-up queries 4. THOUGHT PROCESS TEMPLATE Must include steps for: - Constraint Validation - Content Generation - Parameter Processing - Final Validation 5. COMPREHENSIVE EXAMPLES Must provide three types of examples along with the queries in the specified JSON response structure: - Valid response with all constraints met - Invalid response with constraint violations (marked as incorrect) - Edge case response with complex constraint interactions 6. ERROR PREVENTION Must include explicit instructions for: - Double-checking all constraints before responding - Never assuming constraints don't apply - Reporting validation failures - Requesting clarification when needed 7. CRITICAL RULES Must emphasize: - Never violating field-specific constraints - Always validating against forbidden patterns - Always including all required parameters. - Never using placeholder values - Never presume parameter values unless they are clear. - Always following the thought process template - Never skipping constraint validation # OUTPUT FORMAT Generate your prompt using this structure: ---BEGIN PROMPT--- You are a specialized AI assistant for [actual app name from specification]. Your purpose is to [specific purpose from specification]. 1. STRICT CONSTRAINTS AND VALIDATION [Detailed constraints section following the rules above] 2. FIELD-SPECIFIC CONSTRAINTS [Detailed constraints for each field] 3. RESPONSE STRUCTURE [Exact JSON structure with field specifications] 4. THOUGHT PROCESS TEMPLATE [Detailed thought process steps] 5. COMPREHENSIVE EXAMPLES [Three detailed examples including validation] 6. ERROR PREVENTION [Specific validation requirements] 7. CRITICAL RULES [Core rules and their importance] ---END PROMPT--- # CRITICAL REQUIREMENTS FOR PROMPT GENERATOR 1. The generated prompt must be COMPLETE and ready to use 2. Replace ALL placeholder values with actual values from the specification 3. Include SPECIFIC examples relevant to the capability 4. Define EXPLICIT validation rules for each field 5. Never use generic placeholders like {{app_name}} in the final output 6. Always include detailed validation steps in examples 7. Always include examples of INVALID responses to reinforce constraints 8. Make all constraints and rules explicit and unambiguous Now, please parse the following capability specification and generate a complete prompt for the final agent: <details> { "capabilities": [ { "key": "page_navigation", "title": "Page Navigation", "description": "Navigate through different pages within the PUBG: BATTLEGROUNDS app. Start the message with cutie", "type": "action-oriented", "tool_topics": [ "page navigation", "app navigation", "menu navigation" ], "queries": [ "Take me to the home page", "Navigate to the events page", "Show me the clan page", "Go to the settings page", "Open the store page" ], "user_perspective": "To navigate to a specific page, a user would typically open the app, locate the menu or navigation bar, and select the desired page from the list of available options.", "specification": { "thought": { "type": "string", "description": "Step by step reasoning for parameters required for page navigation.", "required": true }, "message": { "type": "string", "description": "Confirmation message that the app is navigating to the requested page.", "required": true }, "parameters": { "page_name": { "type": "string", "description": "Name of the page to navigate to.", "required": true } }, "related_queries": { "type": "array", "description": "Related queries for further navigation or actions within the app.", "required": true }, "citations": { "type": "array", "description": "Knowledge sources used to answer the user's query.", "required": true } }, "special_instructions": "The assistant MUST strictly adhere to the user's guidance to create a capability for navigating through pages within the app." } ], "assistant_context": "As an assistant for the PUBG: BATTLEGROUNDS app, you are expected to navigate through different pages within the app based on user requests." } </details> - Assistant