Decide whether this should be an agent at all
An honest check before building a loop where a script would do.
I am considering building an agent for this: Task: [DESCRIBE IT] How it is done today: [MANUAL PROCESS OR EXISTING SCRIPT] Frequency and volume: [HOW OFTEN, HOW MANY] Answer honestly, in this order: 1. **Could a script do this?** If the steps are fixed and the inputs are structured, an agent is a slower, less reliable, more expensive script. Say so. 2. **Which step actually needs judgement?** Name it. If there isn't one, that is the answer. 3. **What happens when it gets it wrong** — is the failure visible, recoverable, and cheap? 4. **What does verification look like?** An agent whose output nobody checks is an agent nobody can trust. 5. **The smallest useful version** — usually one step automated, not the whole loop. Recommend against it if that is the honest call.
Highlighted parts are placeholders. Replace them before you send.
Worked example
The input is invented for this page. The output shows what the prompt asks for with that input.
Example input (invented)
Task: Each weekday morning, match the previous day's card payments, from our payment provider's CSV export, against open invoices in our accounting software. Mark the matched invoices as paid and email me the payments that match nothing.
How it is done today: By hand. I download the CSV, sort it by amount and look up each invoice by the reference the customer typed in the payment note. About 80% of notes hold the exact invoice number. The rest have a typo, no number at all, or one payment covering two invoices.
Frequency and volume: Every weekday, 30 to 50 payments, about 40 minutes.
Example output
1. Could a script do this? Most of it, yes. The 80% with an exact invoice number is a lookup: find the invoice, check the amount matches, mark it paid. On a 50-payment day that is 40 payments a script handles the same way every time, faster and cheaper than an agent would.
2. Which step needs judgement? The other 20%, which is 6 to 10 payments a day. Reading "INV 1O42" as invoice 1042, or deciding that one payment of 380 covers two open invoices of 150 and 230, takes judgement. That is the one place a model could help.
3. What happens when it gets it wrong? It marks an invoice paid that was not. Nobody chases it, and the failure stays invisible until someone reconciles the bank account against the invoices. Not cheap, and not easy to recover once the customer has forgotten too.
4. What does verification look like? The total of the payments marked today must equal the total in the CSV minus the unmatched ones. A script can check that sum every morning. For any guessed match, you approve it before it is written.
5. The smallest useful version. A script that marks only exact matches, where invoice number and amount both agree, and emails you the rest. That needs your accounting software to accept updates through an API [VERIFY]. If the leftovers still take most of your 40 minutes [VERIFY], add one step later: a model suggests a match for each leftover, and you click to accept or reject.
Recommendation: do not build an agent. Build the script, and add the suggestion step only if the leftovers are still worth it.
More Agents & prompting prompts
3 of the 11 other prompts filed under Agents & prompting.
Define a persona that changes behaviour
Replaces decorative role-play with instructions that alter the output.
Find the flaw in this argument
Separates a disagreement about facts from a break in the logic.
Find what is missing from my plan
Looks for the omitted step rather than critiquing the listed ones.
Autonomous agents tools
4 tools are filed under Autonomous agents, the same category as this prompt.
CrewAI
Orchestrate several agents with defined roles.
Dify
Self-hostable visual builder for LLM apps and agents.
LangChain
The most widely used framework for building LLM applications.
LlamaIndex
A framework focused on retrieval over your own documents.
Autonomous agents guides
1 guide is filed under Autonomous agents, the same category as this prompt.
What to check before letting an agent touch your codebase
The failure modes are predictable. Most of the damage comes from three of them.