Chapter Five · Output That Goes Somewhere
Getting Usable Output
An answer is text you read; an artifact is a thing that slots into the place it was always headed. Four pages turn the first into the second: ask for the artifact, ask for a shape a machine can unpack, save the prompt that produces it every time, and check the result before anyone acts on it. By the end Tessa has one file holding 2,300 classified reviews — and a way of saying what she checked.
Chapter 4 got Waymark's material in front of the model, and what came back was prose. Good prose, correct prose — and prose that Tessa then spent twenty minutes a time retyping into a tracker, a template, an email. That retyping is the subject of this chapter, and it turns out to be avoidable by saying one more sentence in the prompt.
The four pages build one workflow, in order. Ask for the artifact rather than the answer, by naming where the output is going. Ask for it in a shape a program can unpack without guessing — which is JSON, and it takes ten minutes to learn to read. Save the prompt that produces that shape, so consistency stops depending on what anyone remembers on a Thursday. Then check what comes out, because every field in every cell is still generated text, and the hotel that does not exist is about to reappear inside a column. Underneath all four is a quiet second story: work with a fixed prompt, a slotted input and a collected output has the exact shape of a program — which is what Chapter 8 will make of it.