---
updatedAt: 2026-10-23T13:13:23.000Z
agentTools:
  projectIndex: https://docs.yespo.io/llms.txt
---

# Testing the Products Block

After [configuring the Products block](https://docs.yespo.io/docs/product-blocks), you can preview how the recommendations appear in the email on desktop and mobile devices.

## Testing Without a Product Feed

If you configured the [business profile](https://docs.yespo.io/docs/brand-kit-settings) but have not uploaded a product feed, the editor can display sample products generated from your website. They are intended for creating email content and do not replace real product data.

When you send a test email in this case, the system warns you that sample products are being used. The Products block is skipped, but the rest of the email is sent. Click **Set up product feed** in the warning to add real product data. The campaign launch flow also warns you when generated data is used and prompts you to upload a product feed.

You can test the block for an individual contact or a segment of contacts:

* If you are going to use the product block in a promo campaign, select a list of recipient contacts.
* If you are going to use the product block in a trigger campaign, select the dynamic segment on which the workflow with this email will be launched.

Consider an example of testing the **Products** block for **Abandoned view** workflow. 

## How to find out which segment is used in the workflow

1. Go to **Automation** → **Workflows**, select the workflow, and go to the **Start/Stop configuration**.

<Image src="https://files.readme.io/5860081ab8f1d9aecadaba6220c27ebf0568b53185fb0d953a04e158e8200ea9-image.png" alt="Automation menu with the Workflows tab highlighted, showing the Abandoned view workflow in the workflow list" align="center" width="80%" />

2. Copy the segment’s name or its **ID** in the **Segment** parameter.

<Image src="https://files.readme.io/ebf598f2d9e018d2242f0469af3b83f62270bff601bbb69e2e79cbd901f99737-image.png" alt="Start/Stop configuration panel with the Segment field highlighted, showing the Abandoned view segment and its ID" align="center" width="80%" />

## Block Testing

1. Open the email in the editor and click **View message**.

<Image src="https://files.readme.io/5197667099ee55eaeaa858a9371a5b114bb5616e65fd10663acad9ca00c14977-image.png" alt="Messages toolbar with the View message icon highlighted" align="center" width="80%" />

2. Click **Select contact**.

<Image src="https://files.readme.io/5ac477bd2d4b29f2b2800d1220f70d029a227e853572a805d121ff369d810fad-image.png" alt="Message preview screen with the Select contact link highlighted, showing product recommendation cards on desktop and mobile" align="center" width="80%" />

3. Select **Preview contacts from selected segment** and paste the name or ID of the segment into the search field.

<Image src="https://files.readme.io/1fc16480b03abc721664207acd64bd774ce6f42198bb641191b8c1d5349975aa-image.png" alt="Select contact to view dialog with Preview contacts from selected segment selected and the Abandoned view segment highlighted in the search results" align="center" width="80%" />

4. Select a contact for testing.

<Image src="https://files.readme.io/fb838b44e870062bacd31b16506a69e2a049a9749b66d229b5c0207e3959e4c4-image.png" alt="Select contact to view dialog listing contacts from the Abandoned view segment, with Person 2 selected" align="center" width="80%" />

The message content will be generated differently depending on the following cases:

* **There is data available to display for a contact**

In this case, you will see the block content as the selected contact will see it.

<Image src="https://files.readme.io/b3b93a3c2cff2e2a6bbba9af8aa9726284a1d08f66e247666460d344957386e2-image.png" alt="Message preview for Person 2 with the recommended product cards outlined in red on the desktop and mobile views" align="center" width="80%" />

* **There is no data available to display for a contact**

In this case, there are two possible options:

1. The preview will display a notification about the absence of recommendations, and the system will not send the email.

<Image src="https://files.readme.io/d7b17cd49c9bae78964b3145cec489a599ddc4c0a8bd7d2e3db9ba88b4c4e5fa-image.png" alt="Message preview showing a notification that there are no product recommendations for the selected contact and the email will not be sent" align="center" width="80%" />

2. The product block will be hidden, but the system will send the email.

<Image src="https://files.readme.io/46e7cc7dbdd866de3a6b234108df6e8dddd4f1ef7d88a07334dd391f7136e3fc-image.png" alt="Message preview with a notice that some product recommendations are missing for this contact, showing the empty recommendation block with a See all products button" align="center" width="80%" />

<Callout icon="📘" theme="info">
  ### Note

  The display of the first or second option depends on the [If there are no products to show](https://docs.yespo.io/docs/using-the-products-block#if-there-are-no-products-to-show) setting in the **Products** block.
</Callout>

If you deactivate the **Message for** switcher, the recommendations will always display bestsellers from the general recommendation algorithms.

<Image src="https://files.readme.io/b68e2be7df9aac43c39a626e0d7043f04590a60c3212d13723c99aed322da9dc-image.png" alt="Message preview with the Message for toggle switched off and highlighted, showing bestseller product recommendations instead of personalized ones" align="center" width="80%" />

Click the **Back** button to return to the editor window.

<Image src="https://files.readme.io/90f63ed4dd47fa9a06a0d7421b993d88f6f1e84d46c585d68e7fa4e6d0c7207e-image.png" alt="Message preview screen with the Back button highlighted in the top left corner" align="center" width="80%" />