Back to digital products
Book cover: First, Clean Up the Mess. Then Deploy AI.

Ebook / PDF + XLSX

First, Clean Up the Mess. Then Deploy AI.

Kristian · KK make IT

Put your process in order before handing it to AI. An agent inherits its rules, data and gaps.

Work through one business process, identify sources, responsibilities and permissions, and prepare tests for a usable AI result. The package includes a worked construction-quote example and an editable workbook.

Length
82 pages
Workbook
14 XLSX worksheets
Format
PDF + XLSX · A4
Language
English

CZK 349.00Ebook, editable workbook and getting-started guide

Digital product · unlimited availability

The seller is not registered for VAT.

Read a free sample

The introduction and complete first chapter. No email required.

Introduction and first chapter / No email required

Read before you decide.

Sample from the English review edition. Contains strong language; the editable workbook is included in the paid package.

Read the introduction and complete first chapter

First, Clean Up the Mess. Then Deploy AI.

Because an agent inherits the rules, data and gaps in the process you give it

Before you start looking for a magic button

This is not a book about building a digital director in one evening who arrives at your company in the morning, fires half the staff and sends you a spreadsheet of millions saved that afternoon.

Those things look good on social media. In practice, they usually look like a Monday meeting where everyone is trying to work out why the automation sent a customer the wrong price and who actually allowed it to do that.

This book is for you if you want to automate specific work without breaking what currently works, at least after a fashion. You do not need to know how to code. But you do need to know your own business, be willing to look at its mess and stop telling yourself that a process works just because it exists in a policy document.

Choose one process as you read. Not the whole company. One job with a clear beginning and end. Receiving an enquiry and preparing a quote, for example. Checking documentation. Processing an invoice. Passing a fault report to a technician. Something that repeats and where you can recognise a correct result.

There is a workbook at the end of the book. You will add something to it after each chapter. If you only read it, you will gain an opinion. If you fill it in for a real process, you will gain a system design you can test.

The outcome should not be we have AI.

The outcome should be:

we know which work we are changing and why;

we know what actually happens, not just the official version;

we have decided what to remove, what to standardise, what to automate with a rule and where we need AI;

the agent has one role, boundaries, checks and a person responsible for the process;

we can demonstrate that it works outside a prepared demonstration;

we know when to stop it.

If you are looking for a sentence you can paste into ChatGPT and have it return a finished business, let me save you some time. You will not find it here. And you probably will not find it anywhere.

If you want to build something that survives its first encounter with reality, we can begin.

1. If it is perfect on the first attempt, something is seriously wrong

Someone showed you an AI agent. It received a task, opened the right document, extracted exactly the information it needed and sent a perfect result within seconds.

It never got stuck. It did not need to ask anything. It made no mistakes. It needed no checking. And the person demonstrating it looked as though this was exactly how it would now run by itself.

Right. Of course.

When something is a little too perfect on the first attempt, you are usually not looking at a system. You are looking at a prepared path where someone has already cleared away everything the agent could trip over.

That does not automatically make the demo a fraud. A demo is meant to show what the technology can do. The problem starts when someone sells you that demonstration as proof that the agent needs no work, checks, safeguards or maintenance. You simply turn it on and it will spend the next five years saving your business all by itself.

This is usually sold by people in a hurry. Done, done, agent, invoice, next client. They want to make money quickly but do not want to build anything properly. Long-term operation is less exciting than a video in which an agent does a whole department's work in thirty seconds.

In practice, you have to handle missing data, poor instructions, people who understood something differently, a changed document, an unavailable system, a more expensive model, a slow response and an error that appears only once in fifty runs. It is hard to fit that into a short demo.

So it simply gets left out.

A demo is not reality. It is an ideal corridor.

Think of a demo as an immaculately tidy corridor. The agent gets a clear task, the right file and the expected type of answer. Nobody interferes. No information is missing. The customer does not write something completely unexpected. An employee does not rename a spreadsheet column. The access token, a temporary key to the connected system, does not expire two minutes before the quote is sent.

The agent walks from beginning to end and everyone applauds.

But your company is not a tidy corridor. Your company is a warehouse where someone left a box in the middle of the aisle three years ago, and everyone has walked around it ever since because nobody knows whose it is.

People keep information in emails, Excel, their heads, WhatsApp and a document called final_oprava_3_novy_opravdu_final. One customer gets a different price because "that is what we agreed". One employee knows exactly what to do but cannot explain why. And half the process works only because two people have known each other for ten years.

