A five-prompt system that turns the task between you and your next dollar into an agent you actually trust.

Published: 2026-05-18

URL: https://excellentprompts.substack.com/p/ai-prompts-to-build-an-agent-that-works


This issue is sponsored by our friends at HyperAgent, the AI agent platform from the team behind Airtable. This newsletter issue teaches you how to scope the right AI agent, HyperAgent gives you the place to easily build and operate it. Get $1000 When You Try Hyperagent Today! $1000 will be credited to your account when you sign up for a plan with Hyperagent. Wherever you may land on the entrepreneurial spectrum, creators, solopreneurs, or portfolio careerists, creating and working with AI agents can create capacity, proximity, and expansion like never before.

You’ve always had to choose between doing the work and growing the business, between serving current clients and finding new ones, between delivering today’s work and building the system that makes next month more profitable.

For example, if your rate is $150 an hour and you spend six hours a week on client onboarding admin, that’s $900 in billable capacity sitting on the table every week. That capacity covers proposals that wait, sales calls you push to next week, and the product idea that’s been living in your notes app since January. Agents give your business capabilities it has never had.

But only if you build them right. And building them right means scoping the agent before you touch any tool. The five-prompt system below does the scoping for you. Each prompt feeds the next. By the end, you’ll have an agent spec that works in ChatGPT, Claude, Hyperagent or whatever platform you prefer.

The prompts are model-agnostic because the thinking has always been the hard part. You’re reading Excellent AI Prompts. AI prompt systems, frameworks, and workflows for professionals who use AI to earn more, think sharper, and live better. Copy them. Use them. Build with them. Subscribe for the full archive of over 1000 prompts that create agent skills, agentic workflows, digital products, businesses, and more.

In This Issue Prompt 1: The Task Filter. Score your recurring tasks on revenue proximity, repeatability, and error tolerance so you build the agent that frees the most billable capacity, instead of the one you find most annoying. Prompt 2: The Instruction Architect. Turn what you do manually into a clean system prompt with built-in decision rules and explicit constraints, so the agent stops guessing in the gaps. Prompt 3: The Success Gate. Build a 5 to 7 point pass/fail rubric, plus a kill switch the agent applies to its own output before anything ever reaches you.

Prompt 4: The Handoff Map. Label every step in the workflow as AGENT or HUMAN, with a context-bleed check for anyone working across multiple income streams. Prompt 5: The Stress Test. Generate seven realistic edge cases the agent will hit in production, patch the gaps with targeted instruction additions, and get a confidence rating before the agent touches real work. Prompt 1: The Task Filter Your first agent should target the task sitting between you and your next dollar.

That list is different from the tasks that annoy you most. Annoying tasks feel urgent. Revenue-blocking tasks are urgent. They overlap sometimes, but when they don’t, people automate the wrong thing and wonder why the agent didn’t change anything.

This prompt takes your recurring tasks and scores them on three criteria that predict whether an agent will stick. Copy this prompt: CONTEXT I'm a [YOUR ROLE — e.g., freelance strategist, fractional CMO, portfolio careerist running three income streams]. I want to identify the single best recurring task to automate with an AI agent.

The right task isn't the most annoying one. It's the one that frees up the most revenue-generating capacity when handled well. TASK Walk me through this evaluation in three steps. Step 1: Ask me to list 5-7 tasks I do repeatedly (weekly or more).

For each one, I'll estimate the hours per week and describe what the task involves. Step 2: After I provide my list, score each task on three criteria using a 1-5 scale. Revenue proximity: How directly does this task sit between me and income?

A task that delays proposals or blocks client delivery scores 5. A task that's annoying but doesn't touch revenue scores 1. Repeatability: Does this task follow the same steps with the same type of inputs each time? High repeatability (same structure every time) scores 5. High variability (different judgment calls each time) scores 1. Error tolerance: Can the output be 85% right and still be useful, or does it need to be 100% accurate? High tolerance scores 5. Zero tolerance (legal docs, client-facing financials) scores 1.

Step 3: Rank the tasks by combined score. Recommend the top candidate and explain in two sentences why it's the right first agent to build. If two tasks are close, explain the tiebreaker. CONSTRAINTS

  • Do not recommend automating more than one task. The output is a single winner.
  • If no task scores above 10 combined, tell me none of my listed tasks are strong agent candidates and ask me to list tasks I've been skipping entirely because I don't have the bandwidth. Those skipped tasks are often the best agent targets.
  • Be direct. If a task I listed is a bad agent candidate, say so and say why.

The Constraint The best agent targets aren’t always on your current task list. Sometimes they’re the work that never gets done because you’ve never had the capacity for it. Think about the follow-up emails that fall through, the lead research you’ve been meaning to start, and the client check-ins you know would reduce churn but never fit into your schedule. Prompt 2: The Instruction Architect You’ve picked your task.

