Write the System Prompt for a Customer Support Assistant
The interviewer asksWalk me through how you'd write the system prompt for a support assistant at an online bank.
Forward Deployed EngineerAI Product EngineerApplied AI PM (secondary)FoundationsBuild roundRepresentative10 min
On this page
The 30-second version
- Start from scope: what it may answer, what it must hand off, what it must never do.
- Structure: role and goal → rules (including what to do when unsure) → context → examples → output format.
- Give it a way out: "If you're not sure, say so and offer a human."
- Don't rely on the prompt for security; enforce rules like identity checks in code.
- Write test conversations before and alongside the prompt.
What it's really testing
- Prompt structure
- Scope and safety thinking
- Testing alongside writing
How to structure your answer
- Clarify scope.
- Draft the structure.
- Add examples and the "unsure" path.
- Test with real conversations.
The interview, played out
- InterviewerWalk me through how you'd write the system prompt for a support assistant at an online bank.
- CandidateBefore writing, what can it do? Answer questions only, or take actions on accounts?
- Revealed when askedQuestions only, about products and fees. Account-specific questions go to a human.
- CandidateThen the prompt sets that scope. Role and goal: a helpful assistant for questions about our products and fees. Rules: answer only from the provided product information; never discuss a specific customer's account; never give investment advice; if unsure or out of scope, say so and offer a human.
- Strong moveIncludes an explicit path for "unsure".
- CandidateThen context: the relevant product and fee documents for each question. A few examples of good answers, including a polite hand-off. And the format: short answers, with the source page linked.
- InterviewerIs the prompt enough to stop it discussing accounts?
- CandidateNo. It shouldn't have access to account data at all; that's enforced in the system, not the prompt.
- Missed signalShould build test conversations from the start, not after.
- CandidateAnd I'd test it on real past questions, including tricky ones, before calling it done.
The strong answer, distilled
- Scope first: questions on products and fees; account questions go to a human.
- Structure: role and goal; rules with a "not sure → say so, offer a human" path; context per question; examples including a hand-off; short format with sources.
- Security outside the prompt: no account data access at all.
- Test alongside: real past questions, edge cases and attempts to push it out of scope.
This is one strong answer, not the only one.
How it's scored
| Dimension | Weak (2) | Passable (3) | Strong (5) |
|---|---|---|---|
| Scope | None | Some limits | Clear do, hand off, never |
| Structure | One paragraph | Rules and format | Role, rules, context, examples, format |
| Safety | Prompt-only rules | Mentions limits | Hard limits enforced in the system |
| Testing | None | After writing | Test set built alongside |
Round scorecard: FDE: technical and build round, filled in for the mock candidate
| Dimension | Weak | Passable | Strong | The mock candidate |
|---|---|---|---|---|
| Clarifying | Starts coding immediately. | Asks a few questions. | Pins down the goal, inputs and what done means first. | Strong. Asked what the assistant can and can't do first. |
| Approach | Unworkable or over-built. | Workable. | The simplest approach that works, stated before building. | Strong. Clear structure: role, rules, context, examples, format. |
| Testing | Tries one happy-path input. | Tries a few inputs. | Tests varied and bad inputs, and checks outputs systematically. | Passable. Planned tests but only after the prompt was "done". |
| Trade-offs | None mentioned. | Some. | Says what was cut, why, and what comes next. | Strong. Explained why rules live in code, not only the prompt. |
How the answer changes by role
| Role | What to emphasise |
|---|---|
| Forward Deployed EngineerForward Deployed Engineer. An engineer embedded with customers who scopes, builds and ships AI solutions into production. Read the full explanation | Working out scope with the customer |
| AI Product Engineer | Prompt versioning and the test set |
| Applied AI PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation | The scope and hand-off experience |
Common mistakes
- Writing the prompt before agreeing scope
- Relying on the prompt for security
- No "unsure" path
More follow-ups to practise
- "Customers try to get investment advice anyway." Hint: test cases and a polite, consistent refusal.
- "How long should a system prompt be?" Hint: as long as it needs; test whether each part earns its place.
Go deeper
- Module: Prompting and context engineering
- Framework: Build Round Framework
- Framework: Opening Any Interview Answer
- Lesson: The parts of a good prompt
- Lesson: Improving prompts with evals
- Also tests: Safety, risk and safeguards
- Also tests: Grading: code, judge, human
Sources
Representative question: written to match build rounds for AI product roles, not a specific reported interview.