Shopify Flowを利用して注文通知をSlackに飛ばす方法

How to Send Order Notifications to Slack Using Shopify Flow

Tsunライターチーム

For ecommerce sites run on Shopify, quickly checking and responding to new orders is essential. This guide explains how to use Shopify Flow to automate order notifications to Slack. With this setup, a notification is sent to the person in charge in real time every time an order comes in, helping improve operational efficiency.

What Is Shopify Flow

Shopify Flow is an automation tool provided by Shopify that helps streamline various tasks involved in running an online store. It's mainly used to automate everyday tasks such as inventory management, order processing, and customer support.

It was originally available only on the Shopify Plus plan, but a 2023 update made it available starting from the Basic plan as well.

The blog post below covers Shopify Flow in detail. Please use it as a reference.

How to Send Order Notifications to Slack

Output

Example of an order notification sent to Slack
Example of an order notification sent to Slack

With the setup described in this section, a notification will be sent to a Slack channel of your choice whenever an order is placed.

Step 1. Connect Flow and Slack

First, connect Flow and Slack.

(1) Go to Flow and click 'Create workflow'

(1) Go to Flow and click "Create workflow"

(2) For the action, select 'Send Slack message'  (3) In the 'Send Slack message' settings, click 'Install' inside the error section

(2) For the action, select "Send Slack message"

(3) In the "Send Slack message" settings, click "Install" inside the error section

(4) You'll be asked to grant access to Slack, so click 'Allow'

(4) You'll be asked to grant access to Slack, so click "Allow"

Step 2. Add FlowBot to the Channel You Want to Send Order Notifications To

Next, add the "FlowBot" app to the Slack channel you want to send order notifications to.

(1) Open Slack and open the channel you want to send order notifications to  (2) Click the '...' menu in the top right of the channel  (3) Click 'Edit settings'

(1) Open Slack and open the channel you want to send order notifications to

(2) Click the "..." menu in the top right of the channel

(3) Click "Edit settings"

(4) In the popup that appears, click 'Integrations'  (5) Click 'Add an App'  (6) Select the app named 'FlowBot'

(4) In the popup that appears, click the "Integrations" tab

(5) Click "Add an App"

(6) Select the app named "FlowBot"

Step 3. Get the Channel ID

Next, get the ID of the channel you want to send order notifications to.

 

(1) In the popup shown in Step 2, click 'Channel details'  (2) Copy the 'Channel ID' at the bottom of the popup

(1) In the popup shown in Step 2, click the "Channel details" tab

(2) Copy the "Channel ID" at the bottom of the popup

Step 4. Create the Workflow

Finally, create a workflow that sends a Slack notification whenever an order comes in.

(1) Return to the workflow creation screen opened in Step 1  (2) For the trigger, select 'Order created'  (3) For the action, select 'Send Slack message'  (4) In 'Channel, or member id', enter the channel ID you copied in Step 3  (5) In 'Message', enter the message content you want to send (see the sample message for reference)

(1) Return to the workflow creation screen opened in Step 1

(2) For the trigger, select "Order created"

(3) For the action, select "Send Slack message"

(4) In "Channel, or member id", enter the channel ID you copied in Step 3

(5) In "Message", enter the message content you want to send (see the sample message for reference)

Sample Message

🎉 A new order has come in! Please check the details.

{% assign jst_hour = order.createdAt | date: "%-H" | plus: 9 %} {% assign day_adjust = 0 %} {% if jst_hour >= 24 %}

{% assign jst_hour = jst_hour | minus: 24 %}

{% assign day_adjust = 1 %}

{% endif %} {% if day_adjust == 1 %}

{% assign jst_date = order.createdAt | date: "%Y-%m-%d" | date: "%s" | plus: 86400 | date: "%Y-%m-%d" %}

{% else %}

{% assign jst_date = order.createdAt | date: "%Y-%m-%d" %}

{% endif %} [Order Date/Time] {{ jst_date }} {{ jst_hour }}:{{ order.createdAt | date: "%M:%S" }} [Order Number] {{order.name}}

[Name] {{order.customer.lastName}} {{order.customer.firstName}}

[Items]

{% for lineItems_item in order.lineItems %}

・ {{lineItems_item.name}} x {{lineItems_item.quantity}}

{% endfor %}

[Total Amount] {{ order.totalPriceSet.shopMoney.amount | floor }} {{ order.totalPriceSet.shopMoney.currencyCode }}

[Tags] {% for tags_item in order.tags %}

・ {{tags_item}}

{% endfor %}

[URL] {% assign order_id = order.id | remove: "gid://shopify/Order/" %}https://admin.shopify.com/store/★enter your store ID here★/orders/{{ order_id }}

Summary

With the setup above, you can automatically send Slack notifications for new orders placed through Shopify.

This automation offers the following benefits:

  1. Prevents missed orders
  2. Enables fast order confirmation and processing
  3. Shares information with the whole team in real time
  4. Cuts down on manual checking by staff

After setting this up, it's a good idea to place a test order to confirm the notification arrives correctly. You can also customize the notification message content as needed.

Finally, the blog post below explains how to use Shopify Flow to enforce a "one per customer" purchase limit. Please use it as a reference.

👆️目次はShopifyアプリ「RuffRuff 目次作成」を利用

👆️Table of contents by the Shopify app RuffRuff Table of Contents

