Three Basic Steps to Build an AI Workflow

    This article explains three basic steps for building a reusable AI workflow: fixing the background in a versioned working brief, structuring each task with a task card that defines completion criteria, and defining where outputs are delivered and how they are reused. It includes example brief, task card, and workflow configuration formats, along with common pitfalls and a practical rollout order.

    When a Screenshot of Past Work Failed to Carry the Context

    I once asked an AI to organize client materials. It took several rounds of revisions before the key points were finally in order. The next time a similar task came up, I sent a screenshot of the version I had been happy with and asked for another one “like this.” The model did recognize the text in the screenshot, but the style was off and the emphasis had shifted.

    The reason is not mysterious: a screenshot carries only the result, not the decision process—why each change was made, what the client cared about, and which phrasings were off-limits. None of that entered the context the model could reference for this particular answer.

    So I had to explain the background all over again, which took ten minutes. Many people blame this kind of problem on “tools that aren’t powerful enough” or “a prompt library that isn’t big enough,” so they keep switching models, stacking plugins, and bookmarking prompts. But what usually blocks the workflow is three things that were never clearly defined:

    • Who you are: your role, the boundaries of your responsibilities, and who you serve;
    • What done looks like: completion criteria, quality standards, and how work is accepted;
    • Where the output goes: output format, storage location, and downstream consumers.

    As long as these three stay undefined, every task starts from zero and the output is hard to reuse. No matter how many tools you install, the model only catches this one explanation for this one time, and forgets again next time.

    So the basic steps for building an AI workflow come down to three: fix the background first, then structure the task, and finally define delivery and reuse. None of the steps is complicated, but skip one and you are back where you started.

    Step 1: Write the Background as a Reusable Working Brief

    A working brief exists to stabilize the context. It is not an expression of mood or a general introduction to an industry; it is explicit rules and boundaries. A designer who creates plans for small restaurant locations could write something like this:

    1. # Working Brief
    2. - Role: Independent designer providing brand and marketing plans for small restaurant locations
    3. - Clients served: Single-location operators or groups of up to 3 locations, limited budget, short decision chain
    4. - Delivery preferences: Conclusion first, plan no longer than 800 words, must include an actionable checklist
    5. - Hard constraints: No exaggerated marketing language; no promises of specific revenue growth; no fabricated cases
    6. - Common taboos: Avoid empty words like "empower" and "closed loop"; no headings deeper than level three

    The point is that at the start of every new task, you paste the brief first, so the model immediately knows who it is talking to and which yardstick to measure against. The brief should be version-controlled, stored in a repository alongside the code, with changes tracked, to avoid the drift that comes from verbal agreements.

    Step 2: Attach a Structured Task Card

    If the brief answers “who you are,” the task card answers “what this task is and what counts as done.” It is best to fix the fields and forbid the model from guessing:

    1. task_card:
    2. goal: Produce a quarterly marketing plan for a restaurant location
    3. inputs: [location positioning, average spend range, nearby competitors, historical campaign data]
    4. constraints:
    5. max_words: 800
    6. tone: plain and actionable
    7. forbidden: [exaggerated promises, fabricated data]
    8. acceptance:
    9. - Contains 3 actionable items
    10. - Each item notes the responsible role and an acceptance metric
    11. output_schema: json

    The value of a structured task card is that it is verifiable. Once the acceptance conditions are written as items that can be judged, the workflow can add automated checks: missing fields, word count over the limit, or forbidden words can all be caught before the output reaches human review.

    Step 3: Define the Delivery Location and Reuse Mechanism

    Delivery is not “printing out the text”; it means making the destination and the downstream explicit. An illustrative workflow configuration looks like this (a generic expression only, not tied to any specific product):

    1. {
    2. "workflow": "content_pipeline",
    3. "steps": [
    4. {"name": "load_brief", "type": "read", "source": "brief_store"},
    5. {"name": "generate", "type": "llm", "model_class": "general"},
    6. {"name": "validate", "type": "rule", "checks": ["schema", "length", "forbidden_words"]},
    7. {"name": "deliver", "type": "write", "target": "object_storage"},
    8. {"name": "notify", "type": "message", "target": "review_queue"}
    9. ],
    10. "retry": {"max": 2, "on": ["validate_failed"]},
    11. "log": {"level": "info", "retain_days": 30}
    12. }

    The key to reuse is turning a “one-off conversation” into an asset: the brief goes into a store, task cards become templates, validation rules accumulate, and failed samples flow back. Run logs and monitoring alerts are used to observe success rate and latency; when an abnormal shift appears, check the context and the task card first rather than switching models first.

    Common Pitfalls and Practical Advice

    • Pitfall 1: Trying to solve the problem with longer prompts. Context is not better when it is longer; what matters is that it is stable, structured, and versionable.
    • Pitfall 2: No acceptance criteria. An undecidable “make it a bit better” cannot be automated and cannot be regression tested.
    • Pitfall 3: Ignoring the destination. If the output does not go into storage and a queue, the workflow cannot be consumed downstream, and reuse is out of the question.

    Suggested rollout order: start by running one real task with the simplest template, then gradually add validation, retries, and logging; write the reason for each round of rework back into the brief and the task card. With these three steps in place, an AI workflow turns from “teaching it all over again every time” into “automated capacity that gets easier the more you use it.”