A workflow is a job a person starts. A system is the same job set up to start by itself. Something happens, such as a file landing in a folder, a form being sent or the clock reaching six in the morning, and the work begins with nobody pressing a button. When something goes wrong, the system tells a person.
The creative part hardly changes when a workflow becomes a system. Everything around it changes, and that decides whether one is worth building. We will follow a homeware shop that adds about thirty products a month. For each new product photo on white, it wants four lifestyle images for the product page and two vertical ones for stories.
List the parts around the creative work
Today a designer makes them by hand every Friday. As a system, uploading the product photo is the trigger, the event that starts a run.
| Part | What it does for the homeware shop |
|---|---|
| Trigger | Starts a run when a product photo is uploaded |
| Input check | Turns away any file that breaks the agreed format |
| Model call | Sends the photo and the approved prompt template to an image model |
| Quality checks | Throws out images that fail automatic tests |
| Storage | Saves the survivors with a record of the model, prompt and references |
| Alert | Messages a person to approve the images, or to say something failed |
A spending limit sits over all of it. Friday becomes ten minutes of choosing.
Write the contract first
The contract is the written agreement about what goes in, what comes out and what happens when the input is wrong. For the shop it might say "A JPEG at least 2,000 pixels on its long side, on a white background, with a product name attached. Six images back at stated sizes." Anything that breaks the contract is turned away with a clear reason instead of being half-processed.
Systems without a contract break whenever someone sends a file in a new format, such as a HEIC photo straight off an iPhone or a PDF where a JPEG was expected. A system that fails silently also loses a batch of images, and nobody notices until the client asks.
Send the work through an API and a queue
An API is the door a program uses to ask a model for work, in place of a person typing into a chat app. Each request names an exact model version, and that model's documentation says what it accepts and how it bills.
An image takes seconds and a video can take minutes, and many web servers give up on a request long before that. So the system accepts the job, puts it in a queue, a waiting line for jobs, and answers at once. A separate worker picks the job up and stores the result when it is done.
Retry a failed step only when the error is temporary, such as a timeout or a rate limit, and wait longer before each new try. Retry only steps that are idempotent, safe to run twice without a second copy or a second charge.
Do the sums before you build
A system means taking on software upkeep. Somebody has to watch it, patch it, pay for it and fix it when a provider changes its API or retires the model you built around. The quiet failures are the worst, such as a model update that makes the output slightly worse overnight, or a loop with no spending ceiling.
A job that runs twenty times a month at forty-five minutes each is fifteen hours of work. If the system needs four hours a month of watching, fixing and checking bills, it saves eleven, which makes it worth building. If the job runs twice a month, a well-documented workflow that a person starts is the better tool, and it costs nothing to keep.
Start with one trigger, one model and one check
The most common failure is a studio designing an ambitious platform and shipping none of it, when a short script doing one job would have paid for itself within a month. Build the smallest system that removes the most work, then stop.
For the homeware shop, that might be the upload trigger, one image model and one check on image size. Add the next part, such as an alert, only when its absence has actually cost you something.
The next lesson covers APIs, and how to read a model's documentation.