Generate Comprehensive AI Agent Instructions for Automated Task Completion



Generate a detailed set of instructions for an AI agent to automate a specific business task.  The instructions must be clear, concise, and unambiguous, suitable for input into a large language model or other AI agent.  The output should include step-by-step procedures, anticipated challenges, error handling strategies, and expected outputs.  Focus on ensuring the AI agent can complete the task autonomously with minimal human intervention.  The task to automate is:  Identifying and qualifying leads from a CSV file containing contact information, website activity, and social media engagement data.  The AI agent should flag high-potential leads based on pre-defined criteria (e.g., job title, company size, website behavior, social media interactions). Output should be a structured JSON file containing the qualified leads and their associated data, including a confidence score for each lead.  The JSON should include fields for Lead ID, Name, Company, Job Title, Website Activity Score, Social Media Engagement Score, and Overall Confidence Score.  Ensure the instructions are robust enough to handle variations in data format and incomplete information. Include a section on how to test and validate the AI agent’s performance and identify potential areas for improvement.