Learn it. Break it. Fix it.
Hands-on series on building and debugging AI agents and automations, with real code and the mistakes worth avoiding.
More posts

Your contact form should sort enquiries, not just collect them
A contact form with one big message box makes someone read and sort every enquiry. A few plain questions let each one land in the right place.

An order-entry agent should draft the order, not confirm it
Customer orders arrive as emails, PDFs and photos. An agent can turn them into draft orders against your product list. Here is where it should stop.

Booking reminders that let customers reply
A reminder customers can answer turns a likely no-show into a confirmed, moved or freed slot. How to set one up with the tools you already have.

AI assistants are reading your website. Make the facts easy to find
More shoppers now ask an AI assistant before they click. If your prices, hours and services are buried, it cannot quote you. Five plain fixes.

Your chatbot's answers are your promises
A tribunal held Air Canada to a refund policy its chatbot made up. Here is how to stop your own bot from inventing promises you then have to keep.

Your shared spreadsheet is an app. Build it properly.
When one shared spreadsheet runs a team's bookings, jobs or stock, it is already an app. A small form-and-view app makes it safer and ready to automate.

A supplier invoice agent should draft the bill, not pay it
How a document-reading agent turns supplier invoice PDFs into draft bills: six fields, one match against your orders, and a clear pile for a person.

Stop building the Monday report by hand
The weekly numbers report is copied from the same tools into the same shape every week. That makes it one of the easiest things to automate.

Write a one-page brief before you ask for an automation quote
Vague requests get quotes you cannot compare. Six lines to put on one page before you ask anyone to price an automation, with a filled-in example.

Test your AI agent before your customers do
Most AI agent failures are found by customers. A one-afternoon dry run with real past messages finds them first. Here is how to run one.

Swap the onboarding email chase for one intake form
New-client onboarding often runs on a chain of emails. One well-built intake form can collect everything once and start the setup for you.

A lead-qualification agent should sort leads, not reject them
What an AI lead-qualification agent should ask, where it should send each lead, and the one decision it should never make alone.

Big Tech wants to be your AI assistant. Pick one by your workflow, not the logo
Meta, Google, OpenAI and Anthropic all want to be the small business AI assistant. How to choose by the work you need done, not the brand.

Your automation bill: why one AI step can cost five tasks
On Zapier and Make, AI steps are billed differently from plain steps. How to read the bill, check each step's tier and keep costs predictable.

The OpenCode breach: treat AI keys like a card on file
Hackers used stolen AI keys to run up overnight bills. What the OpenCode breach means for a small team, and four checks to make this week.

Five signs a task is ready to automate
Not every annoying task should be automated. Five plain tests to tell a good candidate from an expensive mistake, with examples for small teams.

Stop answering 'any update?': give customers a status page
A simple status page fed by the tools you already use can take 'any update?' emails off your team's plate. How to build one, step by step.

Did that automation pay off? Measure it before you build it
Three numbers tell you if an automation earned its keep: hours, errors and response time. Write them down before you build, not after.

Agent, automation or chatbot: which one you actually need
Three tools, three different jobs. A plain way to pick the right one for your small team, with an example you can test this week.

Your contact form is already the first step of an automation
Most small teams treat the contact form as a dead end. Turn it into the front door of an automation, one step at a time.

The hand-off rule: when an AI agent should stop and call a person
Write down the moments an AI agent must stop and pass the chat to a person. A practical rule set for small teams, with examples.

The copy-paste audit: find your team's hidden manual steps in 20 minutes
A 20-minute exercise to find the retyping, re-pasting and re-checking your team does every week, and pick the one worth automating first.

Your first automation should be boring
The best first workflow to automate is the dull one your team repeats every week. Here is how to spot it and why exciting projects stall.
Debugging AI agents

Your agent is a loop. Log every turn.
When an agent gives a wrong answer, a "question in, answer out" log tells you nothing. Learn how the agent loop works, log every turn of it, and read a trace to find the real bug.

Why your agent picks the wrong tool (or no tool at all)
Most "the model got it wrong" bugs are tool design bugs. Rewrite names, descriptions, schemas and error messages so your agent calls the right tool with the right input, and test it.

The agent that never stops (and costs you)
Agents that repeat tool calls, outgrow the context window or run up the bill all lack the same thing: a way to stop. Add limits, detect loops, trim context and give every run a clean finish.

Your agent worked yesterday. Regression evals from real traces
A prompt tweak in one place breaks behaviour somewhere else. Turn bad traces into eval cases, run them against fake tools, grade with code first, and compare every change with a baseline.
Automations that don't break

Webhooks: verify, store, acknowledge, then do the work
A slow webhook handler turns one form submission into three welcome emails. Verify signatures properly, store the event, return 200 fast, and move the real work into a worker.

Idempotency: the same event will arrive twice
Retries fix failures only if every step is safe to run twice. Record side effects, order steps carefully, use idempotency keys, back off with jitter, and test by running everything twice.

Find out before your customers do: logs, alerts and a dead-letter view
Every automation fails eventually. Log every step, watch five numbers, alert without spamming, and build a small dead-letter view that lets you replay failed events safely.