productinterview.tools
MenuClose

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
  1. The 30-second version
  2. What it's really testing
  3. How to structure your answer
  4. The interview, played out
  5. The strong answer, distilled
  6. How it's scored
  7. How the answer changes by role
  8. Common mistakes
  9. More follow-ups to practise
  10. Go deeper
  11. Sources

The 30-second version

  1. Start from scope: what it may answer, what it must hand off, what it must never do.
  2. Structure: role and goal → rules (including what to do when unsure) → context → examples → output format.
  3. Give it a way out: "If you're not sure, say so and offer a human."
  4. Don't rely on the prompt for security; enforce rules like identity checks in code.
  5. Write test conversations before and alongside the prompt.

Watch it played outSee the strong answerHow it's scored

What it's really testing

  • Prompt structure
  • Scope and safety thinking
  • Testing alongside writing

How to structure your answer

  1. Clarify scope.
  2. Draft the structure.
  3. Add examples and the "unsure" path.
  4. Test with real conversations.

The interview, played out

A written example interview, not a real candidate or company transcript.Strong moveMissed signalRevealed when asked
  1. Interviewer
    Walk me through how you'd write the system prompt for a support assistant at an online bank.
  2. Candidate
    Before writing, what can it do? Answer questions only, or take actions on accounts?
  3. Revealed when asked
    Questions only, about products and fees. Account-specific questions go to a human.
  4. Candidate
    Then 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.
  5. Strong move
    Includes an explicit path for "unsure".
  6. Candidate
    Then 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.
  7. Interviewer
    Is the prompt enough to stop it discussing accounts?
  8. Candidate
    No. It shouldn't have access to account data at all; that's enforced in the system, not the prompt.
  9. Missed signal
    Should build test conversations from the start, not after.
  10. Candidate
    And 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

DimensionWeakPassableStrongThe mock candidate
ClarifyingStarts 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.
ApproachUnworkable or over-built.Workable.The simplest approach that works, stated before building.Strong. Clear structure: role, rules, context, examples, format.
TestingTries 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-offsNone 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

Sources

Representative question: written to match build rounds for AI product roles, not a specific reported interview.