Implementation Guide | Banking

Preventing a Bank Chatbot From Giving Investment Advice Through Runtime Policy Enforcement and Layered Guardrails

A system prompt cannot reliably stop a bank chatbot from giving investment advice. Define the boundary between information and advice in a versioned policy, then enforce it outside the model with input checks, output checks, restricted tool and data access, escalation to human advisors, and decision logging. Test each layer and assume any single layer will fail sometimes.

Start with a policy boundary, not a prompt

The first control is a policy, not a prompt. The policy is a versioned definition of permitted information and prohibited recommendations. It draws the boundary between information and advice, so that every other control has something specific to enforce and to be tested against.

A system prompt can state the scope and refusal behavior, and it is useful for tone and default behavior. It can be overridden by prompt injection, ambiguous phrasing, or model changes, so it should be treated as guidance, not control.

Enforce at runtime, outside the model

Advice prevention is runtime enforcement, not prompt writing. Input checks classify intent before the model sees the request, and output checks evaluate the response before the customer sees it. Both sit outside the model, so they continue to apply when the model, prompt, or phrasing changes.

Control points between the customer and the model

Five control points and what each one does
Control pointDescription
Policy boundaryA versioned definition of permitted information and prohibited recommendations.
Input enforcementIntent classification before the model sees the request.
Output enforcementPolicy checks on the response before the customer sees it.
Access controlTool and data permissions enforced outside the model.
EvidenceLogged decisions tied to the policy version applied.

A layered control architecture and the limits of each layer

No layer is sufficient alone. Each one catches a different class of failure and has a known weakness that the next layer should cover.

Six layers, what each does, and where each falls short
LayerWhat it doesKnown weakness
1. System promptStates the scope and refusal behavior. Useful for tone and default behavior.Can be overridden by prompt injection, ambiguous phrasing, or model changes. Treat it as guidance, not control.
2. Input intent classificationFlags requests seeking recommendations before generation, which reduces exposure.Will misclassify borderline phrasing in both directions.
3. Output policy checkEvaluates the drafted response against the policy before delivery. Catches advice the model produced despite earlier layers.Adds latency and can block acceptable answers.
4. Tool and data permissionsLimits what the model can retrieve or call, which reduces the material available for advice.Does not stop the model from generating advice from general knowledge.
5. Human escalationRoutes advice-seeking conversations to a licensed human or a defined handoff.Depends on staffing, routing accuracy, and clear customer messaging.
6. Decision loggingRecords what each layer decided and why.Does not prevent anything, but without it the other layers cannot be verified or audited.

Restrict tools and data, then define escalation

Restricted tool and data access limits what the model can retrieve or call. Because these permissions are enforced outside the model, they reduce the material available for advice even if earlier layers miss a request.

Escalation routes advice-seeking conversations to a licensed human advisor or a defined handoff. Neither control is sufficient alone: permissions do not stop the model from generating advice from general knowledge, and escalation depends on staffing, routing accuracy, and clear customer messaging.

Log decisions so enforcement can be shown, not asserted

Decision logging records what each layer decided and why, tied to the policy version applied. Logging does not prevent anything by itself, but without it the other layers cannot be verified or audited. It is the evidence that the no-advice policy is enforced in practice.

Test the controls before and after release

Testing confirms that each layer behaves as intended, alone and in combination.

  • Build a labeled test set covering informational, advice-seeking, and ambiguous prompts, approved by compliance.
  • Measure false positive and false negative rates for the input and output layers separately and combined.
  • Red-team with prompt injection, role-play framing, multi-turn drift, and requests embedded in pasted documents.
  • Test each layer with the others disabled to see what it catches alone.
  • Rerun the full suite whenever the model, prompt, policy, or tool set changes.
  • Sample live production conversations for human review and feed misses back into the test set.

Review your chatbot's control layers

Talk to an expert about mapping runtime policy enforcement, agent permissions, and audit logging to your no-advice policy.

Talk to an Expert