Back to blog
  • Shopifyに棚卸し機能が登場!管理画面・POSでの操作手順を解説

    Shopify Introduces Stock Counts: How to Use The...

    Tsun ライターチーム

    Use Shopify's built-in stock counts to count inventory by location. Learn how to create a count and approve stock discrepancies in the Shopify admin, and how to count stock in...

    Shopify Introduces Stock Counts: How to Use The...

    Tsun ライターチーム

    Use Shopify's built-in stock counts to count inventory by location. Learn how to create a count and approve stock discrepancies in the Shopify admin, and how to count stock in...

  • Shopify Flowで商品の価格・タグ・メタフィールドの変更を検知する方法

    How to detect changes to product prices, tags, ...

    Tsun ライターチーム

    Use Shopify Flow’s Product updated trigger to detect changes to prices, tags, and metafields. See how to tag products for review when prices change and how to test the workflow.

    How to detect changes to product prices, tags, ...

    Tsun ライターチーム

    Use Shopify Flow’s Product updated trigger to detect changes to prices, tags, and metafields. See how to tag products for review when prices change and how to test the workflow.

  • Shopifyのファイル管理を徹底解説|対応形式・容量上限・フォルダ整理の方法

    Shopify File Management: Formats, Storage Limit...

    Tsun ライターチーム

    Learn how to manage images, videos, and PDFs in the Shopify admin. Check supported file formats and plan limits, then learn to create folders, move files, search, and delete.

    Shopify File Management: Formats, Storage Limit...

    Tsun ライターチーム

    Learn how to manage images, videos, and PDFs in the Shopify admin. Check supported file formats and plan limits, then learn to create folders, move files, search, and delete.

  • Shopifyと連携できる外部AI7選!対応機能・接続方法を比較

    7 AI Tools That Connect to Shopify: Features an...

    Tsun ライターチーム

    Compare seven AI tools that connect to Shopify. See which ones fit tasks like adding product images, analyzing sales, and working with Microsoft 365, and check the permissions and limits...

    7 AI Tools That Connect to Shopify: Features an...

    Tsun ライターチーム

    Compare seven AI tools that connect to Shopify. See which ones fit tasks like adding product images, analyzing sales, and working with Microsoft 365, and check the permissions and limits...

  • Shopifyのストア分析・レポートを画像付きで解説|使い方からカスタマイズまで

    A visual guide to Shopify Analytics and reports...

    Tsun ライターチーム

    Learn how to break down sales and sessions in Shopify Analytics, compare data across the session measurement update, and use bubble maps, custom data, and annotations.

    A visual guide to Shopify Analytics and reports...

    Tsun ライターチーム

    Learn how to break down sales and sessions in Shopify Analytics, compare data across the session measurement update, and use bubble maps, custom data, and annotations.

  • Shopifyで1つのバリエーションに複数のバーコードを登録する方法

    Shopifyで1つのバリエーションに複数のバーコードを登録する方法

    Tsun ライターチーム

    Shopifyでは、1つの商品やバリエーションに最大20個のバーコードを登録できます。管理画面とCSVでの登録手順、SKUとの違い、Shopify POSでの活用方法、外部サービス連携時の注意点を解説します。

    Shopifyで1つのバリエーションに複数のバーコードを登録する方法

    Tsun ライターチーム

    Shopifyでは、1つの商品やバリエーションに最大20個のバーコードを登録できます。管理画面とCSVでの登録手順、SKUとの違い、Shopify POSでの活用方法、外部サービス連携時の注意点を解説します。

1 of 6
  • AI仮想顧客の改善ツール「SimGym」を使ったら売上はどうなった?実行から3か月後までの記録

    What Happened to Sales After Using SimGym, an A...

    テキサス・アユミ

    A record of trying SimGym on the miso specialty store ドットミソ, from checking the proposals through carrying out changes to the look-back three months later. It covers how the order...

    What Happened to Sales After Using SimGym, an A...

    テキサス・アユミ

    A record of trying SimGym on the miso specialty store ドットミソ, from checking the proposals through carrying out changes to the look-back three months later. It covers how the order...

  • 【ストアインタビュー後編】やりながら育てるShopify。「野菜をMOTTO」の試行錯誤:モンマルシェ株式会社 河野雄士さん

    [Store Interview, Part 2] Building and Growing ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." An in-depth look at our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its...

    [Store Interview, Part 2] Building and Growing ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." An in-depth look at our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its...

  • 【ストアインタビュー前編】 ECが主戦場でも、ECが目的ではない。「野菜をMOTTO」が貫くEC戦略:モンマルシェ株式会社 河野雄士さん

    [Store Interview, Part 1] Even When E-Commerce ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." Part 1 of our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its e-commerce...

    [Store Interview, Part 1] Even When E-Commerce ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." Part 1 of our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its e-commerce...

1 of 3
  • Our Editorial Process

    For readers new to e-commerce and Shopify, we write our articles with care to explain difficult commerce and marketing terms, along with how everything works from building a store through to selling, as “gently,” “clearly,” and “accurately” as we can.

    Learn more 
  • About the information on this site

    The information published here is based on Tsun Inc.’s own experience and research. While we make every effort to publish information that is as “current” and “accurate” as possible, we cannot fully guarantee its contents. Tsun Inc. accepts no liability whatsoever for any damages arising from this site. If you find an error in the information published here, we would be grateful if you would contact Tsun Inc.