> ## Documentation Index
> Fetch the complete documentation index at: https://docs.loveful.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopify Flow

> Start Shopify Flow workflows on wishlist saves, removes and shares, and add to or check a wishlist from a workflow.

Loveful adds triggers and actions to Shopify Flow, so you can build workflows around wishlists. They're on every plan and ready as soon as Loveful is installed: there's nothing to connect.

## Triggers

| Trigger | When it fires |
| - | - |
| **Item added to wishlist** | A customer adds a variant to their wishlist. |
| **Item removed from wishlist** | A customer removes a variant from their wishlist. |
| **Wishlist shared** | A customer shares their wishlist: a share link generated or reset, or the wishlist emailed to someone. |

Triggers fire for signed-in customers, because Flow needs the customer. Loveful only fires a trigger while a workflow that uses it is turned on.

**Wishlist shared** fires at most once an hour for the same customer, so sharing several times in a row starts the workflow once.

### What each trigger gives your workflow

**Item added to wishlist** and **Item removed from wishlist**:

| Field | What it is |
| - | - |
| Customer | The customer who added or removed the item. |
| Product | The product added or removed. |
| `Variant ID` | The variant's Shopify GID, like `gid://shopify/ProductVariant/123`. |
| `Wishlist total count` | How many items are on the customer's wishlist after the change. |

Because the customer and product come through as Shopify records, your workflow can use any of their fields, such as the customer's email or tags and the product's title.

**Wishlist shared**:

| Field | What it is |
| - | - |
| Customer | The customer who shared the wishlist. |
| `Share URL` | The public link to the shared wishlist. |
| `Item count` | How many items are on the shared wishlist. |
| `Method` | How it was shared: `link` or `email`. |

## Actions

### Add item to wishlist

Adds a variant to a customer's wishlist.

| Field | What to enter |
| - | - |
| Customer | The customer whose wishlist to add to. |
| **Variant ID** | The numeric variant ID or the Shopify variant GID. |

If the variant is already on the wishlist, nothing changes. A wishlist holds up to 128 items, and the action fails if it's full.

An item added this way is treated like a save on your storefront: it fires **Item added to wishlist** and reaches your [integrations](https://docs.loveful.app/user-guide/integrations.md).

### Is variant on wishlist

Checks whether a variant is on a customer's wishlist, and returns `is_on_wishlist` as true or false for the next steps in your workflow.

| Field | What to enter |
| - | - |
| Customer | The customer whose wishlist to check. |
| **Variant ID** | The numeric variant ID or the Shopify variant GID to check. |

> [!TIP]
>
> Pair **Is variant on wishlist** with a back in stock trigger to tell shoppers when a product they saved is available again.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.