> For the complete documentation index, see [llms.txt](https://help.dollarlabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.dollarlabs.io/dollarback-store-credit/notifications/shopify-flow.md).

# Shopify flow

Shopify Flow is a powerful automation tool that allows you to trigger notifications based on specific events. In this guide, we’ll walk you through the process of setting up Shopify Flow to send store credit notifications in Dollarback.

{% embed url="<https://youtu.be/FjzSgRjW3mk>" %}

***

### Step 1: Disable Existing Notifications (optional)

Before setting up notifications using Shopify Flow, it's good practice to disable other notification methods to avoid duplicate messages.

1. Navigate to your **Dollarback** dashboard.
2. Go to the **Notifications** section.
3. Disable all existing notifications by marking them as **Disabled**.
4. If you have an integration with **Klaviyo**, disable it as well to prevent multiple notifications.

### Step 2: Enable Shopify Flow Integration

Once you've disabled other notification systems, you can enable Shopify Flow to manage notifications.

1. Navigate to **Dollarback Store Credit**.
2. Go to the **Integrations** tab.
3. Find **Shopify Flow** and click **Enable**.

### Step 3: Create a New Workflow in Shopify Flow

With the integration enabled, it's time to create a workflow in Shopify Flow.

1. Open **Shopify Flow** in your Shopify admin panel.
2. Click **Create Workflow**.
3. Choose a trigger:
   * Select **Store Credit Credited** or **Store Credit Redeemed** depending on your use case.

### Step 4: Set Up an Email Notification

1. Add an **Action** to the workflow.
2. Select **Send Email**.
   * If you use **Shopify Email**, it will appear as an option.
   * For demonstration purposes, we will use an internal email.
3. Enter the recipient email (for testing purposes, enter your own email address).
4. Customize the email template by adding variables:
   * Example: "Hi {{ customer.first\_name }}, you have received {{ formatted\_amount }} for shopping with us."
5. Click **Turn On** to activate the workflow.

### Step 5: Test the Workflow

To ensure that the workflow is working correctly, create a test transaction.

1. Create a **Draft Order** in Shopify (or trigger it from checkout).
2. Select a product (e.g., Hydrogen, Australia Uprising).
3. Assign a customer to the order.
4. Collect the payment and complete the order.
5. Once the order is placed, the **store credit notification** will be triggered.
6. Check your email to confirm that the notification was sent.
