> For the complete documentation index, see [llms.txt](https://docs.giftcardfactory.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.giftcardfactory.app/integrations/shopify-flow/triggers.md). Agents can also search and read this documentation through its [MCP server](https://docs.giftcardfactory.app/~gitbook/mcp).

# Triggers

Gift Card Factory adds these triggers to Shopify Flow:

* **Bulk Operation - Gift Cards** - Fires when a gift card is created by Bulk Send, Import from file, Autogenerate or Claim links.
* **Bulk Operation - Store Credit** - Fires when store credit is issued by Store Credit Bulk Add.
* **Bulk Operation - Discount Code** - Fires when a discount code is created by Discount Codes Bulk Create.
* **Gift Card Reminder** - Fires for gift cards matching reminder campaign criteria.
* **Gift Card Reward** - Fires when a gift card is created by a Gift Card Rewards campaign.
* **Scheduled Gift Card** - Fires when a gift card is created by a Scheduled Gift Cards campaign.
* **Gift Card Expired** - Fires when a gift card expires.

You can select the trigger anywhere the app shows the dialog in the screenshot below.

<figure><img src="https://2895247924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcsKliv3CuXU7kN4gxX9B%2Fuploads%2Fgit-blob-bfa30dc72ac3f9c7a0d7317cce719cb67a4c886e%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

When selected, the app will send the data to Shopify Flow. Next, you can configure further actions—for example, add tags to the gift-card customer, send a gift-card email, or send internal emails any time a gift card is issued.

### Bulk Operation - Gift Cards

This trigger is used any time a gift card is created via one of the app’s Bulk Operation features: Bulk Send, Import from file, Autogenerate or Claim links. For Claim links, it fires when a customer claims a link and enters an email address, with **Shopify Flow** selected as the gift card email sender; the operation type is `GIFT_CARD_CLAIM_LINKS`.\
\
The operation type is sent as part of the trigger payload. By using if conditions, you can filter out operations you don't need to respond to and take action only when a certain operation takes place. For example, you might only respond to a gift card created in Bulk Send with the following flow:<br>

<figure><img src="https://2895247924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcsKliv3CuXU7kN4gxX9B%2Fuploads%2Fgit-blob-abdca31ef036a52894d91cf1f49b6658908950bd%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### Gift Card Reminder

Triggers any time a gift card is found for which the campaign conditions are met. For this trigger to work, you need to first configure the Gift Card Reminders campaign.

Next, you can respond to the trigger and take appropriate action. Gift card data is sent as part of the trigger payload.

{% hint style="info" %}
Only the last four digits of the gift card are included in the trigger payload.
{% endhint %}

### Gift Card Reward

Triggers any time an order meeting Gift Card Rewards campaign conditions is placed. For this trigger to work, you need to first configure Gift Card Rewards campaign.

You can access all the gift card data (including the gift card code) through the trigger payload.<br>

<figure><img src="https://2895247924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcsKliv3CuXU7kN4gxX9B%2Fuploads%2Fgit-blob-829eca607b0c0d36ced4b6d131c85747ec91ffa1%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### Bulk Operation - Store Credit

Triggers any time store credit is issued by **Store Credit Bulk Add**. The customer, the issued store credit and the bulk operation are sent as part of the trigger payload.

### Bulk Operation - Discount Code

Triggers any time a discount code is created by **Discount Codes Bulk Create**. The customer, the discount and the bulk operation are sent as part of the trigger payload.

### Scheduled Gift Card

Triggers any time a gift card is created by a Scheduled Gift Cards campaign. For this trigger to work, you need to first configure a Scheduled Gift Cards campaign. The customer and the gift card are sent as part of the trigger payload.

### Gift Card Expired

Triggers for every gift card that expires. The app checks for newly expired gift cards every 5 minutes once a workflow using this trigger is turned on. Pair it with the **Extend and resend expired gift cards** template to win back unused balances.