Then you let an agent into it.

And you are surprised when it takes over the mess.

What else was it supposed to take over? You gave it your data, your rules and your exceptions. If the process is unclear, the agent will not magically turn it into a clear process just because it has AI in its name. It can suggest improvements. It can speed up some steps. But if you let it optimise only within the current system, it may conclude that the safest option is to preserve precisely the state you wanted to change.

So it may do more than inherit the mess. It may make that mess stable.

Suddenly, you have a faster, automated, technologically modern mess. Congratulations.

How do you prevent that now, before you start worrying about the model and the prompt?

Take the most recent real cases. Not a presentation of the process, but actual work. Put the way the process is supposed to work alongside what really happened. Mark every exception, manual workaround, missing piece of information and decision that exists only in someone's head. And ask an uncomfortable question about every step: do we need to keep it at all?

Only then decide what to remove, what to standardise, what to handle with an ordinary rule, where to use AI and what must remain with a person.

We will go through the whole method in An agent can audit your process. It does not own the truth. For now, remember one simple thing: before you speed up a process, check that it is not heading in the wrong direction.

An overly perfect demo does not show you the safeguards

When you can try an agent or application, do not look only at whether it can handle an ideal task. Find out what it does when something is missing.

What if you leave out a required piece of information?

What if two documents contradict each other?

What if you ask it to do something it is not allowed to do?

What if it does not know?

Does it stop? Ask? Admit uncertainty? Or make something up and, with the expression of an experienced surgeon, operate on the wrong leg?

Safeguards are not glamorous. An agent that solves everything immediately looks better on video than one that says, "I am missing information. I will not continue without confirmation." Yet that exact sentence can save you money, a customer or an entire database in a real business.

A Bugatti can do four hundred too. But you would not fit it with Dacia brakes and say that speed is what matters.

An agent is no different. If it can act quickly, it needs brakes that match the damage it could cause.

It said it was done. It was not.

I experienced something with a well-known AI app-building tool that illustrates this problem very clearly. I do not want to disparage the tool. It can be excellent for small projects. When you know what to expect, it can save you a great deal of time.

I gave it a dashboard, a control panel, with six buttons whose functionality it was supposed to fix.

It fixed them and announced that it was done.

Except it had missed one button.

I gave it evidence that the dashboard still was not finished. It continued, fixed another part and again missed a button. We repeated this four times.

I kept supplying evidence, and the tool kept returning with a confident statement that it had completed the task. It always did enough work for the result to look almost finished. But it never demonstrated that it had checked the entire dashboard.

What disappointed me most? Not the error itself. Every tool and every person makes mistakes, including me. The problem was that the word done had no firm definition. I had no complete list of the buttons, no expected function for each one and no condition that the work could not be closed without all test results.

I fixed the buttons was a sentence, not a verified state.

An agent may think it is done. It can write that in bold, add a green tick and congratulate you on a successful project. All of that is useless if the result has not passed the check you defined beforehand.

Done is not an agent's feeling.

Done is a test.

And if you have no test, do not be surprised when the work gets tangled in more fixes, changes and repeated attempts. I do not know whether a particular tool does that deliberately, and I do not need to read its mind. What matters to me is the result: without an inventory of the entire assignment and a clear completion condition, you cannot control when the work has ended or whether it has ended correctly.

Eventually, I stopped assigning fix six buttons as a single task. I split it into six separate tasks. One button, one expected function, one piece of evidence.

For a dashboard, that means something quite ordinary. List every button. Write down what each should do when clicked. The agent then does not deliver a feeling that it has fixed enough of them. It delivers evidence for every row. If one is missing, it is not done.

Then there is the opposite extreme. Someone builds a checking process so elaborate that it burns twice as many tokens, the billable units of model work, as the work itself. One agent does something, a second repeats all of it, a third checks the check, and everyone solemnly announces that they more or less agree.

That is not quality management either. It is an expensive mutual reassurance club.

Checks must match the risk. A rule verifies a required field. A calculator recalculates a number. A document sample is checked using a method different from the author's own. And a person steps in where a mistake affects money, a commitment, safety or reputation. Not everything needs a second expensive agent.

Perry was supposed to check ten commits. He checked eight.

I made a similar mistake with my own agent. Perry is my coding agent. He was given ten commits, ten sets of changes, to check before deployment.

