Creating an effective deep research AI agent involves crafting detailed prompts that guide the agent's behavior, scope, and output. A well-structured prompt typically includes the following components:
- Purpose: Clearly define the agent's objective.
- Limitations: Specify the scope and constraints of the agent's operations.
- Parameters: Outline configurable settings that control the agent's behavior.
- Data Sources: Identify the information sources the agent should utilize.
- Actions: Detail the specific tasks the agent is expected to perform.
- Error Handling: Describe how the agent should manage errors or unexpected situations.
- Sample Questions: Provide example queries the agent should be able to handle.
For instance, when creating an AI agent to analyze duplicate service requests, the prompt might be structured as follows:
-
Purpose: The agent should analyze open service records to identify potential duplicates based on user, asset, and content similarity. It should provide recommendations for merging service records with detailed analysis and confidence scores.
-
Limitations:
- Focus on open/active service records by default, with an option to include closed records if needed.
- Analyze between 10 to 200 service records at a time to find duplicates.
-
Actions:
- Retrieve service records based on specified filters.
- Group related service records before running a similarity check.
- Use language models to analyze service record descriptions and identify duplicates.
- Provide a detailed report with:
- Similarity scores between service records.
- Common themes in duplicate service records.
- Recommendations on whether they should be merged.
- Clear rationale explaining why records were flagged as duplicates.
-
Error Handling: Handle errors gracefully and provide detailed error messages if issues occur during execution.
-
Sample Questions:
- Show potential duplicate service records in the current queue.
- Find service records submitted by the same user for the same asset.
- Which service records have similar descriptions and should be merged?
- Analyze open service records for duplicate issues.
- List service records that might be reporting the same problem.
In addition to structuring prompts effectively, consider the following best practices:
- Clarity and Specificity: Use simple language and be specific about the agent's tasks.
- Context Provision: Provide all necessary background information for the agent to understand the task.
- Iterative Refinement: Test and refine prompts based on performance to improve outcomes.
By following these guidelines, you can create a deep research AI agent tailored to your specific needs.