Basic Operation and Settings

Basic Operation and Settings

VIP – 会員プログラムのポイント有効期限切れの通知をメール/LINEで配信する

  • Update Date:

StoreCRMでは、Shopify Flowを活用することで、ShopifyアプリVIPの「ポイントの有効期限が切れる」をトリガーに、LINEまたはメールを送信できます。
有効期限切れの30日前など、任意のタイミングでリマインド配信が可能です。

Examples of measures that can be implemented

  • あと30日でポイントの有効期限が切れることをLINEでお知らせする
  • あと30日でポイントの有効期限が切れることをメールでお知らせする
  • 同じFlow内でLINEとメールを併用して配信する

Send a line from StoreCRM Fat days before point expiration

Create a Flow in Shopify Flow starting with VIP "Points Expire".

次にStoreCRMのアクションを選択します。StoreCRMのLINEを送信できるアクションは以下の3つが用意されています。

  • LINE Send StoreCRM Message (LINEでStoreCRMで定義されているメッセージを送る)
  • LINE: Send Flex Message (LINEでFlexメッセージを送る)
  • LINE: Send Text message (LINEでTextメッセージを送る)

In this case, we will use "LINE: Send Flex Message (Send Flex Message on LINE)" to make use of the variable given by the VIP's "Point Expiration" trigger in the LINE message.

Of the three setting items in the "LINE: Send Flex Message" action, the alternative text and the Flex Message content are required fields.

The content of Flex Message must be entered in json format. json format code generated by Flex Message Simulator, for example, can contain variables given by the "Customer points changed" trigger, so that instead of text, the current The json format code generated by Flex Message Simulator or similar can be used to display the current number of points, etc., instead of the text.

{
  "type": "bubble", "body": {
  "body": {
    "type": "box", "layout": "horizontal", "body": { "type": "bubble", "body": {
    "layout": "horizontal", { "contents": ["text"]: ["text
    "contents": [
      {
        "type": "text", "text": "{{expiresIn}} days later
        "text": "Points that expire after {{expiresIn}} days"
      },
      {
        "type": "text", "text".
        "text": "{{point}}"
      }
    ]
  }
}

The contents of the Flex Message described here are as above.

It is recommended to save the configured Flow and check the actual operation.
If the line is sent as shown in the image above, it is working fine.

ポイント有効期限切れの〇日前にStoreCRMからメールを送る

Create a Flow in Shopify Flow starting with VIP "Points Expire".

次にStoreCRMのアクションを選択します。StoreCRMのメールを送信できるアクションは以下のの3つが用意されています。

  • Email Message: Send Email (StoreCRMで定義済みメールを送る)
  • Email HTML: Send Email (HTMLメールを送る)
  • Email MJML: Send Email (MJMLメールを送る)

今回は、メッセージ内でVIPの「ポイントの有効期限が切れる」トリガーから与えられる、変数を活用したいため、「Email HTML: Send Email (HTMLメールを送る)」を利用して説明を進めます。

Email HTML: Send Email では、次の項目が必須です。

  • 件名
  • HTML本文

HTML本文にトリガー変数を埋め込むことで、LINEと同様に可変情報を表示できます。

<h2>ポイント有効期限のお知らせ</h2>
<p>{{expiresIn}}日後に、{{point}}ポイントが失効予定です。</p>
<p>期限前にぜひご利用ください。</p>

任意の設定項目としては以下の項目があります。

  • ヘッダー・フッターをつけない・・・StoreCRM側で設定しているヘッダー・フッターをつけて送るかの設定項目
  • メールマーケティングの許可がないお客様にも送付する・・・ONにすると、Shopifyでメールマーケティング未許諾の顧客にも送信します。宣伝目的では使用せず、重要なお知らせなど非宣伝の連絡にのみ利用してください。
  • 任意のメールアドレス・・・テスト用です。メールアドレスを入れるとすべての通知が入力したメールアドレスに届きます。動作確認時に入力してください。
  • 任意の顧客ID・・・テスト用です。メールアドレスを入れるとすべての通知が入力した顧客に紐づくメールアドレスに届きます。動作確認時に入力してください。

各項目の設定が完了したら、[ワークフローをオンにする]を選択します。
It is recommended to save the configured Flow and check the actual operation.

上の画像のようにメールが送信されていれば問題なく動作しています。

TOP
en_USEnglish