SAP AI Services - DOX - Gen AI with SAP CAP Plugin - Part 3
Building on Reusable components for CAP with cds-pluginReusable components for CAP with cds-pluginThe post that taught the mechanism, and it teaches it by picking a requirement small enough to be absurd: every string a service returns should end in a random emoji. Working through that on the bookshop example leaves nothing to argue about except the plumbing, which is the point — what a cds-plugin is, where it hooks in, and why packaging it beats copying it into the next project. Vinícius Barrionuevo credits this post as the thing that gave him the idea for sap-cap-sdm-plugin, and it is hard to read the plugin ecosystem in this graph without it.published 2023-04-30 by Daniel SchlachterDaniel Schlachtercreated 9 pieces, contributed to 10 entriessap official, this part walks through a custom CAP plugin — a cds-plugin.js plus a lib_cap_dox.js helper — that authenticates against SAP's Document Information Extraction (DOX) service and calls its schema and job-status APIs to fill an entity from extracted document fields. It covers reading the service key from Cloud Foundry (cf service-key) for the OAuth token endpoint, and dynamically mapping DOX's header and line-item output onto CAP entity properties.
Where it sits
Who is behind it
In this series
- 1
- 2
- 3SAP AI Services - DOX - Gen AI with SAP CAP Plugin - Part 3you are here
Properties
About this work
For document-extraction
Details
Graph
Source
History
- explains → applies_to on capability:document-extraction (cap, btp)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 · cloud-foundry-tag.
For your agent
- Ref
content:sap-ai-services-dox-gen-ai-with-sap-cap-plugin-part-3- JSON
- /content/sap-ai-services-dox-gen-ai-with-sap-cap-plugin-part-3.json
- MCP
- Connecting an agent