- SAP Joule
- AI behaviour
- Content design
When AI fails well: one error framework for SAP Joule
Error Handling Framework, 2026
When an AI assistant can’t do what someone asked, how it says so decides whether they recover and keep trusting it. I co-created the Error Handling Framework for SAP Joule. It gives dozens of teams building on Joule one shared way to classify errors, explain them in plain language and guide recovery, so people meet one coherent error experience instead of many fragmented ones.
The context
SAP Joule is SAP’s AI assistant, embedded across the company’s product suite. Like any AI system, it fails: a request gets filtered for safety, a model’s confidence drops, a file can’t be reached, the system is overloaded, or something breaks in a way no one anticipated.
During a major push to ship AI capabilities quickly in early 2026, error features were defined and built rapidly across many independent teams: message generation, data science, Joule Spaces, line-of-business teams. Each arrived at its own way of understanding, categorising and wording errors.
The same underlying failure could look and sound completely different depending on where a user met it. That created three compounding problems:
- Product: inconsistent, unpredictable error experiences that raised cognitive load exactly when people were already stuck.
- Operational: teams duplicating effort with no shared language for what an “error” even was.
- Business: every confusing failure chipped away at trust, adoption and the perceived value of AI.
The reframe
Errors are easy to treat as isolated UI: a red card here, a toast there. We argued instead that errors are a holistic experience across the whole user journey and the AI product lifecycle. So the deliverable couldn’t be a set of screens. It had to be a framework of definitions, principles, patterns and specifications that any team could apply.
To make it usable rather than abstract, we structured it as a ladder from flexible to concrete, so a designer can reach for the level of guidance their situation allows.
- Principles
- Heuristics
- Guidelines
- Patterns
- Specifications
- Components
The framework rests on three pillars. Each answers a question people silently ask when AI fails.
The process
The framework was research-led and built over roughly a year. It grew out of explainability research and evolved, deliberately, from fixing individual error messages into a reusable system.
- Discover. A review of 45+ academic and industry publications on explainable AI, trust and mental models, alongside SAP’s own AI ethics and design guidance. The anchoring insight: technical explanations alone don’t help; an explanation only lands when it’s meaningful in the context of the user’s goal. Current-state discovery added a pivotal technical finding: fallback decisions can originate upstream in orchestration, before the model ever generates a response.
- Define. Real conversation logs showed how recovery was failing people: too much technical detail, fallback suggestions disconnected from the goal, no acknowledgment that the request had failed, “recovery” that ended the conversation, and limitations revealed only after repeated dead ends.
- Explore. We benchmarked established error-handling practice against Joule’s behaviour, ideated alternative fallbacks and next actions, and pressure-tested them in walkthroughs and a demo with engineering.
- Systematise. The turning point: splitting the problem into three reusable layers (taxonomy, explainability and handling) and connecting them into one framework.
- Specify. Content guidelines, component mapping and interaction specifications, reviewed with designers, product owners and architects.
- Operationalise. Everything consolidated into documented guidance, now being prepared as a functional skill so the framework scales as a living tool.
Pillar one: taxonomy
What kind of problem is this, really?
Before anyone can design a good error message, teams have to agree on which errors exist and how they relate.
- A shared language. We defined the terms everyone used loosely (error impact, recovery, explainability, fallback, data status, retryability, escalation path, informational error) so that “error” meant the same thing in a design review, a backlog ticket and an engineering spec.
- Grouped by what the failure means to the user, not by system cause. Fifteen technical explanation categories became twelve user-facing categories, such as Content restricted, Response may be inaccurate, Request timed out, File inaccessible and High activity right now, plus a deliberate “Something went wrong” fallback for anything not yet individually addressed.
- Dimensions that drive design. Each error is described by its impact (on the input, the output, the session or Joule itself), its recoverability (by the user, automatic, assisted or none) and its visibility (should the user even see it?).
- Limitations are not failures. A system working within its intended boundaries needs clear expectation-setting; a broken operation needs recovery. Keeping the two apart stopped people from reading a boundary as a bug.
Differentiate only where it’s meaningful. Group errors that share an impact and a recovery path; separate them only when the distinction helps the user act.
Pillar two: explainability
What happened, and why?
Too little explanation and people are lost; too much and you bury them in system internals or erode trust by over-explaining. We designed explainability as a layered system.
Every error follows the order a person’s mind travels: What happened? What does this affect? What can I do about it? Deeper detail is revealed progressively.
- MinimalWhat happened, and a way to retry.Shown up front
- CauseThe user-facing cause they can act on.Shown up front
- Decision logicWhy the AI decided what it did.On demand
- TechnicalInternals for debugging and enterprise transparency.On demand
- A content voice for AI failure. Neutral and collaborative (never blaming the user), outcome over attribution, plain language over jargon, and calibrated uncertainty: signalling when someone should apply their own judgement rather than promising a fix.
- Static over generated copy, for now. For the first release we recommended pre-authored messages rather than letting the AI write its own error text. A little flexibility traded for consistency, safety, localisation, QA and control. It is also the responsible use of compute: don’t spin up a model to say “try again”.
This pillar is where I did the most hands-on content design, down to reasoned word choices: why “try” matters for calibrated uncertainty, why “continues” beats “persists”, why we say “content” and not “intent signals”.
Pillar three: handling
What now?
Taxonomy and explanation only matter if they drive the right behaviour on screen. Not every failure should interrupt the user, so we defined when and how each one surfaces.
- Handle silentlyAuto-recovered, no material impact.
- InformWorth knowing, even if nothing can be changed.
- Offer an actionThe person can take a step to recover.
- EscalateRecovery needs another person or team.
The rule of thumb: always surface anything that affects user data, task completion or safety, or that could make people misunderstand what the AI can do.
- Evaluate, then design. Designers first evaluate the case (Is Joule behaving as intended? Does this affect the user? What recovery exists?) and only then choose the component, message and interaction. Classification reliably drives the UI instead of each designer improvising.
- The right surface. Explanation levels map onto real Joule components: error cards for standalone failures and in-workflow progress steps for failures inside a task, each with concrete constraints so guidance survives contact with real UI.
- Always a way forward. Rather than repeating the same failure, offer another path (rephrase, start over, reach support) and end on one clear next action.
Voice
Joule also speaks. Voice is the hardest test: no screen, no progressive disclosure and roughly a dozen words to work with. Error utterances had to be brief and natural, state the consequence without fear-based warnings, apologise sparingly, never blame the user and close with a single spoken next action. If an error couldn’t be said cleanly out loud, it usually wasn’t clear enough on screen either.
Collaboration
- Vanny Chao, my design partner. We split and traded workstreams. Vanny drove early explainability content, the error-treatment decision tree and the taxonomy draft; I built the error-treatment framework and mapped error surfaces onto the taxonomy, flagging where orchestration architecture needed to validate the approach.
- Joule AI-pattern designers, so errors felt native to the wider pattern library.
- Product owners, architects and engineering, to ground the work in how errors are actually detected and routed.
- The Insights team, whose usage data and customer feedback kept the taxonomy focused on failures that actually happen and hurt.
- The Design System team, who implemented the components from our specification-ready recommendations.
The outcome
The framework moved Joule from many teams improvising errors toward one shared system:
- a shared taxonomy and vocabulary adopted across teams;
- a progressive explainability model and an authored message set for the launch categories;
- a visibility decision model and component mapping, implemented by the Design System team;
- voice guidance extending the same principles to speech;
- a documented framework, completed in late 2026, now becoming a reusable skill.
The deeper win is organisational: teams building on Joule now have a place to go and a language to share, so error experiences converge instead of fragmenting.
A note on validation: this is research-led, collaborative systems design, grounded in the literature review, conversation analysis and iterative reviews with engineering and design peers. Formal end-user usability testing of every element is scoped as future work, and I keep that distinction explicit.
SAP Joule and this framework are internal SAP work. Some technical and organisational details are generalised for an external audience.
