Define a task before choosing a model.
Turn a vague AI idea into a user task, success criteria, boundaries, and a fallback.
Start with the meaning.
A model demonstration can look impressive without helping a user. “Summarise documents” does not tell us which documents, who reads the summary, which facts must be preserved, or what happens if a fact is missing. An engineering use case is a written contract between the user need and the system behavior. It is specific enough that different people can judge whether the system met it.
Start with the workflow the user already has. Where does information arrive? Which decision takes time? Which part is repetitive, and which part requires human authority? A system that drafts a response for a reviewer has a different risk profile from one that sends responses automatically. The same model capability can support both, but the application boundaries differ.
How the idea works.
Name the input distribution: the kinds of requests the system is expected to handle. Then name excluded cases. A policy assistant may answer questions about approved internal documents but decline legal advice or questions about unpublished drafts. Write a useful fallback for excluded or unsupported requests. An honest “I cannot verify that from the available documents” is often better than a confident answer.
Choose success criteria that reflect the task. For a summariser, coverage of important facts and absence of invented claims may matter more than style. For a routing assistant, the cost of sending a request to the wrong team matters. For an agent that changes records, permission checks and reversibility matter. Add operational criteria such as response time, cost, accessibility, and privacy.
Plan a baseline. A search box, a template, a simple rule, or a human workflow may already solve much of the problem. Comparing an AI system with that baseline prevents an attractive model output from being mistaken for an improvement. The goal is a better task outcome, not simply more model calls.
A task contract can be written as a few example conversations before any code exists. One example shows a supported question with the expected evidence. Another shows an ambiguous question that should prompt clarification. A third shows a request outside the permitted scope that should be declined. These examples expose differences in team expectations early. If two reviewers disagree about the right behavior, a model cannot solve that disagreement by producing smoother text.
The baseline also deserves careful definition. If agents currently use a search page, compare the AI assistant with that search page on the same questions, including time to a usable answer. If the assistant saves a minute but creates more unsupported claims, the tradeoff may be unacceptable. If it helps new staff find the right document but still requires review, that may be a valuable and honest product. The measure is the workflow outcome.
Follow the code.
task = {
"user": "support agent",
"input": "one customer question",
"allowed_evidence": "approved help articles",
"output": "draft answer with article IDs",
"fallback": "ask for human review when evidence is absent",
"success": ["correct answer", "valid citations", "reviewable draft"],
}
print(task["fallback"])This dictionary is a compact task contract. Its fields are plain language, not model settings. It identifies the person responsible for the final answer and restricts evidence to approved articles. The fallback says what should happen when no support exists. In a real project, each criterion would be expanded into examples and an evaluation rule.
Writing this contract before implementing prompts makes model selection easier. If every candidate model fails a critical requirement, changing the prompt may not be the solution; the task, data, or workflow may need to change.
What the result does not say.
A user may value an editable draft even when a model cannot provide a final answer reliably. Design for the actual level of automation the evidence supports.
Requirements change when the product meets real users. Keep the task contract versioned so a change in expected behavior is visible rather than silently redefining success.
One clear idea.
A clear task contract makes model behavior testable and failure behavior intentional.
The AI cookbook
Complete, explained local workflows sit alongside this reading course.