# Look up an order or product in a journey

> Find the product a customer viewed or asked about, by SKU or name, and use its title, price, image and link in a WhatsApp message.

URL: https://docs.lemuai.com/recipes/order-lookup-in-journey
For: Everyone
Checked against LemuAI app version 1.0.12
Related: [AI, Data and Ticket Steps](https://docs.lemuai.com/automation/more-steps), [Catalog](https://docs.lemuai.com/records/catalog), [Journey Nodes & Triggers](https://docs.lemuai.com/automation/nodes-and-triggers)

At the end you'll have a journey that finds a product in your catalog (by ID, SKU or name) and sends a WhatsApp message with its name, price and link. The same pattern works for any catalog or record type, like orders or loans.

## Before you start

- A [catalog](https://docs.lemuai.com/records/catalog) under **Audience → Catalog**, for example the **Products** catalog synced from Shopify, with fields like `sku`, `title`, `price`, `url`, `image_url`.
- An approved WhatsApp template, for example: "Still thinking about {{1}}? It's ₹{{2}} today: {{3}}"

## Two ways to get the value to look up

| Journey starts from | Where the product comes from |
|---|---|
| An event about the product (`ViewContent`, `AddToCart`) | The event itself: `{{context.content_ids}}` or `{{context.product_id}}` |
| Something else (entering a segment, a schedule) | A **Look up events** step first: the product they viewed most |

## Steps

**Step: Trigger**

**Engage → Journeys → New Journey**, trigger **Enters or leaves a segment** (for example "Viewed but didn't buy, last 7 days").

**Step: Find the product they viewed most**

Add **Look up events**: event `ViewContent`, look back 7 days, group by `content_ids`. **found** → next step; **not_found** → **End**.

**Step: Look it up in the catalog**

Add **Catalog lookup**: catalog `Products`, key `{{context.events.top.value}}`. Under **Find the item by**, tick `sku`, then `group_id` if your events send SKUs or style codes instead of product IDs. **found** → next; **not_found** → **End**.

**Step: Send it**

Add a **WhatsApp** step: `{{1}}` = `{{context.catalog_item.title}}`, `{{2}}` = `{{context.catalog_item.price}}`, `{{3}}` = `{{context.catalog_item.url}}`.

**Step: Go live**

Check **Track link clicks** is on in the journey's **Settings** (it is by default), then **Go live**.

## Find by name instead of ID

If customers or events give a product name (for example a WhatsApp reply "Blue kurta" extracted by an **AI step**), set **Find the item by** to `title`. Matching is exact but ignores case, so "blue kurta" finds "Blue Kurta". The run shows which column matched (`matched_field`).

## Check it worked

View a product on your site with your phone known (logged in or after a message click), join the segment, and check **Journey Runs**: the Catalog lookup step shows **found** and the item.

## Common problems

| What you see | Fix |
|---|---|
| Catalog lookup goes to **not_found** | The value doesn't match exactly in the chosen columns. Compare the event's value with the catalog's `sku` / key; add another column under **Find the item by** |
| Price shows empty | The catalog item has no `price` field or it's empty |
| Look up events goes to **not_found** | The contact has no `ViewContent` events in the window. Check the [Event Log](https://docs.lemuai.com/event-log/overview) |
