BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

How to use Cloud SDK for AI in an existing CAP NodeJS Project in CommonJS

A dependency that is ESM-only inside a project that is CommonJS, and the author's judgement that converting the project was too risky. What follows is the esbuild workaround, which is the honest answer when the ecosystem has moved and your codebase has not.

Where it sits

Explains
LLM integrationCAPLLM 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.TypeScript patternsCAPTypeScript patternscapabilityHow an application is arranged once it is written in TypeScript — where handlers live, what registers them, and how business logic is kept apart from persistence. Distinct from typing, which is about the model being visible to the compiler; this is about the shape of the code around it.
Since then
LLM integration changed in @cap-js/ai 1.0.0, 2026-04-28
Source
reachable

Who is behind it

Jacky_Liu1author

Before you read it

read from the page
ApplicabilityCore changedLLM integration changed in @cap-js/ai 1.0.0, 2026-04-28.

This is a derived prompt to re-check the work, not a claim that the work is wrong. Exact stale statements are recorded separately after editorial review.

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
1,472

What was found on the page

derived
Prose
derived
163 words
Code blocks
derived
5

For llm-integration

on the edge
Applies in
authored
cap

More on this39

Group by39 of 39 pieces
Piece, what it offersStill applies
Also explainingLLM integration39
CAP in the age of AI #5 - agents wrap-up
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, Simon Engel, Stefan Rudi, Daniel Schlachter, part 5 of 7
nothing recorded
What an AI infra engineer sees when opening SAP's AI stack (1/3): the model gateway
SAP Community, amishkush
nothing recorded
UI5 AI Features library is now an npm Package
SAP Community, Wouter LemaireThe reasoningRunnable code
Version drift
CAP in the age of AI #3 - from MCP to A2A
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, Stefan Rudi, part 3 of 7
nothing recorded
Natural Language Queries for SAP CAP via MCP: The LLM Translates, CDS Executes
SAP Community, ShahidThe reasoningA recipeRunnable code
nothing recorded
Banking Sentinel: A Multi-Agent Credit-Risk Copilot on SAP BTP, Built on a Mixed AI Stack
SAP Community, ShahidThe reasoningA recipeRunnable code
Core changed
Building an LLM Agent in CAP Java with Spring AI
SAP Community, Johannes VogtThe reasoningRunnable code
Core changed
Building an LLM Agent using CAP
SAP Community, Johannes VogtThe reasoningRunnable code
Core changed
Agentic AI on BTP: a Multi‑Agent App with Pydantic AI
SAP Community, Wouter Lemaire
nothing recorded
Agentic AI on BTP: a Single Agent with LangGraph
SAP Community, Wouter Lemaire
nothing recorded
Enhancing Enterprise Applications: AI-powered User Experience with SAP CAP AI Plugin
SAP Community, rupamaityThe reasoningA recipeRunnable code
nothing recorded
Integrating a Custom AI Model into SAP CAP Using AI Launchpad
SAP Community, egeAksoyekThe reasoningRunnable code
Core changed
cds-toon-ai-protocol-adapter: a pragmatic way to cut AI token costs using SAP CAP
SAP Community, Geert-Jan KlapsThe reasoningA recipeRunnable code
nothing recorded
UI5 MCP Server Got Extended for UI Integration Cards Generation
SAP Community, daniel_vladinov
nothing recorded
Prompt-Driven Development: Building Full-Stack SAP CAP Apps from User Stories
SAP Community, AnuradhaDhinganThe reasoning
nothing recorded
Streaming LLM Output with CAP and WebSockets
SAP Community, RobinPThe reasoningA recipeRunnable code
Core changed
How to Reduce Prompt Token Costs Using Toon = Save Money
SAP Community, YoganandaThe reasoningA recipeRunnable code
Core changed
Generative AI on SAP BTP
SAP Architecture Center, SAP Architecture CenterThe reasoningA reference
Core changed
Quick Implementation of DI/DI Container on SAP CAP: Node.js Hands-on Part
SAP Community, UmezukiThe reasoningRunnable code
nothing recorded
Lets Talk to the Database - CAP & SQLite Powered by Google Gemini-2.5-Pro
SAP Community, ShivamShuklaSAPThe reasoning
nothing recorded
How we could potentially have nestjs as runtime for SAP CAP
SAP Community, alex_myakinkii
nothing recorded
Use TypeScript with the SAP Cloud Application Programming Model
SAP Community, KevinRThe reasoningA recipeRunnable code
nothing recorded
SAP CAP: Controller - Service - Repository architecture
SAP Community, Daniel DragoleaThe reasoningRunnable code
New majors
Elevating Data Privacy in SAP CAP based GenAI Applications with CAP LLM Plugin
SAP Community, AkashAmarendraThe reasoningRunnable code
nothing recorded
An Innovative Language Exchange App developed with SAP Build Apps, CAP, Kyma, and OpenAI
SAP Community, javierywThe reasoningRunnable code
Core changed
CDS-TS-Repository: Simplify SAP CAP Entity persistance with BaseRepository
SAP Community, Daniel DragoleaThe reasoningRunnable code
New majors
CDS-TS-Dispatcher: Simplifying SAP CAP TypeScript Development
SAP Community, Daniel DragoleaThe reasoningRunnable code
New majors
Automate your Job Postings Using Generative AI (ChatGPT) & SAP Build Process Automation Apps
SAP Community, shivamshukla12The reasoning
nothing recorded
Creating a meal generator application with SAP Build, Cloud Application Programming and openAI
SAP Community, former_member793421The reasoning
nothing recorded
CAP Typescript + Fiori Typescript + live reload Initial app setup
SAP Community, Christophe_SWThe reasoningRunnable code
Core changed
Empowering Your Data Analytics with GPT-3 and SAP CAP Integration
SAP Community, Former MemberThe reasoning
nothing recorded
A ChatGPT-like chat app built with modern SAP technologies (CAP, SAPUI5) – Part 3/3
SAP Community, Mike Zaschka, part 3 of 3The reasoningRunnable code
1 stale part
A ChatGPT-like chat app built with modern SAP technologies (CAP, SAPUI5) – Part 2/3
SAP Community, Mike Zaschka, part 2 of 3The reasoningRunnable code
Gone quiet
A ChatGPT-like chat app built with modern SAP technologies (CAP, SAPUI5) – Part 1/3
SAP Community, Mike Zaschka, part 1 of 3The reasoningRunnable code
Gone quiet
Full Stack TypeScript App for Cloud Foundry - Sample Repository
SAP Community, former_member66The reasoningA recipeRunnable code
Core changed
Taking CAP to the next level - with TypeScript
SAP Community, mrbandlerThe reasoningRunnable code
Gone quiet
Agentic CAP: Build MCP servers and enterprise AI agents
SAP TechEd — session catalogue, Daniel Hutzel, Daniel SchlachterA recipe
nothing recorded
AI-enabled administration: Automating log analysis with generative AI hub
SAP TechEd — session catalogueThe reasoning
nothing recorded
Stop guessing, start counting: How generative AI fixed an inventory mess
SAP TechEd — session catalogueThe reasoning
nothing recorded

Details

Graph4 edges
POINTS OUT →
explainsLLM integrationcapability, core and community
explainsTypeScript patternscapability, core and community
published onSAP Communitypublishing source
discovered viaSAP Communitycap-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History2
  • explains → applies_to on capability:llm-integration (cap)Door scope proposed from the title and summary, so a door page lists the piece only where it holds (docs/concepts/content-on-doors.md).
  • Entered the atlasDiscovered via SAP Community · cap-tag.
For your agent
Ref
content:using-cloud-sdk-for-ai-in-a-commonjs-cap-project
JSON
/content/using-cloud-sdk-for-ai-in-a-commonjs-cap-project.json
MCP
Connecting an agent