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 →Reference

SAP-samples/teched2025-AI160

A hands-on session that builds a purchase-order escalation agent in JavaScript or Java with the SAP Cloud SDK for AI and the Generative AI Hub in AI Foundation, calling the S/4HANA Purchase Order API.

Two parallel tracks build the same demo in two languages, a purchase-order management agent that identifies overdue PO items and automates escalation workflows: JavaScript with LangGraph, Java with Spring AI, and identical core concepts either way. Both call the SAP S/4HANA Purchase Order API for PO data and note creation and the SAP AI Core Orchestration Service for LLM invocation, content filtering and data masking, while a React frontend takes a query such as 'Show overdue PO items for plant DE01' and the agent routes it through tools that fetch PO data, calculate overdue status, format the response and create an escalation note. The repository carries the material for two sessions, SAP TechEd 2025 and DSAG TechXchange 2026, and runs either on the hands-on test system it provides or on a reader's own AI Core instance, which needs a deployment for orchestration created by hand and its client ID, secret and authentication URL entered.

Facts

Last pushLicenceApache-2.0

Where it sits

Lives in
Demonstrates
Agent toolingBTPAgent toolingcapabilityBuilding an agent into your own application — the tools it may call, the state it keeps between turns, and the framework it runs in. Distinct from MCP servers, which expose an application to somebody else's agent, and from agent guidance, which is knowledge handed to a coding agent.LLM integrationBTPLLM 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
SAP AI CoreSAP AI Coreartifactthe orchestration deployment both tracks call for the model; on a reader's own instance it has to be created and its credentials supplied first.

Who is behind it

SAP SamplesSAP SamplesOrganisationMaintains this
In the atlas: maintains 222
@SAP-samples
maintainerAjay SorengPersonContributes to this
In the atlas: contributes to 36
@ajaysoreng
BrigittaK307PersonContributes to this
In the atlas: contributes to 12
@BrigittaK307
David KnaackPersonContributes to this
In the atlas: contributes to 13, wrote 1
@davidkna-sap
Deeksha SinhaPersonContributes to this
In the atlas: contributes to 12
@deekshas8
emincihangeriPersonContributes to this
In the atlas: contributes to 12
@emincihangeri
Junjie TangPersonContributes to this
In the atlas: contributes to 12
@jjtang1985
James RappPersonContributes to this
In the atlas: contributes to 4
@jmsrpp
Jonas-IsrPersonContributes to this
In the atlas: contributes to 1
@Jonas-Isr
Thomas JungPersonContributes to this
Developer Advocate
In the atlas: contributes to 15, wrote 6
@jung-thomas
KavithaSivaPersonContributes to this
In the atlas: contributes to 12
@KavithaSiva
16 contributors

What it declares

Every artifact

Type
Sample
Origin
By SAP
Use as
A reference
Runtime
Node.jsJava

As a sample

Form
Workshop or CodeJam material

Connections4

README

quoted from SAP-samples/teched2025-AI160 under Apache-2.0, read
SAP-samples/teched2025-AI160/README.mdOn GitHub

REUSE status

Caution

Access to test systems are considered temporary. However, in all cases you can still use the sample code and tutorial available in this repository.

If you are part of a workshop session (e.g., TechEd or TechEd on Tour), the speakers should share the test system credentials with the participants.

Warning

Disclaimer

While using the test system, please note the following terms:

  1. System Duration: The test system will be available only during the workshop session.
  2. Testing/Learning Purposes Only: The test system is intended solely for testing or learning purposes and must not be used for any productive or commercial activities.
  3. Malicious Usage: Any detection of malicious usage will result in immediate termination of your test system access. Depending on the severity of the abuse, legal action may be pursued.
  4. Feature Changes: Do not make any business decisions on the contents of this exercise. SAP reserves the right to change or deprecate any feature of the Orchestration Service in the future, without any prior notification.

AI160 - Build Your Own AI Agent-Based Solution with the Generative AI Hub

Description

This repository contains material for multiple sessions:

Overview

This session introduces attendees on building AI agent-based solutions using the SAP Cloud SDK for AI and the Generative AI Hub in AI Foundation.

This session offers two parallel tracks:

Both tracks cover identical core concepts and practical applications, differing only in the programming language and SDK utilized. You may choose the track that best aligns with your technology stack. You may also opt to experience multiple tracks to broaden your understanding.

Getting Started

  1. Software requirements:
  • TechEd Berlin: The provided laptops already meet all requirements.
  • Other Sessions:
    • General
      • Git
    • JS
      • IDE: VS Code or WebStrom
      • Node 20+
    • Java
      • IDE: Eclipse or IntelliJ
      • Java 21
      • Maven 3
  1. Clone the Repository:

    Clone the repository using your preferred Git client. If you’re using the Git command line interface, run the following command:

    git clone https://github.com/SAP-samples/teched2025-AI160.git
  2. Select Your Programming Language:

Please note:

  • If you have your own AI Core instances for consuming Generative AI Hub capabilities, you can follow this tutorial using those instances. Please make the following adjustments:
    • You need to create a deployment for orchestration by referring the documentation.
    • Before beginning the exercises, you’ll need to provide system information. Instead of using the hands-on test system provided for this tutorial, use your own AI Core instance details, such as the AI Core client ID, secret, and authentication URL.
    • If you’re running your application on BTP rather than locally, the SDKs will automatically retrieve your AI Core instance information from the VCAP_SERVICES environment variable.

Demo Application

An AI-powered Purchase Order (PO) Management Agent that identifies overdue PO items and automates escalation workflows.

Architecture

The application demonstrates an AI agent workflow that orchestrates multiple specialized tools to process natural language queries about purchase order items. Available in both JavaScript (LangGraph) and Java (Spring AI) implementations.

Core Integration Points
  • SAP S/4HANA: Purchase Order API for real-time PO data retrieval and note creation
  • SAP AI Core Orchestration Service: Handles LLM invocation, content filtering, and data masking
  • Agent Framework: LangGraph (JS) or Spring AI (Java) for workflow orchestration and tool routing

Users interact through a React frontend, submitting natural language queries like "Show overdue PO items for plant DE01". The agent intelligently routes through specialized tools — fetching PO data, calculating overdue status, formatting responses, and creating escalation notes.

alt text

This tutorial is built using the SAP Cloud SDK for AI. If you’d like to learn more or integrate it into your own projects, check out the following resources:

Contributing

Please read the CONTRIBUTING.md to understand the contribution guidelines.

Code of Conduct

Please read the SAP Open Source Code of Conduct.

How to obtain support

Support for the content in this repository is available during the actual time of the session for which this content has been designed. Otherwise, you may request support via the Issues tab.

License

Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

Apache-2.0, read

Details

Sources3
Added by handdiscovered herechecked
github.com/SAP-samples/teched2025-AI160tree, 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
runtimesnode, java
discovered viaAdded by hand
first seen in the atlas
ecosystem and domainbtp, ai-and-agents
Contributors16
History in the atlas1
  1. First seen.
For your agent
Ref
artifact:sap-samples-teched2025-ai160
JSON
/artifacts/sap-samples-teched2025-ai160.json
MCP
Connecting an agent