Now you need to tell the agent how to do it at a quality level you’d accept from a contractor you’re paying. If you handed these instructions to a freelancer and expected usable work back, would the instructions be good enough? If the answer is no, the agent won’t produce usable work either.

An agent with vague instructions is a disaster waiting to happen. And you end up redoing the output, which is worse than doing the task yourself because now you’ve spent far too much time on both. This prompt extracts what you do when you perform the task and converts it into an instruction set with built-in constraints. Copy this prompt: CONTEXT I've identified a recurring task to automate with an AI agent.

The task is: [PASTE YOUR WINNING TASK FROM PROMPT 1, including the description you gave]. My role: [YOUR ROLE]. My clients/audience: [WHO YOU SERVE]. TASK Interview me about this task so you can build a complete agent instruction set. Ask me these questions one at a time, waiting for my answer before moving to the next.

  1. What triggers this task? (A new client signs up, a calendar event fires, an email arrives, etc.)
  1. What inputs does the agent need to start? (A document, a name, a dataset, an email thread, etc.)
  1. Walk me through the steps you take, in order, when you do this task manually.
  1. What decisions do you make along the way? Where do you use judgment?
  1. What does the finished output look like? (Format, length, where it gets delivered.)
  1. What are the three most common things that go wrong or vary when you do this task?

After I've answered all six questions, generate a complete agent instruction set formatted as a system prompt I can paste into any AI agent tool. The instruction set must include:

  • A one-sentence role definition
  • The trigger condition
  • Required inputs with specific format expectations
  • Step-by-step execution instructions
  • Decision rules for the judgment calls I described (if X happens, do Y; if Z happens, stop and flag for human review)
  • Output format specification
  • Three explicit constraints based on the failure modes I described

CONSTRAINTS

  • Ask questions one at a time. Do not batch them.
  • Do not add steps I didn't describe. If you think a step is missing, ask me about it instead of inventing it.
  • Write the instruction set in direct, imperative language. "Pull the client name from the intake form" not "You might want to consider checking the intake form for the client name."
  • Flag any step where my description was vague and ask me to clarify before including it in the final instruction set.

The one-at-a-time interview structure is deliberate. When you dump all your knowledge about a task at once, you leave things out. The sequential questions force you to slow down and describe what you actually do, not what you think you do. Prompt 3: The Success Gate You have an agent with instructions.

It will produce output. The question is whether that output meets a bar you’d stake your reputation on. Think about the last time you delegated a task to someone new. You explained the task and what “done well” looks like. You showed them an example. You told them what would make you send it back. Your agent needs the same thing.

This prompt builds a pass/fail rubric for your agent’s output. Every execution gets measured against it. Copy this prompt: CONTEXT I've built an agent instruction set for the following task: [PASTE THE TASK DESCRIPTION FROM PROMPT 1].

The agent's instruction set is here: [PASTE THE SYSTEM PROMPT OUTPUT FROM PROMPT 2]. My clients/audience: [WHO YOU SERVE]. The output of this agent will [be sent to clients / be published under my name / feed into another workflow / be used internally — pick the one that applies]. TASK Build a success gate for this agent's output.

The success gate is a checklist of 5-7 pass/fail criteria that I'll use to evaluate whether the agent's work is ready to use. For each criterion, write it as a yes/no question I can answer in under 10 seconds by looking at the output. Include one "kill switch" criterion.

This is the single thing that, if wrong, means I scrap the entire output instead of fixing it. The kill switch should reflect the highest-stakes element of this task based on who sees the output and what damage a bad version would cause. After the checklist, write a two-sentence quality standard I can paste directly into the agent's system prompt as a self-check instruction. The agent should evaluate its own output against this standard before delivering it to me. CONSTRAINTS

  • Every criterion must be specific to this task. No generic quality checks like "is it well-written" or "does it look professional."
  • The kill switch must be binary. Either it passes or the output is scrapped. No partial credit.
  • Write the criteria in the order I should check them, fastest checks first.
  • If the task output is client-facing, at least two criteria must reflect the client's expectations, not just mine.

The self-check instruction at the end is what turns this from a rubric into an operational tool. You paste it into the agent’s system prompt and the agent applies the quality bar before you ever see the output. Instead of evaluating every output by hand, you only review the ones the agent flags as borderline. Prompt 4: The Handoff Map Every agent should have boundaries and guardrails.

A bad handoff point wastes your time in one of two ways. You keep touching work the agent should own, which means the agent isn’t saving you anything. Or you let the agent touch work that requires your judgment, which means the output damages a client relationship or your reputation.

