# Triggers

There are 3 different triggers you can use in Shopify Flow to extend the functionality of the app. These are:

* **Bulk Operation** - Fires when a gift card is created via bulk actions.
* **Gift Card Reminder** - Fires for gift cards matching reminder campaign criteria.
* **Gift Card Reward** - Fires when an order meets rewards campaign criteria.

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

<figure><img src="/files/uRhWyQWqdWZmWQc8T3fz" 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

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, Auto-generate, or Bulk Update.\
\
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="/files/rYnNTNTeyswnRMRAp1DM" 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="/files/CxqM8aQMBrHpl9F8DxHe" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.giftcardfactory.app/integrations/shopify-flow/triggers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