What happened: he checked eight. He skipped two, the system still allowed the work to proceed, and a bug was deployed. After this much time, I cannot reliably recall the technical type of the bug, so I will not invent it. What is confirmed is the scope of the failure: two out of ten sets had not been checked, and nothing blocked the next step.

What was missing: a complete list of the ten changes, the status of every row and a technical gate. Not checked must not mean someone might return to it later. It must mean work does not proceed.

What changed: the large batch is split up, each set has a result and evidence, and deployment is preceded by regression testing, checking that a new change has not broken something that previously worked.

Eight out of ten may be a good mark at school. Before deployment, it is a fairly foolish definition of done.

An agent that keeps going is not necessarily doing useful work

Another warning sign is an agent that keeps doing things but cannot clearly say when it has finished. Or cannot name what it is actually doing.

It adds another change. Then another. It finds a new problem it did not mention before. It rewrites a part that worked. It fixes an error created by its previous fix. Meanwhile, you watch the usage figures and wonder whether this digital employee has discovered the Czech civil service.

Activity is not a result.

An agent can generate thousands of lines, dozens of documents and a pile of impressive-sounding reports. But without a clear goal, a completion condition and a limit at which it must stop, it may simply be producing an expensive feeling that something is happening.

That is exactly what happened to me when translating Nikola Tesla's document about energy.

What happened: Codex translated the first two pages, put the next fourteen into the resulting PDF in the original language and cut off twelve.

What was missing: ChatGPT had prepared the prompt, and I had not checked it properly. The project had no AGENTS.md, a file containing persistent working rules for the agent. There was no inventory of sections, no progress record and no check that the number of completed sections matched the source.

What changed: a long document is first divided into sections with IDs and statuses. At the end, the source and target section counts must match. The check covers the beginning, middle, end and a random sample.

A strong model was given a weak process. The first two good pages looked like evidence that the rest would probably work out. It did not.

For every agent, you therefore need to know three things:

Exactly what does the finished result look like?

Who or what will verify it?

When must the agent stop and admit it does not know how to continue?

If you cannot answer those questions, the agent is not ready to work on its own. It may not be ready to work at all.

How to break the demo before it breaks your business

Next time someone shows you a perfect agent, do not try to repeat the prepared demonstration. They have already done that. Your job is to break it.

Give the agent incomplete information. Add a document that contradicts another one. Change the input format. Ask it to act outside its permissions. Interrupt its access to a tool. Return its result with a note that the work is not finished. Watch whether it corrects itself, asks, stops or starts improvising confidently.

Above all, ask about what you could not see in the demonstration:

Where are the logs, the traceable records of inputs, actions and results?

How do we detect an error?

What happens when the model or tool is unavailable?

How is the previous state restored?

Which actions require a person?

What are the limits on cost and the number of attempts?

Exactly what does done mean?

If the supplier answers that the agent is autonomous and needs none of that, you are not buying intelligence. You are buying faith.

Faith can be a fine thing. I just would not give it access to the company bank account.

First, look at your own mess

Before you start deciding which model to use or how many agents to have, take the process you want to automate and go through it without AI.

Who owns it? Where does it begin? What should its result be? What information does it need? Which exceptions are handled manually? What happens when someone makes a mistake? Who notices?

If your answer to half these questions is "it depends", "my colleague knows" or "it gets done somehow", you have just found the first job for your AI project.

But it is not building an agent.

It is cleaning up.

An agent will not bring order as a gift. It will inherit the rules, data and gaps in the process you give it. Including the exceptions, shortcuts, blind spots and decisions for which nobody wants to take responsibility.

So before you deploy AI, clean up the mess.

Otherwise, you will still have the same mess. It will just be faster, more expensive and insist that it is done.

Now use the workbook: complete the Process card and, for one real result, write the first version of the Definition of done. If you cannot specify the evidence, do not start choosing a tool yet.

Who this book is for

For owners and operations teams in small businesses preparing a specific task for automation. You do not need to be a programmer; you need to understand your process.

  • One process: inputs, data and responsibility
  • Permissions and checking AI output
  • A worked construction-quote example
  • A workbook with 14 worksheets

A straightforward note

This is not a ready-made agent or an installation service. The construction quote is a fictional worked example, not a client case study. The fixed A4 PDF may require zooming on a phone.

For your own personal and internal business use. Resale and public redistribution of the files are not permitted. You may edit the workbook.