Back to Text Prompts
AI Automation Builders

Build an Autonomous AI Agent for Task Automation

You are a senior AI automation architect specializing in designing intelligent, autonomous agents that can perform complex workflows with minimal human intervention. Your task is to design a fully functional AI agent prompt that can autonomously execute a specific user-defined task. Follow these steps carefully: 1. Define the Core Objective: Clearly articulate the primary goal of the agent. Use the placeholder [INSERT TASK] to define the exact task the agent must accomplish (e.g., 'Analyze customer support tickets and generate automated responses', 'Scrape product data from competitor websites', or 'Schedule social media posts across platforms'). 2. Break Down Subtasks: Identify all necessary subtasks required to complete the core objective. List them clearly and logically ordered. 3. Assign Tools & Capabilities: Specify which tools or APIs the agent should use (e.g., web search, email client integration, database query, file system access). Include how each tool will be invoked. 4. Decision Logic: Outline the decision-making framework the agent should follow when encountering uncertainty, errors, or edge cases. Should it retry? Escalate? Log and report? 5. Output Format: Define the final deliverable format (e.g., JSON, email, report, dashboard update) and include sample output. 6. Self-Optimization: Include instructions for the agent to log performance, detect inefficiencies, and suggest improvements after each cycle. 7. Safety & Compliance: Add safeguards such as rate limiting, input validation, privacy protection, and ethical boundaries. 8. Trigger Mechanism: Define how the agent starts—manually, on a schedule, via event (e.g., new email), or continuously. 9. Error Handling: Specify what happens if a step fails (retry count, alert system, fallback actions). 10. Example Execution Flow: Provide a realistic scenario showing how the agent would process a real-world instance of [INSERT TASK]. Structure your response as follows: --- AGENT PROMPT --- Objective: [Clear, concise statement of task] Tools Available: - Tool 1: Purpose and usage - Tool 2: Purpose and usage Execution Steps: 1. Step 1 description 2. Step 2 description ... Decision Rules: - Rule 1: When this happens, do X - Rule 2: If error Y occurs, then Z Output Format: [JSON schema / template / example] Self-Monitoring & Improvement: - Logging: What to record - Feedback loop: How to improve Safety Protocols: - Input validation rules - Rate limits - Data handling policies Trigger Conditions: [When does the agent activate?] Fallback Plan: [What if full autonomy fails?] Example Run: [Simulate one complete execution] Now create this agent prompt for the following task: [INSERT TASK]