# Update inventory from an XML feed

### Create an automation in Stockeo

Let's start by adding a new Stockeo automation. Navigate to your **Shopify admin panel** → **Apps** → **Stockeo**. Hit **Create Automation**. Type the automation name (or leave the default one), select whether to create or update (this option in our case) products and set when the automation should run.

<figure><img src="https://2071801931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6HyRe5TyFXHKQEybH7n%2Fuploads%2Fgit-blob-89e55837db79d7e1bae65962f9b5f9a184100d92%2Fstockeo-app-for-shopify-create-new-automation.gif?alt=media" alt="How to create new automation in Stockeo app for Shopify animated"><figcaption><p>Create new Stockeo automation</p></figcaption></figure>

In the next step, set where to get the product feed from. Select one of the available channels - HTTP, FTP, or Email. If you are going to use FTP, fill in the Host URL, Username, Password, and File path fields. Once you finished, click Connect.

<figure><img src="https://2071801931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6HyRe5TyFXHKQEybH7n%2Fuploads%2Fgit-blob-47f091780bb3a7c8045e0b1180eaa2ae6a96c90e%2Fset-the-ftp-feed-source-in-stockeo-for-shopify-animated.gif?alt=media" alt="How to set up feed source in the Stockeo app for Shopify animated"><figcaption><p>Set the feed source</p></figcaption></figure>

Let's move to the Data Mapping section. Start by choosing the file format. Specify the Product Element, i.e. the name of the XML element that wraps product details. Set the SKU and Quantity fields according to the names used in the file from your supplier. You can also add other fields that you would like to update such as Barcode, Compare at Price, Cost Per Item, Price, Title or Weight.

<figure><img src="https://2071801931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6HyRe5TyFXHKQEybH7n%2Fuploads%2Fgit-blob-bc3d0673cb3fc4a1dae5fe2629954e6253958ece%2Fstockeo-app-for-shopify-set-data-mapping.gif?alt=media" alt="How to set Data Mapping in the Stockeo app for Shopify animated"><figcaption><p>Set the Data Mapping</p></figcaption></figure>

<figure><img src="https://2071801931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6HyRe5TyFXHKQEybH7n%2Fuploads%2Fgit-blob-2ca4d3518ebfeaf233a4146476518689faa81bf8%2Fstockeo-for-shopify-set-data-mapping-xml.png?alt=media" alt="Fields from the supplier&#x27;s file needed in Stockeo data mapping section annotated"><figcaption><p>Fields from your supplier's feed needed in the Stockeo Data Mapping section</p></figcaption></figure>

Set the filters to choose which products should be modified. You can filter by vendor or product tags. Pick also the location for which the quantity will be updated. Finally, save the automation.

<figure><img src="https://2071801931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6HyRe5TyFXHKQEybH7n%2Fuploads%2Fgit-blob-ff98481ab4c7e2c7b10a5c3732deadced645aa3a%2Fstockeo-app-for-shopify-add-filters-set-location.gif?alt=media" alt="How to set filters and location in the Stockeo automation animated"><figcaption><p>Set filters and location</p></figcaption></figure>

### Run your automation

To see how it works, wait for a scheduled action or click **Run** to update products right away. Then navigate to the Stockeo **History** section. If you can see 'In progress', please refresh the page. The update time depends on the feed size and the number of products in your store. When the status is 'Success', you can click on **Details** to check how many and which products have been modified.

<figure><img src="https://2071801931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6HyRe5TyFXHKQEybH7n%2Fuploads%2Fgit-blob-cbcb27d158a26239e3bf6c258df258445274ff39%2Fstockeo-app-for-shopify-run-automation.gif?alt=media" alt=""><figcaption><p>Run automation and check a summary</p></figcaption></figure>

If your XML feed has a more complex structure and you need to extract product data from attributes, visit [Enhanced XML Data Mapping](https://help.stockeo.solvenium.com/data-mapping/format/xml#enhanced-xml-data-mapping) to learn more.


---

# Agent Instructions: 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:

```
GET https://help.stockeo.solvenium.com/update-inventory-from-an-xml-feed.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
