Use this article when a recommendation block shows No items returned for this preview customer, or returns fewer items than you expect. Work through the checks in order, and preview the block again after each change.
Check the preview customer
The preview shows the items for one customer, the one selected next to Previewing for: on the scheme page. Event-based inputs read that customer's events within the time window you set in From Past and To Past.
To check the block with real data, select a preview customer who has the input events in that time window. For more information, see Configure Inputs for Recommendation Blocks.
Check that the items are available
When Item is active and available is selected, the block recommends only items that the catalog marks as available. Items that are out of stock are left out.
Blueshift sets an item to out of stock when the current date is outside the range of its start_date and end_date. An item with a start_date in the future counts as unavailable. You can also set availability through the catalog's Availability mapping.
To fix it, do one of the following:
Check the start_date, end_date and availability values of the items you expect to see, and correct them in the catalog.
Clear Item is active and available if the block should also recommend items that aren't available.
For more information, see Import Catalog Data.
Check the item filters
Filters remove every item that doesn't meet them. An item must match every filter in Matches All of These and at least one filter in Matches Any of These. Items that match a filter in Matches None of These are left out.
To find the filter that empties the block, remove the filters one at a time and preview after each one. To filter on the category attribute, use the contains operator, not equals. The catalog stores the category as an array, so equals doesn't match.
Check the exclusions and limits
In Item Exclusions, these rules remove items:
Event Exclusions: items from the event selected in Event Name are left out, within that rule's own From Past and To Past window. For example, a checkout event leaves out items the customer already bought.
Messaging Exclusions: with Messaging Action set to sent, the default, an item isn't recommended to the customer more than the number of times in Min number of previous messages within the rule's time window.
In Item Filters > Additional Restrictions, these settings remove items or cap how many the block returns:
Exclude Items from Previous Block: items already recommended in an earlier block of the same scheme are left out. This setting is selected by default.
No more than and Per: the block returns at most that number of items for each value of the attribute, for example 1 item per category.
To check which setting removes the items, clear or widen one setting at a time and preview again. For more information, see Exclude & Filter Items in Recommendation Blocks.
Check the output settings
In Output, check these settings:
Item Count: the number of items the block includes.
Parent Items: when selected, the block returns the parent items instead of the child items.
For more information, see Control Output & Ranking in Recommendation Blocks.
When an empty block stops a message
Two settings skip customers whose recommendation blocks are empty:
Fail if empty on a block: customers for whom this block returns no items aren't messaged.
Do not message user if recommendation blocks are empty in the template's Campaign Behavior settings: the options are Any block is empty, All blocks are empty and Message anyway. When you add recommendations to a template, Any block is empty is selected by default.
To send the message even when a block is empty, clear Fail if empty on every block and select Message anyway. Some campaign summaries show a Missing Products column, which counts customers who were skipped because their recommendations had bad or missing products. For more information, see Troubleshooting Campaigns.
Still empty
To have Blueshift investigate a block that still returns no items, contact Blueshift Support at [email protected]. For the details to include, see Control Output & Ranking in Recommendation Blocks.
