カスタマーサポート

上級

これはContent Creation, Multimodal AI分野の自動化ワークフローで、21個のノードを含みます。主にGmail, GoogleDrive, GmailTrigger, Agent, GoogleDriveTriggerなどのノードを使用。 自動Gmail顧客サポート(GPT-4知識ベースエージェント)

前提条件
  • Googleアカウント + Gmail API認証情報
  • Google Drive API認証情報
  • OpenAI API Key
  • Pinecone API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "udLJ2xzM6OGUAEQn",
  "meta": {
    "instanceId": "6f81894254c2852bfe28b07fc1f6652b03481706dd714d6609cc88e8521956d2",
    "templateCredsSetupCompleted": true
  },
  "name": "Customer Support",
  "tags": [],
  "nodes": [
    {
      "id": "9f52a98d-5268-4e3a-97f3-5b8719e5aaff",
      "name": "テキスト分類器",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        192,
        64
      ],
      "parameters": {
        "options": {},
        "inputText": "={{ $json.text }}",
        "categories": {
          "categories": [
            {
              "category": "Customer Support",
              "description": "An email that is related to helping out a customer. They may be asking questions about our policies or questions about product or services."
            },
            {
              "category": "Other",
              "description": "Any email is not customer support related."
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "3ca0071b-686d-4dea-84fd-6ed71bdfa14c",
      "name": "OpenAI チャットモデル",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        160,
        240
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini",
          "cachedResultName": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "6ljetIXS9Oig1w9v",
          "name": "OpenAi cred"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "7157699d-02ec-4d0e-b676-687fb0b25f75",
      "name": "AIエージェント",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        624,
        -16
      ],
      "parameters": {
        "text": "={{ $('Gmail Trigger').item.json.text }}",
        "options": {
          "systemMessage": "=# Overview\n\nYou are a customer support agent from Blueproof. Your role is to reply to incoming emails using your knowledgebase tool.\n\n## Output\nonly output the email body\n\n## Instructions\n-sign off as Yasser @ Blueproof\n\n## Final Notes\nif you didn't found the answer in your knowledgebase do not come up with hallusinated answer, just tell the user that you don't have the information in a proper way."
        },
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "7bfeebf7-120a-4785-a4a5-f6cd2ef764b8",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        864,
        336
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "6ljetIXS9Oig1w9v",
          "name": "OpenAi cred"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "b58e1ae7-70ab-4aa2-861e-b6177b7f2dc2",
      "name": "ナレッジベース",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        784,
        192
      ],
      "parameters": {
        "mode": "retrieve-as-tool",
        "options": {
          "pineconeNamespace": "FAQ"
        },
        "pineconeIndex": {
          "__rl": true,
          "mode": "list",
          "value": "n8n",
          "cachedResultName": "n8n"
        },
        "toolDescription": "call this tool to access knowledgebase"
      },
      "credentials": {
        "pineconeApi": {
          "id": "4rb1dBTjp60vz23a",
          "name": "PineconeApi account"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "b1ba03dc-9d94-4233-850f-c67586428e74",
      "name": "メッセージに返信",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1184,
        -16
      ],
      "webhookId": "d3cbbce9-b00e-45ce-bbdd-4d641b52bffc",
      "parameters": {
        "message": "={{ $('AI Agent').item.json.output }}",
        "options": {
          "appendAttribution": false
        },
        "emailType": "text",
        "messageId": "={{ $('Gmail Trigger').item.json.id }}",
        "operation": "reply"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "FfZDgV0aNlveNxvt",
          "name": "Gmail cred"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "c3810836-c0b5-448b-ab0c-7167b6ba3584",
      "name": "メッセージにラベルを追加",
      "type": "n8n-nodes-base.gmail",
      "position": [
        976,
        -16
      ],
      "webhookId": "d2bc9b4e-a817-4c44-aded-0d0c60da654c",
      "parameters": {
        "labelIds": [
          "IMPORTANT"
        ],
        "messageId": "={{ $('Gmail Trigger').item.json.id }}",
        "operation": "addLabels"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "FfZDgV0aNlveNxvt",
          "name": "Gmail cred"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "8fb33be4-21d9-4a49-9f1f-e3c89c49540e",
      "name": "操作なし、何もしない",
      "type": "n8n-nodes-base.noOp",
      "position": [
        384,
        304
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9339887b-461b-4a3e-a483-1f29dd446b7a",
      "name": "Google ドライブトリガー",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -208,
        -592
      ],
      "parameters": {
        "event": "fileCreated",
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "triggerOn": "specificFolder",
        "folderToWatch": {
          "__rl": true,
          "mode": "list",
          "value": "1Z4mmP2gGcUAIHoKzN0Cjuf9r23bCx8fl",
          "cachedResultUrl": "https://drive.google.com/drive/folders/1Z4mmP2gGcUAIHoKzN0Cjuf9r23bCx8fl",
          "cachedResultName": "n8n"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "ni1eRKNagQs3faSo",
          "name": "Google Drive"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "73189044-3324-4dff-a8cc-9174900cc0fb",
      "name": "ファイルをダウンロード",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        0,
        -592
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.id }}"
        },
        "options": {},
        "operation": "download"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "ni1eRKNagQs3faSo",
          "name": "Google Drive"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "009d65e5-4f02-460a-a395-2fa8eea7a70b",
      "name": "Pinecone ベクトルストア",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        208,
        -592
      ],
      "parameters": {
        "mode": "insert",
        "options": {
          "pineconeNamespace": "FAQ"
        },
        "pineconeIndex": {
          "__rl": true,
          "mode": "list",
          "value": "n8n",
          "cachedResultName": "n8n"
        }
      },
      "credentials": {
        "pineconeApi": {
          "id": "4rb1dBTjp60vz23a",
          "name": "PineconeApi account"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "731aa45f-e2d2-405e-aebf-d796830d9ebb",
      "name": "デフォルトデータローダー",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        336,
        -416
      ],
      "parameters": {
        "options": {},
        "dataType": "binary",
        "textSplittingMode": "custom"
      },
      "typeVersion": 1.1
    },
    {
      "id": "26a54599-e00a-40c9-8b6f-8f98ec1431a7",
      "name": "再帰的文字テキスト分割器",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        416,
        -240
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "f7447b47-e6fa-4a2f-a7c9-c313eea0bcb8",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        160,
        -368
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "6ljetIXS9Oig1w9v",
          "name": "OpenAi cred"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "f0658841-a213-4d9a-b87d-0174f2dc4bfa",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -304,
        32
      ],
      "parameters": {
        "width": 256,
        "content": "## AI Gmail Customer Support \nThis template auto-replies to customer emails in Gmail using AI + your knowledge base."
      },
      "typeVersion": 1
    },
    {
      "id": "792141cb-cf13-4515-bd10-db61b9bf479d",
      "name": "Gmail トリガー",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        0,
        64
      ],
      "parameters": {
        "simple": false,
        "filters": {},
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "FfZDgV0aNlveNxvt",
          "name": "Gmail cred"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "a6b06e9a-ef64-4c29-aad8-3346eb1f448b",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -176,
        -336
      ],
      "parameters": {
        "color": 4,
        "height": 192,
        "content": "## Auto Update Knowledge Base \nWhen you add a file to a specific folder in your google drive it automatically update the vector database and add the file to the knowledge base."
      },
      "typeVersion": 1
    },
    {
      "id": "37d7d970-e076-4eb1-a1e6-62fc155062fc",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -256,
        -624
      ],
      "parameters": {
        "width": 848,
        "height": 528,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "48575e3f-6579-4a29-a56a-ab0c8c2e6d3e",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        -32
      ],
      "parameters": {
        "width": 352,
        "height": 80,
        "content": "## Classification \nAI checks if the email is customer support or not."
      },
      "typeVersion": 1
    },
    {
      "id": "7854ddf5-7119-4e0d-abcd-459611f97278",
      "name": "OpenAI チャットモデル1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        576,
        192
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "6ljetIXS9Oig1w9v",
          "name": "OpenAi cred"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "5d60f0df-53c7-4a1e-b3bb-c1869dd14401",
      "name": "付箋4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        -128
      ],
      "parameters": {
        "width": 208,
        "height": 96,
        "content": "## AI Agent \nSearches your knowledge base and drafts a reply."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "4c6edfde-4bb9-4b1d-ac1a-a4b62e359bee",
  "connections": {
    "7157699d-02ec-4d0e-b676-687fb0b25f75": {
      "main": [
        [
          {
            "node": "c3810836-c0b5-448b-ab0c-7167b6ba3584",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "73189044-3324-4dff-a8cc-9174900cc0fb": {
      "main": [
        [
          {
            "node": "009d65e5-4f02-460a-a395-2fa8eea7a70b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "792141cb-cf13-4515-bd10-db61b9bf479d": {
      "main": [
        [
          {
            "node": "9f52a98d-5268-4e3a-97f3-5b8719e5aaff",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b58e1ae7-70ab-4aa2-861e-b6177b7f2dc2": {
      "ai_tool": [
        [
          {
            "node": "7157699d-02ec-4d0e-b676-687fb0b25f75",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "9f52a98d-5268-4e3a-97f3-5b8719e5aaff": {
      "main": [
        [
          {
            "node": "7157699d-02ec-4d0e-b676-687fb0b25f75",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "8fb33be4-21d9-4a49-9f1f-e3c89c49540e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7bfeebf7-120a-4785-a4a5-f6cd2ef764b8": {
      "ai_embedding": [
        [
          {
            "node": "b58e1ae7-70ab-4aa2-861e-b6177b7f2dc2",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "3ca0071b-686d-4dea-84fd-6ed71bdfa14c": {
      "ai_languageModel": [
        [
          {
            "node": "9f52a98d-5268-4e3a-97f3-5b8719e5aaff",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "f7447b47-e6fa-4a2f-a7c9-c313eea0bcb8": {
      "ai_embedding": [
        [
          {
            "node": "009d65e5-4f02-460a-a395-2fa8eea7a70b",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "7854ddf5-7119-4e0d-abcd-459611f97278": {
      "ai_languageModel": [
        [
          {
            "node": "7157699d-02ec-4d0e-b676-687fb0b25f75",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "731aa45f-e2d2-405e-aebf-d796830d9ebb": {
      "ai_document": [
        [
          {
            "node": "009d65e5-4f02-460a-a395-2fa8eea7a70b",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "c3810836-c0b5-448b-ab0c-7167b6ba3584": {
      "main": [
        [
          {
            "node": "b1ba03dc-9d94-4233-850f-c67586428e74",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9339887b-461b-4a3e-a483-1f29dd446b7a": {
      "main": [
        [
          {
            "node": "73189044-3324-4dff-a8cc-9174900cc0fb",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "26a54599-e00a-40c9-8b6f-8f98ec1431a7": {
      "ai_textSplitter": [
        [
          {
            "node": "731aa45f-e2d2-405e-aebf-d796830d9ebb",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

上級 - コンテンツ作成, マルチモーダルAI

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
上級
ノード数21
カテゴリー2
ノードタイプ13
難易度説明

上級者向け、16ノード以上の複雑なワークフロー

作成者
Yasser Sami

Yasser Sami

@yassersami

AI Automation Architect building smart workflows with n8n. I help businesses save time by automating processes, connecting apps, and integrating AI. My focus is on creating efficient, reliable systems that streamline operations and reduce manual work.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34