HOW TO PROMPT AI: PROMPTING AS A WORKFLOW, NOT A PARTY TRICK
From the publisher’s feed, collected in the ZeroLabs newsroom.
prompting ChatGPTMany people still use generative AI like a faster search engine: type a question, get a plausible answer, move on. That’s fine for trivia. It falls apart for serious writing, research, strategy, or product work.The leverage isn’t a “magic phrase” that gets you one good paragraph; it’s the workflow you design around the model.This is a deep dive into that shift: from chatting with an AI to orchestrating it as your own private operating system.FROM CHATBOT TO OPERATING SYSTEMThe common mental model of an LLM is that of a “smart chatbot.” Helpful, but fundamentally reactive. A more useful model is a stateless reasoning engine. You’re not “having a conversation”, you’re configuring a system for one run at a time.Every time you prompt an LLM, you’re effectively configuring:A role (what expertise it should simulate)Context (what information it should use)Constraints (what it must or must not do)A goal (what a successful output looks like)A good prompt isn’t a clever sentence. It’s a small spec.Key mindset shift: Stop asking the AI to “do the task once” and start asking it to run a process you can reuse.An llm engineTHE FOUR DIMENSIONS OF A PROMPTThink of every serious prompt as specifying four dimensions:Role — Who is speaking?- "Act as a senior editor at a tech publication…"- "You are a quantitative researcher specialising in A/B testing…"2. Context — What should it know right now?The brief, transcript, dataset description, user persona, constraints from legal/compliance, etc.3. Constraints — What are the guardrails?Length, tone, format, vocabulary to avoid, required sections, required structure (for example: a JSON schema)4. Goal — What is the definition of “done”?A 300-word LinkedIn postA prioritised task listA 1-page executive brief with pros/cons and recommendationsWhen you encode all four explicitly, your prompts become interfaces instead of wishes.Prompt anatomy example:- Role: "You are a senior B2B SaaS copywriter and editor."- Context: "You'll receive a rough transcript from a founder talking about AI workflows."- Constraints: "Max 300 words, conversational but sharp; avoid the words 'revolutionize', 'delve', and 'tapestry'. Output as a Markdown table."- Goal: "Extract 5 key themes and then write a LinkedIn post that we can publish as-is."THE PART MOST PROMPTING ARTICLES SKIP: PROMPT CONTRACTS (INPUTS → GUARANTEES → OUTPUTS)Another way to say it: a good prompt is a contract, so you can rerun it tomorrow and get similar-quality results.If you want prompting to feel “technical,” don’t make it more complicated. Make it more testable.Here’s the contract-style way to think about prompts:Inputs: What you provide (source text, audience, goals, constraints, definitions)Guarantees: What the model must do (steps, checks, formatting rules)Outputs: What you should receive (artefact types: brief, outline, draft, JSON, checklist)What makes a workflow replicable isn’t the wording — it’s the spec plus the feedback loop.THE THREE LEVELS OF PROMPTING MASTERY3 steps to mastering promptingMost people get stuck at Level 1. The real leverage shows up at Level 3.Level 1: Basic (Ask and Receive)- Style: "Write a blog post about coffee."- What happens: The model guesses your intent and fills in the blanks using its defaults.- Result: Generic, default-sounding text. Useful as a sketch, but high editing overhead.Level 2: Structured (Guidance and Logic)- Style: You start specifying role, tone, structure, and reasoning steps.- Example: "You are a marketing strategist. First list 5 angles for a LinkedIn post about AI workflows.Then pick the best one and write a 250-word post in a friendly, practical tone."- Result: Higher-quality drafts that are closer to your brand and easier to ship.In practice, this is where you start using decomposition (break the task into steps), a few examples, and strict output formats.Level 3: Agentic (Workflow Orchestration)Here, a “prompt” is really a mini-pipeline:Multi-step reasoning or multi-call flowsSelf-critique and revision loopsSpecialised roles hand work off to each otherYou’re no longer just consuming answers. You’re designing reusable workflows like:EXAMPLE 1: THE RECURSIVE RESEARCHERInstead of: “Summarise this article.”Design a process:1) Identify the 3 most controversial or non-obvious claims in the text.2) For each claim, find at least one credible counter-argument or limitation. Name the source or type of evidence you would look for.3) Synthesize both sides into a 300-word executive brief aimed at a VP-level reader. End with 3 follow-up questions for further research.Prompt form:- Role: You are a critical research assistant trained to surface both claims and counter-claims.- Context: I'll paste an article or long-form text after these instructions.- Constraints: Be specific and concise. Emphasize trade-offs and uncertainty.- Goal: Run the 3-step workflow in order and label each step clearly: (1) Claims (2) Counter-arguments (3) Executive brief + follow-up questions.Why this works:It forces the separation of phases: detection, critique, synthesis.It reduces overly agreeable summaries.It becomes a repeatable pattern you can run on dozens of texts.EXAMPLE 2: THE CONTENT FACTORYInstead of: “Turn this transcript into a LinkedIn post.”Design a mini content pipeline.Prompt:Act as a senior editor. I will provide a rough transcript. Your job is to:1) Extract 5 key themes with 1–2 sentences each.2) Draft a 300-word LinkedIn post that a busy founder would actually read.3) Run a self-critique: list 3 ways this post could fail (be boring, unclear, off-brand).4) Rewrite the post once, addressing those failures.Constraints:- Do not use the words 'revolutionize', 'delve', or 'tapestry'.- Keep the tone practical, specific, and slightly playful.- Output everything in a Markdown section structure: Themes, First Draft, Critique, Final Draft.Why this works:It embeds a feedback loop (generation → critique → revision).The headings make it easy to scan and reuse.You can plug any transcript into the same workflow.ADDING TECHNICAL DEPTH: STRUCTURE, STATE, AND EVALUATIONOnce you think of prompts as workflows, a few more technical ideas become useful.1) Structure the output for machines, not just humans.If you or your team will post-process outputs (in code, spreadsheets, or other tools), ask for structured formats:JSON objects with fixed keysTablesClearly labeled sectionsExample request:"Return your final answer as a JSON object with keys themes, draft,and risks. Each key should map to an array ofstrings. Do not include any explanation outside the JSON."2) Manage state explicitly.LLM calls are effectively stateless at the model level. Your chat app may send prior messages as context, but the model doesn’t “remember” you unless that context is provided again.Don’t assume it remembers constraints unless they’re still in the prompt.When chaining multiple calls, carry forward key state yourself (in notes, a system prompt, or a tool).3) Control variability (so the workflow feels reliable).If you want “factory mode,” tighten the system:Lower creativity settings when availableIncrease structure (schemas, tables, required headings)Add a final constraints checklist that forces self-correction4) Evaluate your prompt systems like products.Treat your best prompts like tiny internal products:Define what “good” means (clarity, factual accuracy, on-brand tone, low editing time)Keep a small test set (easy case, edge case, weird case)When you tweak the SOP, re-run the tests and compare outputsOver time, you build a library of tested workflows instead of a folder of one-off chats.COMMON FAILURE MODES (AND HOW TO FIX THEM)Even with good workflows, AI will still fail in predictable ways. Design your prompts to counter them.1) Hallucinations (confident nonsense)Fix: Narrow the task; provide relevant context; ask it to say “I don’t know” when information is missing.2) Overly generic outputsFix: Add vivid constraints (audience, length, examples, metaphors); provide 1–2 examples of your own writing.3) Ignoring constraintsFix: Move key constraints to the top; repeat them; ask the model to restate constraints before starting.4) Too much fluff, not enough structureFix: Specify headings, bullet points, or schemas. Tell it what sections you expect by name.Reliability trick: add an explicit checklist step at the end of your prompt.Checklist wording you can paste:Before you finalize your answer, check that you:- Respected the word limit- Used the specified tone- Avoided the forbidden words- Used the requested structureIf you violated anything, silently correct your answer before returning it.One more debugging move that reads “technical” and helps in practice:If the request is underspecified, ask up to 3 clarifying questions before you start. If it’s well-specified, proceed without question.A REUSABLE SOP TEMPLATE YOU CAN ADAPT TODAY, below;Here's a skeleton you can adapt for almost any knowledge-work task:Role:You are [persona with expertise].Context:[What you'll receive and any relevant background, audience, or constraints from the business].Goal:Help me [clear, specific outcome] that I can use directly in [channel or artifact].Workflow:1) Propose an outline or structured plan.2) Create the first version of the output.3) Critique it from the perspective of [skeptical VP / target reader] and list 3 issues.4) Produce a final version that addresses those issues.Constraints:- Length: [X words]- Tone: [tone]- Style: [for example: no jargon; include at least one concrete example]- Formatting: [headings, bullets, tables, JSON, etc.]PROMPT-OPS: TREAT YOUR BEST PROMPTS LIKE CODEThis is the easiest way to introduce something that most Medium posts don’t: prompt operations.Version your prompts: Save v1, v2, v3 so improvements aren’t lost in chat history.Keep a test set: 3–5 representative inputs (easy, edge, weird).Run regressions: When you change the prompt, re-run the test set and compare results.That’s how prompting stops being ad hoc and becomes engineering.To make PromptOps practical without tooling:Store prompts as files in a folder (for example: prompts/).Name them like artefacts (for example: content_factory_v3, recursive_researcher_v2).Add a short changelog block at the top: - v2: added critique loop, - v1: initialBRINGING IT HOME: FROM CONSUMER TO ORCHESTRATORThe near-future divide won’t be between people who “use AI” and those who don’t. It will be between people who consume AI output and people who orchestrate AI systems.Prompting is a form of architectural thinking:Defining roles and responsibilities (for your agents and prompts)Designing workflows instead of isolated tasksBuilding tiny internal tools that run on top of language modelsYour next step-DIY:1) Pick one task you do every week (content, research, planning, analysis).2) Turn it into a 3–5 step SOP prompt using the Role–Context–Constraints–Goal framework.3) Run that SOP on 3 different inputs.4) Tweak the workflow until you’d be comfortable handing it to a junior teammate.When you stop asking for one-off answers and start designing prompted workflows, you get outputs you can actually ship.PS: If this article was helpful, leave a comment or hold down the clap button so others can find it too.HOW TO PROMPT AI: PROMPTING AS A WORKFLOW, NOT A PARTY TRICK was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.