For the complete documentation index, see llms.txt. This page is also available as Markdown.

Using Catalogs

Learn how to load catalog data into a message to personalize it.

This feature loads a catalog you have set up in advance into the message body at send time. Data that many users share — such as product information, store lists, and content metadata — can be managed separately from user properties.

Before you start

To use a catalog in a message, the catalog and its data must be ready first.

For catalog creation and item uploads, see Catalog Management.

Basic Syntax

{% catalog_items <catalog_name> <item_id> [item_id] [item_id] %}

The lookup result is stored in the items variable, which you then use in the body as items[index].field_name.

{% catalog_items Games 1234 %}{{ items[0].title }} is now {{ items[0].price }} won
→ Super Mario is now 49000 won

Parameter Details

Parameter
Description
Required

<catalog_name>

Name of the catalog to look up

✅

<item_id>

ID of the item to look up. Separate with spaces, up to 3

At least 1 required


Supported Features

Looking up multiple items — up to 3 in a single tag

{% catalog_items Games 1234 1235 1236 %}{{ items[0].title }}, {{ items[1].title }}, {{ items[2].title }}

Using personalization variables for item IDs

Applying filters

Using values that match the field type — values are passed through as-is according to the catalog field type

Field Type
Value in the Message

STRING

String

NUMBER

Number (calculations and filters can be used)

BOOLEAN

true / false (can be used in conditionals)

TIME

ISO-8601 string (e.g., 2026-08-20T00:00:00Z)

Referencing the item ID itself — {{ items[0].id }}


Response Handling Rules

Situation
Behavior

Successful lookup

The items are stored in items

The requested item is not in the catalog

Only that position is empty; the other items are unaffected

The lookup fails (a temporary error, etc.)

Everything is empty

The variable in the item ID position is empty

Only that position is empty

The catalog name is empty

The entire tag is skipped (items is empty)

Four or more item IDs are specified

The entire tag is skipped

Positions do not shift when an item is missing

The order and position of the requested item IDs are preserved as-is. Even if the item in the middle is deleted, the index of the items after it is not pulled forward.

items[2] is always the third item you specified. When one item is deleted, another product's information is never displayed in its place.


Error Handling and Defensive Patterns

Because a value may be empty, we recommend the following two approaches.

1. Set a fallback value — the default filter

2. Branch on a condition — the if statement

When you use multiple items, you can check each position separately.

If you need the total count, use the size filter. Empty positions are included in the count.


Practical Examples

1. Introducing a single product

2. The product the user last viewed

3. Announcing the ordered product with an event property

4. Three products at once

5. Branching on a BOOLEAN field

6. Using an image URL

An image URL field can also be stored and used as a string. When you enter it in an image area, do not put a space or a line break between the tag and the URL output.

Last updated