AI chatbot model retirement: keep your website bot answering
AI chatbot model retirement can silence a website bot overnight. How model lifecycles work, a safe upgrade routine with Node.js code, and fixes for common errors.
The AI model behind your website chatbot has an end date, and when it passes, the bot stops answering. On November 30, 2026, Anthropic retired Claude Sonnet 4.5 on its API, so any chatbot still calling it now gets an error. A week earlier it announced that Claude Opus 4.5 retires in January 2027.
Models move through four stages: active, legacy, deprecated and retired. Deprecation is your warning. Retirement is when requests fail. Aliases that point to the newest model are a separate risk, because the model behind them can change without any error at all.
The fix is a routine. Find every place a model ID lives, including no-code tools. Keep the ID in one setting. Build a small set of real customer questions, compare the old and new model's answers, switch through configuration, and read transcripts for a few days afterwards. Watch for older settings, such as temperature, that newer API versions reject.
Next step: check which model your chatbot uses today and put its retirement date in the calendar of whoever looks after it.
This guide is for business owners and marketing teams who run an AI chatbot on their website and want it to keep working as AI providers update their models. AI chatbot model retirement is now a routine event: on November 30, 2026, Anthropic retired Claude Sonnet 4.5 on the Claude API, and requests to it now fail. On November 23, 2026 it also announced that Claude Opus 4.5 will retire on January 22, 2027. In the same month, OpenAI moved its chat-latest alias to its newer GPT-6.2 family. Below we explain how model lifecycles work, the upgrade routine we use, a short Node.js example, and how to fix the errors people hit.
The problem: your chatbot can stop, or change, without anyone touching it
Clients usually describe it in one of two ways. "The chat on our site just says something went wrong." Or, more subtly, "the bot started giving longer answers and stopped sending people to the contact form."
Both have the same root. A website chatbot is a thin layer on top of a model you rent from an AI provider. That provider keeps releasing newer models and switching older ones off. If the model ID in your chatbot points at a model that has been retired, every message fails. If it points at a moving alias, the model behind it can change, and so can the answers, with no error to warn you.
The people who notice first are rarely the people who built the bot. It's the support team, or a customer. That's why we treat model upgrades as part of looking after a chatbot, not as a one-off build task. If you are still planning your first assistant, our guide to AI chatbots for websites that actually help customers covers the groundwork.
How AI chatbot model retirement actually works
Anthropic's deprecations page describes four stages, and other providers follow a similar pattern even if they use different words.
- Active: fully supported and recommended.
- Legacy: no further updates; a deprecation may follow.
- Deprecated: still works, but now has a retirement date and a recommended replacement. Customers using it are notified by email.
-
Retired: requests fail. On the Claude API the Messages endpoint returns a
404 not_found_error.
Pinned IDs and moving aliases
There are two ways to name a model in code, and they fail in different ways. A pinned ID, such as claude-sonnet-4-5-20250929, always means the same model. It behaves consistently until the day it retires, and then it stops. A moving alias, such as OpenAI's chat-latest, always points at whatever the provider currently considers newest. It rarely stops, but its behavior can shift when the provider repoints it, as happened in November 2026.
One detail catches people out: when Anthropic retired Sonnet 4.5, the short ID without a date (claude-sonnet-4-5) retired with it. A shorter name is not a safer one.
Where the dates apply
The retirement dates on Anthropic's page apply to the platforms Anthropic operates. If your chatbot reaches Claude through a cloud provider's own marketplace, that provider sets its own schedule, so check its model table rather than assuming the dates match. The same logic applies to chatbot builders and no-code tools: they may switch models for you, or they may leave you on a model until it fails.
How to plan a chatbot model upgrade
This is the routine we run whenever a deprecation notice arrives. It works whether the bot was custom-built or assembled in a tool such as Zapier, Make or n8n.
- 1 Find every model ID. Search the codebase and environment variables, then check every automation tool and plugin that calls an AI model. In the Claude Console, Usage > Export downloads a breakdown by API key and model, which shows calls you may have forgotten about.
- 2 Build a test set. Pull twenty or so real questions from past chat transcripts: common ones, awkward ones, and ones where the bot should hand over to a person. Write down what a good answer looks like for each.
- 3 Compare answers. Run the set through the current model and the recommended replacement, side by side. Look at accuracy, tone, length, whether it still follows your hand-off rules and whether links and product names are right. Adjust the system prompt if the new model needs it.
- 4 Switch through configuration. The model ID should live in one setting, not in several files, so the change is a single edit that's easy to undo.
- 5 Watch transcripts, then plan the next one. Read real conversations for a few days after the switch, and put the new model's earliest retirement date in the calendar of whoever looks after the bot.
A Node.js example: model IDs in config, with a check and a fallback
For custom chatbots, this small module keeps model IDs in environment variables, checks at startup that they still exist, and falls back to a second model if the first one is no longer found. It uses the official @anthropic-ai/sdk package (version 1.x) and goes in your server code, never in the browser. Set CHAT_MODEL and CHAT_MODEL_FALLBACK to the IDs you tested.
// chat-model.js
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic(); // reads ANTHROPIC_API_KEY from the environment
const MODELS = [process.env.CHAT_MODEL, process.env.CHAT_MODEL_FALLBACK].filter(Boolean);
// Call at startup and from a daily scheduled job, so a retired ID fails loudly.
export async function checkModels() {
for (const id of MODELS) {
await client.models.retrieve(id);
}
}
export async function reply({ system, messages }) {
for (const model of MODELS) {
try {
return await client.messages.create({ model, max_tokens: 1024, system, messages });
} catch (err) {
if (err instanceof Anthropic.NotFoundError) {
console.error(`Chat model not available: ${model}`); // send this to your alerts
continue;
}
throw err;
}
}
throw new Error("No configured chat model is available");
}
Notice the request doesn't set temperature. That's deliberate, and the troubleshooting section below explains why.
What we've learned from chatbot model upgrades
- Pin in production, experiment with aliases. We use pinned IDs for anything customers see, and moving aliases only for internal prototypes where a surprise change doesn't matter.
- A fallback is a safety net, not a plan. The fallback model may answer differently, so test it with the same question set. It buys you time when a date is missed; it shouldn't become the permanent setup.
- Don't upgrade the SDK and the model in the same release. If answers change, you want to know which of the two caused it.
- Make sure notices reach a person. Retirement emails go to the account owner. If that's a former employee or a freelancer who has moved on, nobody sees them. Keep the AI provider account in the business's name, as we recommend in our guide to website ownership when you hire an agency.
Troubleshooting
Symptom: the chat widget shows a generic error for every message. Likely cause: the model ID points at a retired model, and the API returns a not-found error. Fix: check the server logs for not_found_error, update the model ID in configuration to the tested replacement, and add the startup check above.
Symptom: requests fail with a 400 error after an SDK upgrade, mentioning temperature. Likely cause: newer SDK versions send a newer API version. In API version 2026-10-21, Anthropic removed temperature, top_p and top_k, and requests that send them are rejected. Fix: remove those parameters and guide tone and consistency through the system prompt instead.
Symptom: answers got longer, chattier or stopped pointing to your contact page, with no code change. Likely cause: the bot uses a moving alias that now points at a different model. Fix: pin a specific model ID, rerun your test set and tighten the system prompt where answers drifted.
Symptom: a no-code automation stops at its AI step. Likely cause: the step still names a model the tool no longer offers. Fix: open the step, pick a current model from the tool's list, and run your test questions through the automation before turning it back on.
Questions people ask
How much notice do providers give before retiring a model?
Anthropic publishes deprecations with a retirement date and emails customers with active usage, and OpenAI keeps a deprecations page of its own. The notice is usually enough for a calm test and switch, but only if someone is reading it.
Can we just always use the newest model?
You can, through an alias, but you give up control over when behavior changes. For a customer-facing bot we'd rather choose the moment of change and test before it.
Do we need a developer for each upgrade?
Not if the model ID lives in one setting and you have a test set. The switch is then a configuration change; the judgment is in reading the comparison.
Why it matters for your business
A chatbot that fails quietly is worse than no chatbot: visitors get an error instead of an answer, and leads that would have used your contact form leave. A bot whose tone drifts can give answers your team would never approve. Treating model retirement as routine care keeps the assistant doing the job you built it for. If your bot was built on a platform that is going away rather than a model, our guide to moving a website chat assistant after the Agent Builder shutdown covers that case.
Quick checklist
- Find every model ID your website and automations use.
- Keep each ID in one configuration setting.
- Build a test set from real customer questions.
- Compare old and new answers before you switch.
- Remove request settings newer API versions reject.
- Put the next retirement date in someone's calendar.
If you'd like help setting up or looking after your assistant, our AI chat assistant and automation service and Node.js development team can take it on, or you can start a conversation with us.
(over to you)
Planning a build like this?
Tell us what you're building and we'll come back with ideas and next steps.
Keep reading
All articles
AI & Automation
· 5 min read
How to prepare your online store for AI shopping agents
Read article
AI & Automation
· 8 min read
Agent Builder shutdown: move your website chat assistant
Read article
AI & Automation
· 5 min read
AI lead qualification and follow-up: a setup guide for small teams
Read article
