# Flow Library

All of the example workflows provided in the Flow Library can be downloaded and [imported directly into your Shopify Flow app](https://help.shopify.com/en/manual/shopify-flow/manage/manage#import-a-workflow) to get started quickly.

### ⚠️ Important Setup Notes  ⚠️

Before importing and activating any of the example Flows, make sure to review the following requirements:

#### API Key Requirement

**All Flows must include your V2 API Key in the final step**.\
You can find this in the **Inveterate Dashboard** under:\
`Integrations → API Key`

#### Placeholder Logic

&#x20;**All Flows will contain placeholder values** (like tag names, spend thresholds, or messages)\
You’ll need to update these to reflect your store’s actual use case, naming conventions, and business logic.

***

## Adding customers to a free tier based on behavior

You will need to provide the segmentId for the Free membership tier that you are enrolling customers into in the final step of these Flows. This is an alphanumeric value that can be found at the end of the URL in the Inveterate Dashboard when viewing a specific tier.

<figure><img src="https://231758148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLjNbd2MWKOWi5A1HvQtH%2Fuploads%2F9yCHULYCE64twMrPKqow%2Ffreetierid.png?alt=media&#x26;token=884cda64-4624-443a-b9c5-fae7e3a4ce84" alt=""><figcaption><p>segmentId</p></figcaption></figure>

<figure><img src="https://231758148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLjNbd2MWKOWi5A1HvQtH%2Fuploads%2FHevsgPj8Y3HfL5rlDdEU%2Fv2apikey.png?alt=media&#x26;token=95f0d916-f52c-424c-8948-ea63383e45eb" alt=""><figcaption><p>Where to paste API Key and SegmentId</p></figcaption></figure>

* [Add email marketing subscribers to a Free Membership Tier](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/Add_Email_Subscribers_to_Free_Tier_Inveterate_Help_Docs.flow?v=1746629842)
* [When a customer is added to a specific segment, enroll them in a Free Membership tier.](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/When_a_customer_is_added_to_a_specific_segment_enroll_them_in_a_Free_Membership_tier_Inveterate_Help_Docs.flow?v=1746630529)
* [Add a customer to a Free Membership Tier by way of a customer tag](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/Add_customer_to_a_Free_Membership_Tier_by_way_of_a_customer_tag_Inveterate_Help_Docs.flow?v=1746631030)

***

### Issuing Store Credits to members based on behavior

{% hint style="warning" %}
Flows with dynamically calculated amounts use [Liquid Math filters](https://shopify.dev/docs/api/liquid/filters/times) in the final step to calculate a percentage of an order total. You will need to add the multiplier value (ex: times 0.1 to give 10% of the order value in credits) where the sample Flows currently have 0.0 as a placeholder.
{% endhint %}

<figure><img src="https://231758148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLjNbd2MWKOWi5A1HvQtH%2Fuploads%2FeYgOpmtgLWfJXHrxtFtw%2Fapiwithmath.png?alt=media&#x26;token=952f642b-bff0-43e2-92be-053d2306dae0" alt=""><figcaption><p>Where to paste API Key and where Liquid Math is calculated</p></figcaption></figure>

{% hint style="warning" %}
Flows that issue a static amount of credits will simply need to have the “amount” adjusted in the final step to the value you are looking to issue (ex: 10 for $10 in credits).
{% endhint %}

<figure><img src="https://231758148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLjNbd2MWKOWi5A1HvQtH%2Fuploads%2FBEu4hMqqsyz4vQ1PNHvn%2Funnamed.png?alt=media&#x26;token=be7b0f7d-76f5-405a-b706-dfc7115bb955" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
Caution: it is important to remember that these Flows will be issuing an additional amount of store credit than you typically offer. For example: if you typically offer 10% Credit for Orders and enable a Flow to dynamically issue 10% of an order total in credits, the member will receive 20% Credits for Orders in total: 10% from your benefit settings, and 10% from the Flow.
{% endhint %}

* [Issue a dynamic amount of credits based on Order Total](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/Issue_a_dynamically_calculated_amount_of_Credit_based_on_the_order_total_Inveterate_Help_Docs.flow?v=1746642501)
* [Issue a static amount of store credits when an order is placed ](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/Issue_a_static_amount_of_Store_Credit_when_an_order_is_placed_Inveterate_Help_Docs.flow?v=1746643803)
* [Issue a Dynamic amount of promotional Store Credits based on Order Total & Sales Channel](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/Issue_a_Dynamic_amount_of_promotional_Store_Credits_based_on_Sales_Channel_Inveterate_Help_Docs.flow?v=1746711114)&#x20;
* [Issue a static amount of additional promotional store credits based on Sales Channel ](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/Issue_a_static_amount_of_additional_promotional_store_credits_based_on_Sales_Channel_Inveterate_Help_Docs.flow?v=1746711389)
* [Issue a static amount of bonus store credits rewarding a high value order](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/Issue_a_static_amount_of_bonus_store_credits_rewarding_a_high_value_order_Inveterate_Help_Docs.flow?v=1746711725)
* [Issue a static amount of bonus store credits when a customer hits a lifetime spend threshold](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/Issue_a_static_amount_of_credits_when_a_customer_hits_a_lifetime_spend_threshold_Inveterate.flow?v=1746712186)
* [Issue a static amount of store credit if a member surpasses an amount of lifetime orders](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/Issue_a_static_amount_of_store_credit_if_a_member_surpasses_an_amount_of_lifetime_orders_Inv.flow?v=1746713187)
* [Issue a static amount of store credits when an order is placed based on UTM parameters](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/Issue_a_static_amount_of_store_credits_when_an_order_is_placed_based_on_UTM_parameters_Inveterate.flow?v=1746713641)
* [Issue a dynamic amount of store credits based on Order Total & UTM parameters](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/Issue_a_dynamic_amount_of_store_credits_based_on_Order_Total_UTM_parameters_Inveterate_Help_Docs.flow?v=1746713957)
* [Issue a static amount of store credits if a product is purchased from a specific collection](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/Issue_a_static_amount_of_store_credits_based_if_a_product_is_purchased_from_a_specific_collection_Inv.flow?v=1746714687)
* [Issue a static amount of store credits if a specific discount code is used](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/Issue_a_static_amount_of_store_credits_if_a_specific_discount_code_is_used_Inveterate_Help_Docs.flow?v=1746715151)
* [Issue a dynamic amount of store credits based on order total if a specific discount code is used](https://cdn.shopify.com/s/files/1/0669/6144/1012/files/Issue_a_dynamic_amount_of_store_credits_based_on_order_total_if_a_specific_discount_code_is_used.flow?v=1746715620)
