# 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.


---

# 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://help.dollarlabs.io/dollarback-store-credit/notifications/shopify-flow.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.
