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/btp-sourcing-decision-board

A procurement decision-support system that runs a cooperative and an adversarial AI agent strategy over a sourcing RFQ in parallel and cross-validates their recommendations on a live decision board.

The Sourcing Decision Board analyses a sourcing event by running a cooperative, iterative-refinement AI strategy and an adversarial, debate-style strategy in parallel, then compares the two before a procurement professional sees a recommendation. A Flask backend built on SAP AI Core and SAP Generative AI Hub calls the agents, a React and SAPUI5 frontend shows a live decision board with streaming updates, and a SQLite database keeps the full decision history. It needs an SAP BTP account with AI Core and Generative AI Hub access, runs locally from python server.py, and deploys to Cloud Foundry with cf push.

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.
Requires
SAP AI CoreSAP AI Coreartifactthe deployment the agents call, configured by client id, secret, auth URL, API URL and deployment idSQLiteSQLiteoutside the atlasthe database the decision history and the audit trail are kept inNode.jsNode.jsoutside the atlasbuilding the React frontend before the server is started
Optional
SAP BTP, Cloud Foundry RuntimeSAP BTP, Cloud Foundry Runtimeartifactwhere the application is pushed when it is not run locally

Who is behind it

SAP SamplesSAP SamplesOrganisationMaintains this
In the atlas: maintains 222
@SAP-samples
maintainerSwenPersonContributes to this
In the atlas: contributes to 1
@swfuchs
1 contributor

What it declares

Every artifact

Type
Sample
Origin
By SAP
Use as
A reference

As a sample

Form
does not say

Connections5

README

quoted from SAP-samples/btp-sourcing-decision-board under Apache-2.0, read
SAP-samples/btp-sourcing-decision-board/README.mdOn GitHub

Sourcing Decision Board

REUSE status

Description

AI-Powered Strategic Sourcing Decision Support System

The Sourcing Decision Board is a procurement decision support system implementing parallel, heterogeneous agentic loop strategies for sourcing award optimization. Instead of relying on a single AI approach, it runs multiple independent AI strategies simultaneously and cross-validates their recommendations before presenting results to procurement professionals.

Key Features
  • 🤖 Dual-Strategy AI Execution: Cooperative (Iterative Refinement) and Adversarial (Debate/Challenge) approaches
  • ✅ Automated Cross-Validation: Compare results from different strategies for higher confidence
  • 📊 Real-Time Decision Board: Live execution monitoring with streaming updates
  • 💾 Complete Persistence: SQLite database with full decision history
  • 🔍 Decision History: Browse, search, and filter previous RFQ decisions
  • 🎯 Intelligent Dual-Sourcing: Automated optimization of supplier splits
  • 📈 Strategy Comparison Dashboard: Side-by-side analysis of AI recommendations
  • 🔐 Human-in-the-Loop: Structured governance framework for final decisions
Technology Stack
  • Backend: Python 3.11+ / Flask
  • Frontend: React + SAPUI5
  • AI/ML: SAP AI Core + SAP Generative AI Hub
  • Database: SQLite (with full audit trail)
  • Deployment: SAP BTP Cloud Foundry ready
API Endpoints
EndpointMethodDescription
/healthGETHealth check
/api/decisionPOSTCreate new decision
/api/decision/<id>GETGet decision data
/api/decisionsGETList all decisions (paginated)
/api/decision/<id>/executePOSTExecute AI agents
/api/decision/<id>/execute_dualPOSTExecute dual strategies
/api/decision/<id>/progressGETGet execution progress
/api/decision/<id>/streamGETStream execution via SSE

Requirements

  • Python 3.11 or higher
  • SAP BTP account with AI Core enabled
  • SAP Generative AI Hub access
  • Node.js 18+ (for React frontend build)

Download and Installation

Quick Start
# Clone repository
git clone https://github.com/SAP-samples/btp-sourcing-decision-board.git
cd btp-sourcing-decision-board

# Install Python dependencies
pip install -r requirements.txt

# Configure environment
cp .env.example .env
# Edit .env with your SAP AI Core credentials

# Build React frontend
cd react-app
npm install
npm run build
cd ..

# Run locally
python server.py

Visit http://localhost:5000 to access the application.

Environment Variables
# SAP AI Core Configuration
SAP_AI_CLIENT_ID=your-client-id
SAP_AI_CLIENT_SECRET=your-client-secret
SAP_AI_AUTH_URL=https://your-subdomain.authentication.eu10.hana.ondemand.com
SAP_AI_API_URL=https://api.ai.prod.eu-central-1.aws.ml.hana.ondemand.com
SAP_AI_DEPLOYMENT_ID=your-deployment-id

# Application Settings
ENABLE_AI_AGENTS=true
PORT=5000
DB_PATH=decisions.db
Usage
  1. Create a Decision — POST supplier/RFQ data to /api/decision
  2. Select Strategy — Choose Single or Dual (recommended) strategy execution
  3. Review Results — View AI recommendations in the Comparison Dashboard
  4. View History — Browse all previous decisions with search and filtering
Deployment to SAP BTP Cloud Foundry
# Login to Cloud Foundry
cf login

# Deploy application
cf push

See TESTING_GUIDE.md for detailed testing and deployment instructions.

Known Issues

No known issues.

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.

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.

License

Copyright (c) 2026 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/btp-sourcing-decision-boardtree, 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 domainbtp, ai-and-agents
Contributors1

From the repository’s contributor list, .

History in the atlas1
  1. First seen.
For your agent
Ref
artifact:sap-samples-btp-sourcing-decision-board
JSON
/artifacts/sap-samples-btp-sourcing-decision-board.json
MCP
Connecting an agent