> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/intelligent-pegging-and-reservation-automation.md).

# Intelligent Pegging & Reservation Automation

Reserves available inventory or recommends pegging future supply to fulfill customer orders.

**Core Domain:** Supply Chain Management

**Supported Digital Worker:** Inventory Replenisher (IR)

#### Overview

Extracts customer order, part, and quantity details from incoming requests and checks inventory availability in IFS Cloud. When inventory is available, it identifies suitable Shop Order supply, recommends pegging quantities, and executes the approved pegging allocation after human confirmation.

#### Business Challenge

Planners manually determine whether customer demand should be fulfilled using current inventory or future incoming supply.

#### How this skill fits into the workflow for:

**Inventory Replenisher (IR)**

{% stepper %}
{% step %}
Customer order created
{% endstep %}

{% step %}
Checks inventory availability
{% endstep %}

{% step %}
If stock exists, reserves inventory immediately
{% endstep %}

{% step %}
If stock unavailable, searches eligible shop orders, ranks supply candidates, and recommends pegging options
{% endstep %}

{% step %}
Executes pegging after approval
{% endstep %}
{% endstepper %}

#### Decision Logic / HITL

* Supply ranking:&#x20;
  1. Started &#x20;
  2. Reserved &#x20;
  3. Released &#x20;
  4. Planned
* Secondary ranking: earliest delivery date
* Planner confirms recommended supply allocation

#### Business Value

* Faster order promising
* Automated supply allocation
* Increased customer service levels
* Reduced planner workload
* Improved inventory utilization

#### Key Capabilities

* Customer order detail extraction
* Inventory availability checks
* Full and partial availability identification
* Shop Order supply search
* Pegging quantity recommendations
* HITL recommendation review
* Approved pegging execution
* Multi-supply pegging support
* Execution result validation

#### Required IFS Cloud Components & Permission Sets

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top"><strong>Component</strong></td><td valign="top"><strong>API Name</strong></td></tr><tr><td valign="top">ORDER</td><td valign="top">CustomerOrderHandling.svc</td></tr><tr><td valign="top">INVENT</td><td valign="top">InventoryPartInStockHandling.svc</td></tr><tr><td valign="top">ORDER</td><td valign="top">ManualPeggingOfCustomerOrderLine.svc</td></tr></tbody></table>
