The line I keep sending to people: start with the simplest thing, and only add steps when they clearly help. Our returns flow is a prompt chain with a check in the middle. Nobody would call it an agent and it works every day.
The only part we let decide for itself is which supplier to email about a damaged item, and even that picks from a fixed list.
Same with every client I’ve had. Eight out of ten “we need an agent” conversations end in a cron job, a prompt and a table.
And the other two end in a cron job, a prompt, a table and a person who reads the output.
The person is the most reliable component, yes.
Agree, but the article is also honest that the workflow version gets brittle when inputs vary a lot. Our client intake has about 30 kinds of request. A fixed chain for each was worse than one loop with tools.
30 kinds is where I’d switch too. We have five. Different problem.
How do you test the loop? With fixed chains I can test each step. With a loop I end up replaying a hundred real requests every time I change the prompt.
That’s what we do. 120 saved requests, each with the expected outcome, run before every change. Takes eleven minutes. Last week it caught a regression where a refund question got routed to sales.
This was useful for me as a non-technical person. I finally understand that our booking thing is a “workflow” and our reminder thing is too. I thought we had two agents.
You have two workflows that call a model. That’s a compliment.
The section on tool design is the underrated part. Most failures I’ve debugged were badly described tools, not bad reasoning. A parameter called “date” with no format will get you three formats in a week.
This. I now write tool descriptions as if I were explaining them to a temp on their first day: what it does, what it doesn’t do, one example.
Honest question from someone who sells tiles: when does it make sense to pay a builder for an agent, versus buying a tool that has one built in?
When the process is the thing that makes you different. Your quote logic, with your cutting waste rules and your fitters, isn’t in any tool. Your invoice reminders are, so buy that.
That’s roughly where I ended up. The quote builder I wrote myself, the reminders we pay for.
I’d like a version of this for people who don’t write code. The ideas carry over: small steps, check the output, keep a person on anything that leaves the building.
We train our VAs with almost exactly that sentence. “Anything that leaves the building gets read by a person.”
The prompt-chaining example with a gate in the middle is what I use for product descriptions. Write, check against the spec sheet, rewrite if a measurement is wrong. The gate catches about one in fifteen.
Is the check another model call or code?
Code for the numbers, a model for “does this describe the right product”. The code part catches more.
Bookmarked. Is there a shorter version for someone who just wants a quote form?
For a quote form you don’t need any of it. A form, your price table, and a person sending the quote. Add a model when the typing starts to hurt.