SampleSampletypeA worked example you read or clone. Evidence: it demonstrates, it never provides.See every one →What this type is →by SAPby SAPoriginPublished by SAP itself. A visible facet, never an input to a reading — a dormant official plugin reads exactly like a dormant independent one.See every one →Starting point

ui5con-2026-chrome-built-in-ai

A hands-on UI5 workshop that adds Chrome's on-device AI APIs to a small TypeScript app for triaging multilingual support tickets: language detection, summaries, structured extraction, translation and replies.

Support tickets arrive in German, Spanish, French and English, and the exercises wire a UI5 list/detail app to Chrome's built-in AI APIs to detect the language, summarise the ticket, extract sentiment, category and priority as structured JSON, translate it, and draft a reply, all on-device with no backend model or API key. Every call goes through one seam, webapp/model/ai.ts, so the ?mock=1 flag can swap in canned output when Chrome's on-device model is unavailable, which the README says happens on corporate-managed profiles. The same exercises run on two tracks that end at the same app: a manual track of diffs to apply, and an AI-assistant track of prompts for an assistant with UI5 MCP wired up, with the manual exercise as its answer key. It stops at Chrome's own AI APIs: the ticket data comes from a small OData V4 service that ships ready-made in the starter, and a branch per exercise holds the finished state to jump to.

Facts

Last pushLicenceApache-2.0

Where it sits

Lives in
Demonstrates
LLM integrationUI5LLM integrationcapabilityCalling a language model from application code with the tenant, destination and credential handling already solved instead using an SDK call with a hand-rolled key.
Requires
Node.jsNode.jsoutside the atlasrunning the UI5 dev server and the OData V4 data service the starter ships; the README pins the versions it expects.

Who is behind it

SAP SamplesSAP SamplesOrganisationMaintains this
In the atlas: maintains 222
@SAP-samples
maintainerAdrian BobevPersonContributes to this
In the atlas: contributes to 10
@adrian-bobev
1 contributor

What it declares

Every artifact

Type
Sample
Origin
By SAP

As a sample

Form
Workshop or CodeJam material

Connections2

README

quoted from SAP-samples/ui5con-2026-chrome-built-in-ai under Apache-2.0, read
SAP-samples/ui5con-2026-chrome-built-in-ai/README.mdOn GitHub

UI5 Chrome AI Workshop — Hands-On

REUSE status

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.

What you'll build

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)

Two ways to build it — pick your track

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.

→ Start the manual track

🅑 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:

StepChrome AI APIEnds 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 + LanguageDetectorSummarizer, LanguageDetectorexercise-2
Exercise 3 — Translator (English-pivot)Translatorexercise-3
Exercise 4 — Prompt API + JSON-schema outputLanguageModel (Prompt)exercise-4
Exercise 5 — Writer API + progress UXWriter (+ fallback)exercise-5

Reference (open in a second tab while you work)

Chrome built-in AI API documentation

Official docs for every Chrome built-in AI API used in this project (all called through webapp/model/ai.ts):

No Chrome AI on your machine? Add ?mock=1

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 and exercise branches

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:

BranchCompletesState
starterSetupbase UI5 list/detail app + data service + tooling (no AI)
exercise-1Exercise 1AI scaffold + complete ai.ts + mock
exercise-2Exercise 2Summarizer + LanguageDetector wired
exercise-3Exercise 3Translator wired
exercise-4Exercise 4Prompt-API classification wired
exercise-5Exercise 5Writer + 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 start

git checkout starter returns to the base app; git checkout main gives you the finished app plus docs.

The ai.ts seam

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).

Requirements

  • Node.js ^20.17.0 or >=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=1 on 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).

How to obtain support

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.

Code of Conduct

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.

Contributing

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.

License

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.

Apache-2.0, read

Details

Sources3
Added by handdiscovered herechecked
github.com/SAP-samples/ui5con-2026-chrome-built-in-aitree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
discovered viaAdded by hand
first seen in the atlas
ecosystem and domainui5, ai-and-agents
Contributors1

From the repository’s contributor list, .

History in the atlas1
  1. First seen.
For your agent
Ref
artifact:sap-samples-ui5con-2026-chrome-built-in-ai
JSON
/artifacts/sap-samples-ui5con-2026-chrome-built-in-ai.json
MCP
Connecting an agent