# Creating scheduled CSV feeds

In this tutorial, you'll learn how to create a feed of your shop's data, and make it available on your online store, at a URL like `https://example.com/pages/feed`[.](https://example.com/pages/feed)

Tip: The data you generate can be imported directly into Google Sheets. Learn more: [Google Sheets integration](/platform/integrations/google-drive-and-google-sheets.md)

{% hint style="warning" %}
This technique has several limitations:

* Shopify doesn't support delivering the feed contents as plaintext. To get technical, this means that the feed will always be delivered with a content type of text/html.
* Because this task stores feed values as a shop metafield, feeds created with this technique may only contain and display up to 65,535 characters.

To move beyond these, consider using the [FTP action](/core/actions/ftp.md) to upload your feed to your own server.
{% endhint %}

## Instructions

### 1. Create your task.

Start with our example task, using the "Try this task" button to add it to your account:

[**Task: Create a product inventory feed**](https://tasks.mechanic.dev/create-a-product-inventory-feed)

Immediately after adding the task, run it by clicking the "Run task" button. This will populate your shop's records with the initial value of the feed.

This task replicates Shopify's own product inventory CSV export. Feel free to make changes to the task code, and don't hesitate to get in touch if you have questions. :)

### 2. Create a page template, called "page.feed.liquid".

This is the template that will be responsible for displaying your feed contents, without the usual page formatting that your shop's theme usually applies.

To do this, navigate to the "Themes" section of your Shopify admin (under "Online Store", or by searching for "themes"). Then, under the "Actions" menu for your current theme, click the "Edit code" link.

![](/files/c8avzKWS6cnY5YLdcg0M)

Next, click "Add a new template".

![](/files/fU5zYzfcNHdqSiDO46yh)

Then, select the option for creating a "page" template, of type "liquid", and fill in the text box with the name "feed" (or another template name to your liking).

![](/files/sm4TlvQZkjCwogM1Mdpb)

Next, fill in the template contents with the following:

```liquid
{%- layout none -%}
{{- shop.metafields.mechanic.feed -}}
```

... and click the "Save" button. Your template should look like this:

![](/files/xIw99mjk0RVoiuyUWwn9)

### 3. Create a new page to use as your feed.

Navigate to the "Pages" section of the Shopify admin (under "Online Store"), and click the "Add page" button (or search the admin for "add page"). Name the page "Feed" (or another name of your liking), and change the page template to "page.feed.liquid".

![](/files/pnnBsZNDNTu94StfdfBr)

Save the page.

### You're done!

Open up the page you just created, and you should see the contents of your feed. :) If you have any questions, head to [our community Slack](/resources/slack.md).


---

# 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://learn.mechanic.dev/resources/tutorials/creating-scheduled-csv-feeds.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.
