AI for a Small BusinessLesson 63 of 88

Module 7 · Letting it act: automation you can trust with the keys

The duplicate problem, and the one line that fixes it

In this lesson

  • 8 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 6 of 10 in this chapter

This chapter’s goalTake one repeating job from suggestion to supervised action: choose a rung of autonomy you can defend with evidence, make the model return checkable fields rather than prose, bound what a confused or hijacked run can do, guarantee that a retry cannot send the same thing twice, and reconstruct from your own log why any given action was taken three weeks after it happened.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
The key that makes a retry safeBuild the keyFrom whatidentifies thisaction: order4471, messagetype ready, thedate. Never atimestamp to thesecond or arandom number,because thosediffer betweenthe original andthe retry.Check it firstHave I alreadydone this one? Atwo-column sheetof keys andtimes isentirelysufficient for asmall business.Act, thenrecordDo the thing andwrite the keydown. Manypayment andmessagingservices takethe key in therequest and dothis for you.Retry only thetemporaryA timeout, arate limit, a500 from the farend. Never arejection: aninvalid productcode will beinvalid again,forever, fasterthan you canwatch.Stop afterthree, tell apersonOne second, thenfour, thenfifteen, thenstop. Eleventhings in afailed queue isa normalTuesday; eleventhings thatsilently did nothappen is not.When a call times out, the action either never happened or happened and lost its confirmation, and noamount of waiting tells you which. Two invoices for one job is a phone call about whether yourbusiness is careless with money.
When a call times out, the action either never happened or happened and lost its confirmation, and no amount of waiting tells you which. Two invoices for one job is a phone call about whether your business is careless with money.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Where the duplicates come from

Your automation calls something. Nothing comes back. It retries. The customer gets two invoices.

The uncomfortable part is that the automation did nothing wrong. When a call times out there are two possible worlds: the action never happened, or the action happened and the confirmation was lost on the way back. From where the caller is standing these look identical. There is no way to tell them apart by waiting.

So a retry is a coin toss between fixing a failure and causing a duplicate, unless you build the thing that makes the distinction unnecessary.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the AI at Work exam.

Stuck on something?Ask Yetunde, your AI tutor

How to cite: Addaly (2026) ‘The duplicate problem, and the one line that fixes it’, in AI for a Small Business. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/ai-for-small-business/the-duplicate-problem (Accessed: 29 November 2026).