Shopify、Gmail、OpenRouter AIを使って「注文は今どこ?」メールを自動返信
中級
これは自動化ワークフローで、11個のノードを含みます。主にGmail, ShopifyTool, GmailTrigger, Agent, TextClassifierなどのノードを使用。 Shopify、Gmail、OpenRouter AIを使って「注文はどこ?」メールに自動返信
前提条件
- •Googleアカウント + Gmail API認証情報
- •Shopify Admin API認証情報
カテゴリー
-
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"meta": {
"instanceId": "e939740e5849b75378928948e0c0e635aac9d32ff7a80ab5668c18d7258e1e37",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "87dd714d-b830-4855-8e12-3926dae58c52",
"name": "テキスト分類器1",
"type": "@n8n/n8n-nodes-langchain.textClassifier",
"position": [
352,
416
],
"parameters": {
"options": {},
"inputText": "={{ $json.snippet }}",
"categories": {
"categories": [
{
"category": "WISmo",
"description": "all related to product orders like where is my order.when will my order come?."
},
{
"category": "other",
"description": "all the emails that are not belonged to WISmo are belonges to this category"
}
]
}
},
"typeVersion": 1.1
},
{
"id": "86b0fe3d-c2cf-4f78-8d33-191f9cd20709",
"name": "AIエージェント1",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
704,
160
],
"parameters": {
"text": "=subject of email:{{ $('Gmail Trigger').item.json.Subject }}\ncontent:{{ $('Gmail Trigger').item.json.snippet }}",
"options": {
"systemMessage": "=System Layer\nRole\n\nYou are a calm and friendly Shopify Customer Support Assistant.\nYour role is to help users with their Shopify orders by retrieving accurate information through available tools, answering clearly, and maintaining a warm, professional tone.\nYour goal is to make each customer feel reassured and supported while keeping sensitive data private.\n\nTools Available\n\nGet All Orders — Use this tool to retrieve all orders associated with the user’s account.\n\nGet Details About Specific Order — Use this tool to fetch detailed information about a particular order once you have the order ID.\n\nInstructions\n\nWhen the user asks about their order, first check if they provided an order ID.\n\nIf no order ID is provided, politely ask for it before proceeding.\n\nOnce you have the order ID:\n\nUse Get All Orders to retrieve the list of orders.\n\nMatch the provided order ID which is{{ $json.orderId }} with the correct record.\n\nThen, use Get Details About Specific Order to fetch complete details.\n\nNever show or mention internal IDs, system codes, or hidden parameters.\n\nBegin your response with a positive and reassuring tone (e.g., excitement about their order).\n\nEnd every interaction with a warm offer for further help.\n\nAlways use simple, friendly language and avoid technical jargon.\n\nExamples\nExample 1\n\nUser Input:\n\"Hi, can you tell me when my order #34891 will arrive?\"\n\nAgent Action:\n\nUse Get All Orders → find the record matching order ID #34891.\n\nUse Get Details About Specific Order for full details.\n\nExpected Output:\n\"That order looks great! Your package #34891 is currently being prepared and is expected to arrive by Thursday. I’ll keep an eye on it for you—want me to send tracking updates when it ships?\"\n\nExample 2\n\nUser Input:\n\"Hey, I can’t find my last order, can you check it for me?\"\n\nAgent Action:\n\nDetect missing order ID.\n\nPolitely ask the user to provide it.\n\nExpected Output:\n\"I’d love to check on that for you! Could you please share your order ID so I can find the exact details?\"\n\nFinal Notes\n\nAlways remain calm, empathetic, and positive.\n\nNever fabricate order information.\n\nIf data is missing, ask politely for clarification.\n\nToday’s date:{{ $now }}"
},
"promptType": "define"
},
"typeVersion": 2.1
},
{
"id": "815c73a7-43c4-44c2-a55f-c3f5e59bb748",
"name": "操作なし(何もしない)",
"type": "n8n-nodes-base.noOp",
"position": [
768,
560
],
"parameters": {},
"typeVersion": 1
},
{
"id": "4434d2c6-807d-4ad6-8595-3850c0bfa944",
"name": "Gmailトリガー",
"type": "n8n-nodes-base.gmailTrigger",
"position": [
128,
416
],
"parameters": {
"filters": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
}
},
"typeVersion": 1.3
},
{
"id": "e93041e8-5408-4c2a-8039-9163a3bb30cc",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
48,
48
],
"parameters": {
"width": 272,
"height": 320,
"content": "*watch this to set up first node [Gmail Trigger node]*\n[](https://youtu.be/SBPU5a8-8Xo?si=u7k_-FDyPQc0-7g1)\n✅ Make sure to configure authentication before running the workflow!"
},
"typeVersion": 1
},
{
"id": "cc797969-4212-47de-9dfe-b782375e1c6a",
"name": "OpenRouterチャットモデル",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
720,
384
],
"parameters": {
"model": "openai/gpt-5-nano",
"options": {}
},
"typeVersion": 1
},
{
"id": "8f7a0268-a87e-41af-b828-6dbc7c7eeafe",
"name": "注文詳細の取得",
"type": "n8n-nodes-base.shopifyTool",
"position": [
848,
384
],
"parameters": {
"options": {},
"operation": "getAll",
"returnAll": true,
"authentication": "accessToken"
},
"typeVersion": 1
},
{
"id": "760332de-1809-4705-8ce2-894f6a23ff09",
"name": "クエリへの返信",
"type": "n8n-nodes-base.gmail",
"position": [
1056,
272
],
"webhookId": "6d397924-ec1d-4020-91ef-b1b1a59d2f99",
"parameters": {
"message": "={{ $json.output }}",
"options": {
"appendAttribution": false
},
"emailType": "text",
"messageId": "={{ $('Gmail Trigger').item.json.threadId }}",
"operation": "reply"
},
"typeVersion": 2.1
},
{
"id": "26a0f7f4-e049-4838-876a-2a0045534145",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
448,
160
],
"parameters": {
"width": 208,
"height": 224,
"content": "## connect ai \n**step 1** : **open the [link](https://openrouter.ai/)** and sing up.\n\n**step 2** : get the api key,open openrouter node,click create credential, paste api in the openrouter node** "
},
"typeVersion": 1
},
{
"id": "e420674d-5fe9-4562-94c7-b7cf54fc1625",
"name": "付箋2",
"type": "n8n-nodes-base.stickyNote",
"position": [
960,
480
],
"parameters": {
"width": 352,
"height": 448,
"content": "## connect your shopify store. \n\n**In you shopify store** go to settings(bottom left ) > apps and sales channels > develop apps(top right) > create an app.\n\n**Then** give it a name (whatever) and click create app.\n\n**Now** go to Configure admin api scopes. select [read_orders]. and click save.\n\n**Then** go to overview tab and click install app.\n**then** get access token and copy it and paste it here in access token.\n**last** go to the shopify store tab and scroll down to get api secret key and copy-paste it here in api secret. and get you subdomain and paste it in subdomain.(in your url only get the part before myshopify.com for example, if the url is [https://oceanfront.myshopify.com/] then the subdomain is [oceanfront])."
},
"typeVersion": 1
},
{
"id": "7b876e10-ef6c-4284-8cc5-edc4525c5959",
"name": "付箋3",
"type": "n8n-nodes-base.stickyNote",
"position": [
80,
624
],
"parameters": {
"color": 2,
"width": 496,
"height": 80,
"content": " ## Contact [me](uzmannazlin76@gmail.com) if you want customizations.\nI will be happy if you give me feedbacks on this."
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"86b0fe3d-c2cf-4f78-8d33-191f9cd20709": {
"main": [
[
{
"node": "760332de-1809-4705-8ce2-894f6a23ff09",
"type": "main",
"index": 0
}
]
]
},
"4434d2c6-807d-4ad6-8595-3850c0bfa944": {
"main": [
[
{
"node": "87dd714d-b830-4855-8e12-3926dae58c52",
"type": "main",
"index": 0
}
]
]
},
"87dd714d-b830-4855-8e12-3926dae58c52": {
"main": [
[
{
"node": "86b0fe3d-c2cf-4f78-8d33-191f9cd20709",
"type": "main",
"index": 0
}
],
[
{
"node": "815c73a7-43c4-44c2-a55f-c3f5e59bb748",
"type": "main",
"index": 0
}
]
]
},
"8f7a0268-a87e-41af-b828-6dbc7c7eeafe": {
"ai_tool": [
[
{
"node": "86b0fe3d-c2cf-4f78-8d33-191f9cd20709",
"type": "ai_tool",
"index": 0
}
]
]
},
"cc797969-4212-47de-9dfe-b782375e1c6a": {
"ai_languageModel": [
[
{
"node": "86b0fe3d-c2cf-4f78-8d33-191f9cd20709",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
カスタマーサポートワークフロー
AIを活用したGmailカスタマーサポートで、OpenRouterとPineconeナレッジベースを統合
Gmail
Gmail Trigger
Agent
+
Gmail
Gmail Trigger
Agent
15 ノードEmilio Loewenstein
🛃 インボックスマネージャー
GPT-5、マルチエージェントAI、Pineconeデータベースを使った自動メール管理システム
If
Gmail
Switch
+
If
Gmail
Switch
41 ノードZawanah
チケット管理
AIメール分诊与GPT-4警报系统及Telegram通知
AIメール分诊与GPT-4警报系统及Telegram通知
If
Set
Gmail
+
If
Set
Gmail
104 ノードPeter Joslyn
サポート
AI驱动のメール分诊与自動回复系统,統合OpenAIエージェントとGmail
AI驱动のメール分诊与自動回复系统,統合OpenAIエージェントとGmail
If
Set
Gmail
+
If
Set
Gmail
68 ノードAbdullahi Ahmed
コンテンツ作成
高度なAIディスプレイ(AI開発者第14回集での発表)
高度なAIデモ(AI開発者第14回聚会で展示)
If
Code
Gmail
+
If
Code
Gmail
39 ノードMax Tkacz
ビルディングブロック
[AOE] 受信トレイとカレンダー管理エイジェント
メール、カレンダー管理を Gmail、Google Calendar、GPT-4o AI で自動化
Code
Gmail
Gmail Tool
+
Code
Gmail
Gmail Tool
38 ノードAOE Agent Lab
人工知能
ワークフロー情報
難易度
中級
ノード数11
カテゴリー-
ノードタイプ8
作成者
uzman
@uzman-aiAi Automation consultant specialist in shopify automation.Working on multiple tasks in shopify using advance AI tools.
外部リンク
n8n.ioで表示 →
このワークフローを共有