Skip to content
/ POST · GENERAL

OSFI E-23 and AI Chatbots: What to Test Before May 2027

OSFI Guideline E-23 takes effect May 1, 2027 and covers AI models. What a bank or insurer's LLM chatbot needs as test evidence at each lifecycle stage.

Author · HarryNovember 7, 20268 min read

OSFI Guideline E-23 takes effect on May 1, 2027, about 25 weeks away, for every federally regulated bank, trust company and insurer in Canada. It never names chatbots, but its model definition includes AI/ML methods, so a customer-facing LLM chatbot is likely in scope: inventory entry, risk rating, independent review and monitoring, each backed by test evidence.

SwiftBiz tests customer-facing chatbots the way enterprise QA teams test releases. Our founder, Harry, spent 10+ years as a senior SDET before starting SwiftBiz. This post reads E-23 as a tester would: what the guideline says, which stage of a chatbot's life needs which evidence, and a checklist for the months before the deadline.

What is OSFI Guideline E-23?

Guideline E-23 is OSFI's principles-based expectation for enterprise-wide model risk management. OSFI published the final version on September 11, 2025, with an effective date of May 1, 2027. It replaces the 2017 version, which covered deposit-taking institutions only.

Three facts set the scope:

  • Who it covers. The guideline "applies to all federally regulated financial institutions," including foreign bank and foreign insurance branches. The 2027 version extends model risk expectations to insurers.
  • Who it does not. OSFI's cover letter says application to federally regulated pension plans "has been reconsidered," and the backgrounder states that pension plans are excluded.
  • How hard it bites. It applies on a risk basis, proportional to the institution's size, strategy, risk profile, complexity and interconnectedness. A small trust company and a large bank both comply, at different intensity.

Is a customer-facing AI chatbot a "model" under E-23?

Probably, if it does anything more than serve fixed scripts. E-23 defines a model as an application of assumptions or statistical techniques, "including AI/ML methods, which processes input data to generate results," with three components: data input, processing and result.

A retrieval-augmented chatbot maps onto all three. The customer's question and your retrieved policy pages are the input. The large language model is the processing component. The reply shown to the customer is the result.

OSFI was asked directly about generative AI. In the stakeholder table attached to the letter, institutions asked whether low-risk uses "such as the use of ChatGPT for document summarization or marketing emails" could be excluded. OSFI left the definition "intentionally broad" and said institutions are "empowered to make risk-intelligent decisions" when rating each use. A low-risk internal summarizer might get a light rating. A chatbot answering customers about fees, claims or account rules is a harder case to rate low.

E-23 also says "Externally developed models should be assessed for model risk ratings on a standalone basis." A chatbot built on a vendor's model is still your model to rate.

Whether your chatbot is in scope is your model risk team's call, not ours. The rest of this post assumes it is.

What does an E-23 inventory entry for a chatbot need?

Appendix 1 of the guideline lists the minimum fields. Every identified model needs an ID, a name and description, a risk rating, an owner, a developer and its origin (internal or vendor). Models with non-negligible risk add a version, deployment date, reviewer, approver, dependencies, data sources, approved uses, limitations, last review date, monitoring status and next review date.

For an LLM chatbot, three of those fields carry most of the weight:

  • Version. The underlying model version, the system prompt version and the knowledge-base snapshot. A change to any of them can change answers.
  • Dependencies. The LLM vendor, the retrieval index, the CRM or booking tools the bot can call.
  • Approved uses and limitations. What the bot may answer, what it must refuse, and when it hands off to a person.

The risk rating should use E-23's own factors. The guideline names "model complexity or level of autonomy," "reliability of data inputs," "customer impacts" and "regulatory risk" among the qualitative ones. A chatbot that can only answer FAQs and escalate rates lower than one that can change an address or start a claim.

What chatbot test evidence maps to each E-23 lifecycle stage?

E-23 lists the lifecycle as design, review, deployment, monitoring and decommission, with approval running throughout. Here is how SwiftBiz maps each stage to test evidence for a customer-facing LLM chatbot. The left column is OSFI's; the evidence column is our testing practice, not OSFI wording.

E-23 stageWhat the guideline expectsOur test evidence for a chatbot
Design: rationaleDefined purpose, scope and use of outputs; for AI, explainability, bias and privacy consideredWritten scope: topics allowed, topics refused, handoff rules, languages
Design: dataData that is accurate, representative, compliant, traceable and timelyVersioned knowledge-base snapshot; a test set built from real customer questions; PII handling cases
Design: developmentDocumented performance tests and limitationsBaseline run of the full test set; in our testing, every case gets a written pass criterion and a logged result
Review (validation)Independent from development; checks conceptual soundness, performance, third-party componentsIndependent red-team pass: hallucination, prompt injection, data leakage, out-of-scope advice
ApprovalSuitability for intended use; rating affirmed; limitations accepted with mitigantsFindings report with severity, open issues and the compensating controls for each
DeploymentTests showing the model works as expected in production; cybersecurity risk assessed firstSmoke test in production configuration; check that production data matches what was tested
MonitoringThresholds, drift tracking, changes in external dependencies such as version updatesScheduled regression runs; re-test on any vendor model, prompt or knowledge-base change
DecommissionStakeholders alerted; retired model and documentation retainedFinal test record archived with the model version it covered

