AI Agent: Ceres AI - Predict Supply Chain Risk


Ceres AI - Predict Supply Chain Risk is part of the Boomi Marketplace program. Visit marketplace.boomi.com to browse additional pre-built solutions that you can install directly into your Boomi platform account!

Click here to install this recipe

Ceres Technology offers an AI solution that enables clients to forecast supply chain disruptions and delays, often months in advance. Our AI engine empowers you to identify which raw materials, components, finished goods, and suppliers are at risk of delays or disruptions before you place your purchase orders. This capability allows for better planning and procurement, helping you understand which suppliers are vulnerable, manage inventory more effectively, improve on-time deliveries, enhance supply resilience, and meet Service Level Agreements. Not only do we identify risks, but we also quantify the expected severity of any delays (i.e., how long the delay is likely to last). Our AI incorporates over 25,000 global indicators (as of this writing) including geopolitical information, commodities prices, financial data, global news, and micro- and macroeconomic data. We combine these external sources with clients’ historical purchase order information to forecast potential delays.

The “Predict Supply Chain Risk” AI Agent recipe includes pre-built processes that integrate the Ceres Nostradamus platform (a cloud-based system) with your SAP ERP that do the following:

The CSV file format used to upload new Purchase Orders for prediction processing to the Ceres platform 

Data ElementDescription
Purchase Order #Purchase order number
SupplierInternal or legal name of the supplier
Product NameName of product
Purchase Order DateThe date on which the Purchase order created
Supplier Origin CountryThe country of the supplier
Destination State ProvinceThe State of the shipment destination
PricePrice paid for the order
Order QuantityQuantity of the product ordered
Expected Delivery DateThe date on which the shipment is expected to arrive
Actual Delivery DateThe date on which the shipment actually arrived

Before You Begin - Boomi for SAP Table Service

If you are new to Boomi for SAP, kindly visit this community article & help documentation to get more details. Also consult the documentation for how to configure a Table Service in Boomi for SAP.

You will need to configure a Table Service to read purchase order details from the SAP system.

We have prepared the below sample Table Service (PO_TEST_MOB) using Boomi for SAP which can help you to get the necessary Purchase Order data from your SAP system. (Boomi for SAP also has the capability to share existing Table Services with Customers/Partners).

Configuring EKKO as Master table

Joining other tables with EKKO table

Joining all these tables together will provide key data elements related to a purchase order.

Filtering on statuses in EKKO & other tables

Process: Read SAP Purchase Orders & Send to Ceres Platform

This process picks up purchase orders, transforms them to the CSV format expected by Ceres, uploads the data file, and initiates the prediction processing.

Connector Step - Read Purchase Orders Data from SAP System

Boomi for SAP Connection Details

Boomi for SAP Operation Details

In the above example we have set the Max Returned Rows to a value of 10, to be used for testing purposes. This will need to be adjusted in order to load an appropriate number of historical purchase orders to effectively train the AI model.

Data Process Step

Set to Combine Documents from the JSON response profile ‘Boomi aXis for SAP PO_TEST_MOB QUERY Response’ returned from the ‘PO_TEST_MOB’ table service to get all SAP Purchase orders under the same JSON structure.

Map Step

Map SAP Purchase Order Profile (JSON) to the Ceres compatible Purchase Order T able Profile (Flat File) as CSV to send it further to Ceres Nostradamus environment.

Set Properties Step

Set Dynamic Document Properties to define CSV File name.

Sub-Process: (Sub) Encode as multipart/form-data

This specific Sub-Process is responsible for creating the received SAP Purchase Orders CSV file request as multipart/form-data MIME type that is needed to send it to Ceres Nostradamus.

HTTP Client Connector Step

Connection

Operation

If successful, we should expect to receive a JSON response to indicate the prediction processing has been successfully started.

Set Properties Step

It is good practice to ‘SET MIME Property - MIME Document to FALSE’ after multipart/form-data processing to avoid potential issues whereby subsequent HTTP processing still expects MIME formatted documents.

Process: Ceres Prediction Result Listener

This web service listener process is called from the Ceres platform as part of a callback mechanism. Once prediction processing is complete, predictions are sent back to Boomi so that they can be acted upon.

Start step

Map Step

Map Prediction Results (JSON) received from the Ceres to Flat File Profile so that we can use these mapped fields further to update into SAP & also send an email to end-users regarding prediction results about his/her purchase orders created in SAP initially.

Data Process Step

Set to Split Documents from the Flat profile ‘Prediction Result Flat File Profile’ to separate each purchase order individually, So that it is easier to update each of these purchase order prediction status one by one in SAP .

Branch 1 Step

This specific branch responsible to update prediction results back to SAP against each of the purchase orders which may face delay in delivery.

Message Step

Preparing SAP compatible JSON profile dynamically to update each purchase order (which may get delay in delivery as per prediction results) in SAP .

Boomi for SAP Connector step

This time we are using Function Module Service from Boomi for SAP to update these purchase orders delay status in SAP.

We are using standard SAP FM: BAPI_PO_CHANGE to update these purchase orders with delay status.

Boomi for SAP Function Module Service set-up: Documentation for how to configure Function Module Service in Boomi for SAP

Branch 2 Step

This branch is responsible to send entire Prediction Results to the users as an email.

Message 1 Step

Preparing email format to send in tabular format.

Message 2 Step

Preparing email body.

Set Properties Step

Setting Mail IMAP body content type to “text/html” so that it can prepare the mail in tabular format using HTML tags used in message steps previously.

Mail (IMAP) Connector Step

This particular connector is used to send an email to the users.

If you are new to Mail(IMAP) Connector then follow these steps to set it up: How to Use the Mail (IMAP) Connector

Summary