> For the complete documentation index, see [llms.txt](https://docs.appmixer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appmixer.com/connector-configuration/utils/storage/on-item-added.md).

# On Item Added

### Overview

The **On Item Added Component** triggers when a new item is added to storage, providing real-time updates whenever an insertion occurs.

### Usage

This component is used to monitor a specified storage location and trigger workflows whenever a new item is inserted.

#### Output Ports

| Port   | Description                                        |
| ------ | -------------------------------------------------- |
| `item` | Emits the details of the newly added storage item. |

#### Properties

| Property  | Type     | Description                                  |
| --------- | -------- | -------------------------------------------- |
| `storeId` | `string` | The ID of the storage space being monitored. |

#### Processing Logic

1. **Registers Webhook**: The component registers a webhook to listen for new storage items.
2. **Monitors Insertions**: Whenever an item is added, the webhook captures its details.
3. **Sends Data**:
   * If an insertion occurs, the component outputs the item's details to `item`.
   * The webhook ensures that only insertions are processed.

#### Output Data Schema

| Property    | Type     | Description                                   |
| ----------- | -------- | --------------------------------------------- |
| `key`       | `string` | The key of the added item.                    |
| `value`     | `string` | The value of the added item.                  |
| `storeId`   | `string` | The storage ID where the item was added.      |
| `createdAt` | `string` | The timestamp when the item was created.      |
| `updatedAt` | `string` | The timestamp when the item was last updated. |

### Notes

* **Real-Time Monitoring**: Captures insertions as they happen.
* **Webhook-Based Execution**: Efficiently listens for storage updates.
* **Supports Automation**: Ideal for triggering workflows when new data is added.

This component is essential for workflows that require automatic processing of new storage entries in real time.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.appmixer.com/connector-configuration/utils/storage/on-item-added.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