This prompt maps every step and labels it. Agent handles it, or you handle it, with no ambiguity in between. Copy this prompt: CONTEXT I've built an agent system for the following task: [PASTE TASK DESCRIPTION].

The instruction set: [PASTE SYSTEM PROMPT FROM PROMPT 2]. The success gate: [PASTE CHECKLIST FROM PROMPT 3]. I work with [DESCRIBE YOUR BUSINESS BRIEFLY — e.g., "a fractional CMO practice serving three B2B clients and a consulting side project"]. TASK Map every step of this agent's workflow and label each one as AGENT or HUMAN.

For each step labeled HUMAN, explain in one sentence why this step requires my judgment. Valid reasons include: the step involves a client relationship, the step requires context the agent doesn't have, or the step carries reputational risk I'm not willing to delegate.

For each step labeled AGENT, confirm that the instruction set from Prompt 2 covers this step with enough detail for the agent to execute without clarification. Then generate a clean workflow summary in this format:

  1. [AGENT] Step description
  1. [AGENT] Step description
  1. [HUMAN] Step description — reason
  1. [AGENT] Step description

At the end, flag any steps where the boundary is debatable. For each one, give me the case for AGENT and the case for HUMAN so I can make the call. CONSTRAINTS

  • If I described more than one income stream or client type in my business context, check whether this agent's workflow could cross streams. Flag any step where the agent might apply context from one client or project to another.
  • Do not default to HUMAN for steps just because they involve judgment. Some judgment calls are low-stakes and repeatable enough for an agent with good instructions. Only flag HUMAN when the judgment is high-stakes, context-dependent, or relationship-sensitive.
  • If the workflow has more than 8 steps, ask whether any steps can be combined before generating the map.

The context-bleed check in the constraints is for anyone working with multiple income streams. If you have a consulting practice and a content business and a coaching offer, the agent handling client onboarding for your consulting practice should not be pulling tone or context from your newsletter workflow.

The handoff map catches it before it becomes an embarrassing email. Prompt 5: The Stress Test You have a scoped task, a detailed instruction set, a quality bar, and a clean handoff map. The agent looks ready.

It isn’t. Every agent fails the first time it hits something you didn’t anticipate. A client sends the wrong file format. The data source is empty. The request falls outside the scope. The input is ambiguous enough that the agent picks the wrong interpretation and delivers something that’s wrong in a way that looks right. Copy this prompt: CONTEXT I've built a complete agent system. Task: [PASTE TASK DESCRIPTION] Instruction set: [PASTE SYSTEM PROMPT FROM PROMPT 2] Success gate: [PASTE CHECKLIST FROM PROMPT 3] Handoff map: [PASTE WORKFLOW SUMMARY FROM PROMPT 4] TASK Generate 7 realistic edge-case scenarios this agent will encounter in production.

For each scenario:

  1. Describe the situation in one sentence.
  1. Identify which step in the handoff map it affects.
  1. State what the agent would do right now based on the current instruction set.
  1. State what the agent should do.
  1. If there's a gap between 3 and 4, write the specific instruction I need to add to the system prompt to close it.

CONSTRAINTS

  • Every scenario must be realistic for my business context. No extreme hypotheticals.
  • At least two scenarios should involve missing or malformed inputs.
  • At least one scenario should involve a request that falls outside the agent's scope.
  • At least one scenario should test whether the agent correctly flags for human review instead of guessing.
  • Do not generate scenarios that would require rebuilding the agent from scratch. These should be fixable with instruction additions or constraint tweaks.
  • After all seven scenarios, give me a confidence rating (1-10) for how production-ready this agent is based on how many gaps you found. If the rating is below 7, list the top three instruction additions that would move it to 7.

The confidence rating at the end is your deployment decision. Below 7, you have more scoping work to do. At 7 or above, use the agent on a real task with human review for the first three cycles, then evaluate whether the output holds.

What You Just Built You built a system. It starts with the revenue question, works through the instruction quality, sets a standard you’d put your name on, draws boundaries that protect your client relationships, and pressure-tests the whole thing before it touches real work. Scoping an agent feels slower than building one.

The first time you sit with these prompts before opening a single tool, it will feel like extra work for no payoff. Pick the task that’s been costing you the most billable time, work through Prompt 1 this afternoon, and notice what the next four prompts surface that you would have missed.

This is the first in a week-long series on building AI agents that work. Tomorrow, we look at the skills you already have that makes all of this possible. Until next time, Lea This issue is sponsored by our friends at HyperAgent, the AI agent platform from the team behind Airtable.

This newsletter issue teaches you how to scope the right AI agent, HyperAgent gives you the place to easily build and operate it. Get $1000 When You Try Hyperagent Today! $1000 will be credited to your account when you sign up for a plan with Hyperagent.