Build a multilingual customer-feedback triage app in UI5 that uses Chrome's built-in AI APIs — no backend LLM, no API key, no cost. Every model runs on-device. Ticket data is served by a small OData V4 service that ships ready-made in the starter — the workshop focuses on UI5 + the Chrome AI APIs.
A UI5 List/Detail app where support tickets in mixed languages (DE / ES / FR / EN) get:
- Auto-detected language (LanguageDetector API)
- One-line TL;DR summary (Summarizer API)
- Structured metadata: sentiment, category, priority (Prompt API + JSON Schema)
- On-demand translation to English (Translator API)
- A drafted reply in the customer's language (Writer API + Prompt-API fallback)
Both tracks clone the same starter (a runnable base UI5 app + data service) and end at the identical finished app. Every step gives you the exact change (or the exact prompt) to reach the next — no step is left implicit.
🅐 Manual track — apply diffs, no assistant
Each AI feature is a small diff you apply to a file, with the full file one click away in a collapsed section for recovery. Best if you want to understand every line, or you don't have an MCP-capable assistant.
🅑 AI-assistant track — prompt-driven with MCP
You drive Claude Code / Cursor / Copilot with UI5 MCP wired up. Each exercise gives you a precise prompt, then points you at the matching manual exercise as the answer key to diff against. Best if you want to learn MCP-augmented UI5 development.
→ Start the AI-assistant track
Both tracks share the same steps:
| Step | Chrome AI API | Ends at |
|---|---|---|
| Setup: Prerequisites | — | environment ready |
| Setup: MCP setup | — | assistant wired to UI5 MCP |
| Setup: Clone the starter + run the base app | — | starter |
Exercise 1 — UI scaffold + the ai.ts seam |
(all, behind one seam) | exercise-1 |
| Exercise 2 — Summarizer + LanguageDetector | Summarizer, LanguageDetector | exercise-2 |
| Exercise 3 — Translator (English-pivot) | Translator | exercise-3 |
| Exercise 4 — Prompt API + JSON-schema output | LanguageModel (Prompt) | exercise-4 |
| Exercise 5 — Writer API + progress UX | Writer (+ fallback) | exercise-5 |
- docs/cheatsheet.md — one-page Chrome AI API reference
- docs/troubleshooting.md — top blockers and fixes
Official docs for every Chrome built-in AI API used in this project (all called through
webapp/model/ai.ts):
- Built-in AI overview — capabilities, hardware requirements, and how the on-device model is shared across APIs
- Summarizer API — TL;DR summaries (
ai.summarize) - Language Detector API — detect the language of ticket text (
ai.detectLanguage) - Translator API — English-pivot translation (
ai.translate) - Prompt API —
LanguageModelwith JSON-Schema structured output (ai.classify) - Writer API — draft support replies (
ai.draftReply) - Rewriter API — companion to Writer for revising existing text
If your Chrome is corporate-managed (or you haven't downloaded the on-device model yet), the
AI APIs return unavailable. The workshop still works — from Exercise 1 on, append
?mock=1 to the URL:
http://localhost:8080/index.html?mock=1
Every AI call is routed through webapp/model/ai.ts, which swaps in
webapp/model/ai.mock.ts — deterministic canned output. Every exercise, including the JSON
Schema classifier and the drafted reply, produces a plausible result. You learn the same API
patterns; the model just doesn't actually run. See
troubleshooting.md for why this happens on managed profiles.
The starter branch is the granted baseline you clone during setup: a runnable base UI5
app (list/detail, no AI) plus the OData V4 data service (a small CAP app) and all project
tooling. Each exercise has a branch holding its finished state:
| Branch | Completes | State |
|---|---|---|
starter |
Setup | base UI5 list/detail app + data service + tooling (no AI) |
exercise-1 |
Exercise 1 | AI scaffold + complete ai.ts + mock |
exercise-2 |
Exercise 2 | Summarizer + LanguageDetector wired |
exercise-3 |
Exercise 3 | Translator wired |
exercise-4 |
Exercise 4 | Prompt-API classification wired |
exercise-5 |
Exercise 5 | Writer + progress UX (= finished app) |
main carries exercise-5's code plus these docs. If you fall behind, jump to an exercise
branch:
git stash # save your in-progress work
git checkout exercise-3 # jump to the finished state of Exercise 3
npm install
npm startgit checkout starter returns to the base app; git checkout main gives you the finished
app plus docs.
All Chrome AI calls go through webapp/model/ai.ts. Controllers call ai.summarize(...),
ai.translate(...), ai.classify(...), ai.draftReply(...) — never a Chrome global
directly. That single seam is what makes ?mock=1 work and what you'd steal for your own
app. The shim ships complete at Exercise 1 (exercise-1); Exercises 2–5 wire controllers to it.
Ready? Pick a track above and start with Setup: Prerequisites (manual · AI).
- Node.js
^20.17.0or>=22.9.0, and npm>=8— to run the UI5 dev server and the data service - Git — to clone this repository
- A modern Chromium browser (Chrome 148+ / Edge) — for the on-device Chrome built-in AI APIs (or use
?mock=1on any browser) - Optionally, an MCP-capable AI assistant (Claude Code, Cursor, or GitHub Copilot) — for the AI-assistant track
Full step-by-step setup instructions are in the Setup steps of each track (manual · AI).
Create an issue in this repository if you find a bug or have questions about the content.
For additional support, ask a question in SAP Community.
This project follows the SAP Open Source Code of Conduct, adapted from the Contributor Covenant v2.1. By participating, you agree to abide by its terms. Report unacceptable behavior to ospo@sap.com.
If you wish to contribute code, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses the standard DCO text of the Linux Foundation.
See CONTRIBUTING.md for details.
Copyright 2026 SAP SE or an SAP affiliate company and ui5con-2026-chrome-built-in-ai contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.