Prompt engineering
Prompt engineering is the practice of writing and testing the instructions, examples and context you give a language model so it returns accurate, consistent output.
Also called: prompt design, prompting, prompt writing
Prompt engineering is the practice of writing, structuring and testing the instructions you give a large language model so it does a job the same way every time. For GTM teams it decides whether an AI step in your outbound, research or routing workflow is dependable enough to run on 10,000 records or only good for a demo.
How it works
A production prompt has five parts, and each one removes a way the model can go wrong:
- Role and goal. What the model is doing and who the output is for. "You classify inbound companies for a B2B payroll product" beats "You are a helpful assistant."
- Inputs. The data for this run, clearly fenced off with tags or headings so the model can tell instructions from data.
- Rules. The decision criteria, written as positive instructions: what counts as a fit, what to do when a field is blank, when to answer "unknown".
- Examples. Three to eight worked cases that show the edge cases, not just the easy ones.
- Output format. An exact schema, ideally enforced with structured output, so the next step in the workflow can parse it.
Static parts of this usually live in a system prompt. The per-record data gets injected at run time. The loop is: write, run against a labeled test set, read the failures, adjust one thing, run again.
Example
Say a team uses a model to tag inbound leads as "ICP", "maybe" or "not ICP" from a scraped homepage and three firmographic fields. Version one is a two-line instruction. They label 100 past leads by hand and run the prompt: it agrees with the humans on 71 of them (assumption for this example).
They add a written definition of their ideal customer, two examples of tricky companies (agencies that look like SaaS, holding companies), and a rule to answer "maybe" when the homepage is under 50 words. Agreement climbs to 89 of 100. At 2,000 inbound leads a month, that jump from 71% to 89% means roughly 360 fewer misrouted leads every month, which is real rep time saved, from about an hour of prompt work.
Prompt engineering vs fine-tuning
Prompting changes what you ask. Fine-tuning changes the model's weights with your own training data. For almost every GTM use case, start with prompting plus good context: it is cheaper, faster to change and easy to roll back. Fine-tuning earns its place when you have thousands of labeled examples, a narrow repeated task and a cost or latency reason to use a smaller model.
Our position: if you cannot show an eval score before and after a prompt change, you are guessing. Keep a test set of 50 to 200 labeled records for every prompt that touches customers or your CRM.
Common mistakes
- Writing rules as a list of "don'ts" instead of telling the model what good output looks like.
- Testing on three hand-picked records and shipping to the whole database.
- Mixing instructions and data with no delimiters, so a scraped webpage can override your rules.
- Asking for free text when the next step needs a field, then parsing it with fragile regex.
- Changing five things at once, so nobody knows which edit fixed or broke the output.
- Never versioning prompts, so a "small tweak" silently changes routing for a month.
FAQ
Is prompt engineering still a real skill now that models are smarter?
Yes, but the skill has shifted. Clever phrasing matters less with newer models, while clear task definitions, good examples, the right context and a test set matter more. The teams getting reliable results treat prompts like code: versioned, tested and reviewed.
What is the difference between prompt engineering and context engineering?
Prompt engineering focuses on the instructions themselves. Context engineering covers everything the model sees at run time, including retrieved documents, CRM fields, tool results and memory. In production GTM workflows, most quality problems come from missing or messy context rather than weak wording.
How long should a prompt be?
As long as it needs to be to remove ambiguity, and no longer. A classification prompt might be 150 words with five examples, while a research agent's instructions can run several pages. Length is fine when every section changes the output; cut anything a test shows makes no difference.
Related
Used in these articles
- ArticleChatGPT Prompts for Marketing: 40 Templates That Don't Produce Slop
- ArticleClaude Skills for Marketers: How to Build a Skill Library Your Team Will Use
- ArticleLLM Prompt Patterns for Sales and Marketing Ops
- ArticleRAG for Sales Teams: Give AI Your Docs Without Making Things Up
- ArticleCopywriting Formulas: AIDA, PAS, BAB and When Each One Works
- ArticleBrand Voice Guide: Build a One-Page Voice Your Team and AI Can Follow