SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

SAP TechEd Developer Garage: Error Resolution with AI Adapter

Build an integration flow in SAP Integration Suite that catches an error, masks it, asks an LLM in SAP AI Core for a diagnosis through the AI Adapter, and attaches a readable resolution to the message.

Overview

You will learn

  • ✔How to connect Cloud Integration to SAP AI Core with the AI Adapter (AICore-GenAIHub variant)
  • ✔How the AI Adapter uses an OAuth2 credential that has been provisioned for you
  • ✔How to catch and handle errors in an exception subprocess without losing the original error
  • ✔How to mask personal data before anything is sent to an LLM
  • ✔How to turn an AI answer into readable attachments, a readable message body, and searchable fields in the Monitor
rojo-ashishkuvvarapu r rojo-ashishkuvvarapu October 23, 2026
Created on October 22, 2026
Contributors

More from rojo-ashishkuvvarapu

See all 2 tutorials by rojo-ashishkuvvarapu →

Prerequisites

  • Contact a Developer Advocate in the Developer Garage to share the necessary credentials for accessing the provisioned systems.
  • Various systems have been provisioned for you to complete this tutorial.

Steps

Step 1 System access
—

As part of this tutorial, you will need to access the provisioned systems using the credentials shared with you. In the table below, you will find the necessary information to access each system.

There are two SAP Integration Suite environments available for use in this tutorial. Use the one corresponding to your user range.

SystemURL
SAP Integration Suite - Dev Garage 1 (User01 - User99)https://url.sap/054nme
SAP Integration Suite - Dev Garage 2 (User100 - User180)https://url.sap/i18ebv

Scenario

Challenge: Integration errors are often cryptic, and diagnosing them takes time. Support teams need a plain-language explanation and a suggested fix next to the error.

Approach: You build an integration flow that generates a test error. A sales order contains a text value where the schema expects a number. The flow catches the error, adds context, masks personal data, and sends the result to an LLM in SAP AI Core through the AI Adapter. The answer is attached to the message as a readable resolution.

The AI Adapter is the hero of this flow. It calls the SAP AI Core orchestration service with OAuth2, and you never handle a token yourself.

The flow consists of two connected pieces:

Text
Main flow:
  Start Timer -> Set Order Payload -> Set Context -> Validate Order -> End

Exception Subprocess 1 (runs when anything in the main flow fails):
  Error Start -> Capture Error -> Build Prompt -> Call AI (AI Adapter -> SAP AI Core) -> Attach AI Diagnosis -> End Message
Part of the flowWhat it does
Start TimerStarts the flow once, each time you deploy. No sender system is needed.
Set Order PayloadCreates a sample sales order that contains a test error.
Set ContextRecords the step and business object, so the error handler knows where it failed.
Validate OrderChecks the order against a schema and fails with a precise reason.
Capture ErrorCollects the error and context, masks personal data, and prepares the AI input.
Build PromptPuts the masked error into the instructions for the AI.
Call AICalls SAP AI Core through the AI Adapter and receives the diagnosis.
Attach AI DiagnosisTurns the AI answer into readable attachments, a readable message body, and searchable fields in the Monitor.

Step 2 Step 1 — Create a Package and an Integration Flow
+
Step 3 Step 2 — Check the Credential Provisioned for You
+
Step 4 Step 3 — Build the Main Flow to Generate a Test Error
+
Step 5 Step 4 — Capture the Error in an Exception Subprocess
+
Step 6 Step 5 — Build the Prompt and Call the AI
+
Step 7 Step 6 — Configure the AI Adapter
+
Step 8 Step 7 — Attach the AI Resolution to the Message
+
Step 9 Step 8 — Deploy and Read the AI Resolution
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 9
1. System access 2. Step 1 — Create a Package and an Integration Flow 3. Step 2 — Check the Credential Provisioned for You 4. Step 3 — Build the Main Flow to Generate a Test Error 5. Step 4 — Capture the Error in an Exception Subprocess 6. Step 5 — Build the Prompt and Call the AI 7. Step 6 — Configure the AI Adapter 8. Step 7 — Attach the AI Resolution to the Message 9. Step 8 — Deploy and Read the AI Resolution