> 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/supplier-invoicing-and-payments/email-attachment-handler-sim.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Email Attachment Handler (SIM)

This sub-agent is used to upload the attachment for the received invoice document.

| Business area                   | Action type                                |
| ------------------------------- | ------------------------------------------ |
| Supplier Invoicing and Payments | Updates IFS Cloud data after user approval |

## Overview

Used to perform invoice matching with purchase orders and receipts, validate financial data, handle discrepancies, and post approved invoices into the system.

## How it works

{% stepper %}
{% step %}
Create Document Holder for SI - Email Attachment Handler - Supplier Invoicing Manager.
{% endstep %}

{% step %}
Get Email Attachments for SIM - Email Attachment Handler - Supplier Invoicing Manager.
{% endstep %}

{% step %}
Upload s3file to document for SI V2 - Email Attachment Handler - Supplier Invoicing Manager.
{% endstep %}

{% step %}
Determine the recommended outcome or next action.
{% endstep %}

{% step %}
Return structured results and any escalation guidance.
{% endstep %}
{% endstepper %}

## Key capabilities

* Invoice intake & parsing.
* 3-way match.
* Charge & variance interpretation.

{% hint style="info" %}
This skill keeps a human in the loop. It previews every change and updates IFS Cloud only after a user approves it.
{% endhint %}

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component | Projection                           |
| --------- | ------------------------------------ |
| IFS Cloud | DocReferenceObjectAttachmentHandling |

## Version compatibility

| Projection                           | Supported IFS Cloud releases |
| ------------------------------------ | ---------------------------- |
| DocReferenceObjectAttachmentHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Write paths require explicit user confirmation or authorization where configured.