Two lines in the guideline matter most for testers. The review process "should be independent from model development," and institutions "can use the work of internal reviewers or objective third parties." And events that should prompt a review include model modifications, performance breaches, significant data changes and scheduled periodic reviews. For a chatbot, a vendor's silent model update is a modification.

Ready to automate?

See how AI automation can transform this workflow for your team.

How do you test a third-party LLM you cannot see inside?

You test its behaviour, because you will not get its weights. OSFI heard this objection and did not soften the rules. In the stakeholder table, OSFI declined to add a grace period for validating third-party model updates, declined to make exceptions for vendors unwilling to share documentation, and said "Institutions should have controls to assess whether the vendor solution is producing an appropriate response."

That sentence is a testing requirement. In practice it means:

  1. A fixed regression suite you own, run against the vendor model before go-live and after every vendor version change.
  2. Pass criteria written before the run, so two reviewers score the same reply the same way.
  3. Adversarial cases from the OWASP Top 10 for LLM Applications: prompt injection, system prompt leakage, sensitive information disclosure.
  4. A pinned model version where the vendor allows it, so a change is a decision, not a surprise.

Fourth-party models count too. OSFI said a third-party model review "should include inputs into the model, including feeder models." If your chatbot vendor runs on another company's LLM, that LLM is part of what you test. E-23 also points to Guideline B-10 on third-party risk management for the contract side.

What should you finish before May 1, 2027?

Start with the inventory entry, because everything else hangs off the risk rating. Here is the checklist we recommend for a customer-facing chatbot, in order:

  1. Confirm with your model risk team whether the chatbot meets the model definition.
  2. Create the inventory entry with every Appendix 1 field, including model, prompt and knowledge-base versions.
  3. Assign a provisional risk rating using customer impact, autonomy and regulatory risk.
  4. Write the scope: allowed topics, refused topics, handoff triggers.
  5. Build a test set from at least 50 real customer questions, plus adversarial cases.
  6. Run a baseline and log every result against written pass criteria.
  7. Commission an independent review by people who did not build the bot.
  8. Record findings, mitigants and the approver's decision.
  9. Set monitoring thresholds and a re-test trigger for every vendor, prompt or data change.
  10. Write the decommission plan, including how long test records are kept.

Our 9-gate pre-launch test plan covers steps 5 and 6 in detail. How to red-team an AI chatbot covers step 7.

What does SwiftBiz do here, and what does it not do?

SwiftBiz produces independent test evidence. We do not do compliance consulting, we do not interpret E-23 for your institution, and we do not approve models. We have no bank or insurer clients today, and we say so up front.

What we do bring is testing discipline. Harry spent 10+ years as a senior SDET testing enterprise software, and our AI chat agents work uses the same release-gate approach. A red-teaming or safety audit is $5,000 CAD per engagement. It produces a findings report your model reviewer can use as one input to the independent review: test cases, results, severity and re-test status.

Who is this checklist not for?

It is not for chatbots that serve only fixed, pre-approved scripts with no generative step. Those may not meet the model definition at all.

It is also not a substitute for your institution's MRM framework, and it does not cover E-23's governance expectations for senior management and the board. Internal-only uses, such as an employee drafting tool, may rate as negligible risk and need far less. And because E-23 is proportional, a small institution with one low-risk bot should not copy a large bank's validation intensity.

Where should you start?

For a chatbot already live, start with the inventory entry and a baseline test run this quarter; that alone tells you how far you are from review-ready. For a chatbot still in design, choose the scope and test set first, because both are cheaper to write before launch than after.

If you are earlier than that and still deciding which AI uses are worth building at all, SwiftBiz's AI Readiness Audit is $3,500 CAD, one-time, and credited toward your retainer. It is a technical review of your workflows, not a regulatory opinion. Book it here, or pick the red-team engagement if the chatbot already exists.

Written by Harry, Founder & Lead AI Engineer at SwiftBiz. Guideline text was read on osfi-bsif.gc.ca on November 7, 2026.

When does OSFI Guideline E-23 take effect?
May 1, 2027. OSFI published the final guideline on September 11, 2025, after a draft in November 2023 and consultation to March 2024. It applies to all federally regulated financial institutions, including banks, foreign bank branches, trust and loan companies, and life and property and casualty insurers. Federally regulated pension plans are excluded.
Does OSFI E-23 apply to AI chatbots?
E-23 does not mention chatbots by name. It defines a model as including AI/ML methods that process input data to generate results, and OSFI kept that definition intentionally broad. A customer-facing LLM chatbot is therefore likely in scope. Your model risk team decides, and the risk rating sets how much review and monitoring it needs.
Can a third party do the independent model review under E-23?
Yes. E-23 says the review must be independent from model development, and institutions can use internal reviewers or objective third parties. The model approver still makes the decision. An outside tester can supply evidence, such as red-team results, but approval and the risk rating stay with the institution.
How much does an independent chatbot red-team cost at SwiftBiz?
SwiftBiz's red-teaming or safety audit is $5,000 CAD per engagement. It covers adversarial testing of a customer-facing chatbot, including hallucination, prompt injection, data leakage and out-of-scope advice, and produces a findings report with severity ratings. It is test evidence, not compliance advice or model approval.

Want this running for your business?

Start with a free strategy call. We'll map your workflow, flag the highest-ROI automation, and tell you honestly whether we're the right fit.