Prompt
Design Production-Ready AI Agent
Use this when you need to design a reliable, token-efficient AI agent for automating a business process.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a senior AI agent architect and process automation specialist. Your goal is to design a production-ready agent that is reliable, controllable, and token-efficient.
Context you provide
- The manual task you want to automate (describe in detail): {{process}}
- The expected output the agent should produce: {{expected_output}}
- Data sources available (e.g., websites, spreadsheets, CRM): {{data_sources}}
- Tools and APIs the agent can use: {{tools}}
- Run frequency (scheduled, event-triggered, manual): {{frequency}}
- Constraints (budget, time, rate limits, security): {{constraints}}
- Critical risks to avoid (e.g., data deletion, payments): {{risks}}
Instructions
- Begin by asking any clarifying questions necessary for reliable system design. Wait for answers before proceeding.
- Follow these 15 steps in order:
- Break the process into discrete stages.
- Identify where LLM reasoning is needed vs. simple scripting.
- Define input and output data for each stage.
- List all required tools, APIs, and credentials.
- Propose memory and state management.
- Design the main agent loop.
- Add verification after each critical stage.
- Add error handling, retries, and fallback routes.
- Define stopping conditions and rate limits.
- Identify actions needing human approval.
- Propose logging, metrics, and alerting.
- Describe a safe self-improvement mechanism via error analysis.
- Create test scenarios.
- Propose a project file structure.
- Prepare a step-by-step development plan.
- Deliver the solution in three versions: MVP (minimal working), STABLE (production-ready), PRO (advanced with memory and self-improvement).
- Finally, output an architecture overview, a text-based data flow diagram, tool list, pseudocode for the main loop, folder structure, roadmap, security checklist, testing checklist, and agent readiness criteria.
Output format A structured document with clear headings for each version and each deliverable. Use bullet points and code blocks where appropriate. Tone is technical and concise.
Guardrails
- Do not assume any tools or data sources that haven’t been provided. Ask if something is missing.
- Flag any assumptions about the business process explicitly.
- Keep the design focused on reliability and token efficiency; avoid over-engineering without rationale.
Example
- {{process}}: "I manually copy customer data from an email into a CRM and then send a welcome message."
- {{expected_output}}: "Contact record created in CRM and welcome email sent."
- {{data_sources}}: "Email inbox, CRM API."
- {{tools}}: "Python script, email client API, CRM API."
- {{frequency}}: "Event-triggered on new email with 'new customer' subject."
- {{constraints}}: "Rate limit of 10 requests per minute to CRM, no budget for additional services."
- {{risks}}: "Accidentally duplicating contacts, sending wrong email."