# Build push content from a catalog or feed

Send pushes with up-to-date products or articles without writing a new push each time. Pushwoosh takes the current items from your catalog or feed when the push goes out.

* Use **Product recommendations** to promote items from your [Product Catalog](/product/content/product-catalog), such as new arrivals or bestsellers.
* Use **News feed** to share the latest or trending articles from a registered feed.

## Prerequisites

* **Product recommendations:** a [Product Catalog](/product/content/product-catalog) with products to pull from.
* **News feed:** at least one feed registered under **Content > News Feeds**. The preset editor only picks a feed. It doesn't register one.

## How to create the preset

Start by creating a new preset of the type you need:

1. Open **Content > Push Presets**.
2. Click **Create content**.
3. Pick **Product recommendations** or **News feed**. See [How to create and manage push content](/product/content/push-presets/).

The editor adds a **Content source** section for the catalog or feed setup.

<Aside type="note">
If you create new content from a [Push element in Customer Journey](/product/customer-journey/journey-elements/channels/push/#select-or-create-push-content), it is always a **Push notification** preset. To build a **Product recommendations** or **News feed** preset, create it in **Content > Push Presets** as described above.
</Aside>

### Compose the message

Write the text that surrounds the products or articles:

1. Enter the push title, for example `New picks for you`. It is sent once.
2. Optionally enter a subtitle, for example `Fresh from the catalog`. It shows on iOS and macOS only.
3. Enter the push message as the intro before the rows, for example `Check out what just came back in stock:`.
4. In **Content source** further down, fill **Item template** (once per row) and **Outro** (once after the rows). See [Fill in the item template and outro](#fill-in-the-item-template-and-outro).

<img src="/build-push-content-from-a-feed-1.webp" alt="Push preset Title, Subtitle, and Push message fields filled in above the AI Composer toolbar"/>

<Aside type="note">
To insert catalog or feed values, use the buttons under **Item template** and **Outro**. **Personalization** above the message fields inserts user tags (like City), not catalog or feed values.

To use a catalog or feed value in **Title**, **Subtitle**, or **Push message**, type the Liquid placeholder yourself, for example `{{product.title}}`.

The push text is built in this order: the intro, then one row per item, then the outro. Each part starts on a new line. **Separator between items** only applies between the rows. See [Save the preset](#save-the-preset) for what happens if a placeholder isn't valid.
</Aside>

### Configure the content source

In **Content source**, set the rule for the type you picked when creating the preset.

#### Product recommendations

Choose which products the push can show:

1. Set **Items** to how many products to pull, from 1 to 3. It defaults to 3.
2. Set **Category** to filter which products the rule can pick from, or leave it as **Any category**.
3. Set **Strategy** to how products are picked.
4. Set **Sort by** (**Newest**, **Price, lowest first**, **Price, highest first**, or **Title**) to order the rows the rule returns.

<img src="/build-push-content-from-a-feed-2.webp" alt="Product recommendations Content source with Items 3, Strategy Back in stock, and Sort by Newest"/>

##### Catalog data vs. events from your backend

Some strategies work out of the box. Pushwoosh reads your product catalog and ranks automatically. Others need purchase and browsing data from your backend before they can rank anything.

**Work out of the box: catalog data only**

| Strategy | How it ranks |
| :---- | :---- |
| **Newest** | By date added to the catalog, newest first |
| **Back in stock** | By when the product came back in stock, most recent first |
| **Price drop** | By how recently the price dropped |

No setup needed beyond keeping your catalog in sync with Pushwoosh.

**Require product events**

These strategies rank on real user behavior: purchases, browsing history, co-purchase patterns. They won't work until Pushwoosh receives the right events from your app, website, or backend. See [How to set up product recommendations in email](/tutorials/product-guides/email-marketing-campaigns/how-to-set-up-product-recommendations-in-email/) for what to send.

| Strategy | How it ranks | What it needs |
| :---- | :---- | :---- |
| **Bestsellers, 7 days** | Products with the most units sold in the last 7 days | `PW_OrderCreated` and `PW_OrderUpdated` events, each with an `items` array listing what was purchased |
| **Bestsellers, 30 days** | Same, over a 30-day window | Same as above |
| **Bought together** | Products other users viewed, added to cart, or bought alongside a specific anchor product in the last 30 days | Product activity events, plus a device tag holding the anchor product ID, set in the **Anchor tag** field. Without a tag, Pushwoosh skips this strategy and falls back to **Category** and **Sort by**. |
| **Recently viewed** | Products that other users interacted with alongside the last 10 products this recipient interacted with, based on the last 30 days. Products the recipient already touched are left out. | Any event sent through the SDK or API with a `userId` and a product ID in `product_id`, `productId`, `item_id`, or `sku`, or in a `products` array. The ID must match the product `id` in your catalog. Without such events for the recipient, Pushwoosh skips this strategy and falls back to **Category** and **Sort by**. |

<Aside type="caution" title="Bought together and Recently viewed can't be previewed">
These two strategies are picked per recipient, so the editor has nothing to show for them. See [Preview the push](#preview-the-push).
</Aside>

#### News feed

Choose which articles the push can show:

1. Set **Articles** to how many articles to pull, from 1 to 3. It defaults to 3.
2. Set **Rubric** to filter which articles the rule can pick from, or leave it as **Any rubric**.
3. Set **Ranking**:
   * **Newest:** the latest articles by publish date.
   * **Trending:** the articles with the most recent opens on your site and clicks in your emails.
4. Set **Feed** to one of your account's registered feeds, or **All feeds** to pull from every feed. This panel only picks a feed. It doesn't register one; if none exist yet, register one on the [**News feeds**](/product/content/news-feeds/) page first.

<img src="/build-push-content-from-a-feed-3.webp" alt="Content source panel for a News feed preset with Articles set to 3, Ranking set to Trending, and Feed set to All feeds"/>

<Aside type="note" title="How Trending works">
Pushwoosh counts two signals: [`PW_SiteOpened`](/product/audience-data-and-segmentation/events/default-events/#pw_siteopened), which needs the Pushwoosh Web SDK on your site, and [`PW_EmailLinkClicked`](/product/audience-data-and-segmentation/events/default-events/#pw_emaillinkclicked), which fires automatically when you send emails through Pushwoosh. Without the Web SDK, **Trending** ranks on email clicks alone, a weaker signal. When there isn't enough recent activity, **Trending** falls back to **Newest**.
</Aside>

### Fill in the item template and outro

Set how each product or article looks in the message, and what comes after the list:

1. Fill in **Item template**. For Product recommendations, click **Title**, **Price**, **Category**, or **Link** to insert a Liquid placeholder like `{{product.title}}` at the cursor. For News feed, click **Title**, **Summary**, **Category**, **Author**, or **Link** to insert the matching article field. This block repeats once per row.
2. Choose **Separator between items**: **Comma** puts rows on one line, **New line** puts each row on its own line.
3. Fill in **Outro**. The same insert buttons are available here. This block is sent once, after the rows.
4. Optionally, set **Trim product title to** (or **Trim article title to**) a character count. Leave it at 0 for no trimming.

<img src="/build-push-content-from-a-feed-4.webp" alt="Item template with title and price placeholders, Outro text, and the Separator and Trim product title to fields below it"/>

<Aside type="note">
There's no insert button for a picture. Set the picture as the push banner in the next section.
</Aside>

### Show the leading item's picture as the banner

Add a picture to the push without uploading one:

1. Turn on **Use the leading item's picture as the banner** so the push uses the picture of the first product or article the feed returns.
2. Leave **Banner URL** alone. You don't need to open **Media content** or paste a URL. Pushwoosh sets the banner link when you save.

<img src="/build-push-content-from-a-feed-5.webp" alt="Toggle labeled Use the leading item's picture as the banner switched on in the push preset editor"/>

Once it's on, **Banner URL** under **Media content** shows the toggle's own name instead of an editable field.

<img src="/build-push-content-from-a-feed-6.webp" alt="Media content with Banner URL showing Use the leading item's picture as the banner instead of a URL"/>

### Set a fallback for when there's nothing to send

Under **If the feed returns nothing**, choose what happens when the rule finds no rows:

* **Do not send to this recipient:** Pushwoosh skips the send to that recipient instead of delivering an empty push.
* **Send this text instead:** send the fallback text you type in the field that appears.

<img src="/build-push-content-from-a-feed-8.webp" alt="If the feed returns nothing options with Do not send to this recipient selected as the choice"/>

### Point the on-click action at the leading item

Under **On-click actions**, use **Open the leading item's link**:

* **Leave it on:** the push opens the link of the first product or article the feed returns.
* **Turn it off:** set a [manual action](/product/content/push-presets/push-content-editor/#define-the-next-step-for-users-who-click-on-the-notification) yourself (deep link or web page).

<img src="/build-push-content-from-a-feed-7.webp" alt="On-click actions panel with Open the leading item's link enabled and the link shortening caution below it"/>

<Aside type="caution">
Turning this toggle on or off clears any manual action you had set. There is no way to restore it. If you turn the toggle off, set up the deep link or web page again from scratch. Link shortening stays off while the toggle is on, because the link is only known once the push renders.
</Aside>

### Preview the push

Check the preview. It fills the item rows with real products or articles, fetched the same way a send would fetch them — it doesn't show the intro or outro text.

<img src="/build-push-content-from-a-feed-9.webp" alt="Push preview panel showing a News feed push rendered with real article rows on a locked iOS screen"/>

If the preview is empty, read the note in the panel:

* For **Bought together** or **Recently viewed**, this is expected. Pushwoosh picks products per recipient, so there is nothing to preview in the editor.
* If Pushwoosh can't reach the catalog or the feed, fix that connection before you send.
* If the rule returned no products or articles, check [If the feed returns nothing](#set-a-fallback-for-when-theres-nothing-to-send). The preview may still say nothing is sent even when you chose **Send this text instead**. In that case the fallback text still goes out. Only **Do not send to this recipient** skips the send.

### Save the preset

Click **Save**. If saving is blocked, a placeholder in the title, subtitle, or message isn't valid. Fix it in the field and language Pushwoosh points to, then click **Save** again.

After you save, open the preset from the [list of available push content](/product/content/push-presets/manage-push-presets/).