パーソナルアシスタント

中級

これはSupport, AI分野の自動化ワークフローで、11個のノードを含みます。主にGmailTool, Agent, GoogleSheetsTool, ToolThink, McpTriggerなどのノードを使用、AI技術を活用したスマート自動化を実現。 OpenAIとGoogleスプレッドシートを使用したサプライヤー向け自動メールアシスタント

前提条件
  • Googleアカウント + Gmail API認証情報
  • Google Sheets API認証情報
  • OpenAI API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "chCFNRonfZBJVoUK",
  "meta": {
    "instanceId": "a51a10c949270e540a12639c8a3df5e1b80aa3342c96f49f7646a09c92df9d8c",
    "templateCredsSetupCompleted": true
  },
  "name": "Personal Assistant",
  "tags": [],
  "nodes": [
    {
      "id": "f1ecb3d0-eca9-4055-966f-9afbd2ccffca",
      "name": "MCPサーバートリガー",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        -20,
        -640
      ],
      "webhookId": "cbbbcf9a-2105-4289-9874-45d3ca20dd2e",
      "parameters": {
        "path": "cbbbcf9a-2105-4289-9874-45d3ca20dd2e"
      },
      "typeVersion": 1
    },
    {
      "id": "056176ce-7aed-44e1-8c95-6545d8742d63",
      "name": "Gmail によるメッセージ送信",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        300,
        -460
      ],
      "webhookId": "101ef28f-8092-4013-8f87-c5b81e9dbfa5",
      "parameters": {
        "sendTo": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('To', ``, 'string') }}",
        "message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
        "options": {},
        "subject": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Subject', ``, 'string') }}",
        "emailType": "text"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "N9jC76TL1WVjVRW4",
          "name": "Gmail account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "579d3a6f-8f64-4d1f-8837-ed566ffe56cc",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        -720
      ],
      "parameters": {
        "color": 4,
        "width": 1140,
        "height": 480,
        "content": "## To implement this personal email assistant for suppliers,\n## you need to follow these steps.\n\n### In Google Drive, create a Google Sheets file named \"Suppliers\",\nwhich should contain 2 columns:\n(Supplier Name, Contact Email)\nThis is the MCP Server.\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "0e3e99ef-434c-4c65-b282-6f2d267ad9f9",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        -200
      ],
      "parameters": {
        "color": 5,
        "width": 1140,
        "height": 660,
        "content": "## This would be the AI Agent that connects to the MCP Server — in other words, it is the MCP Client.\n\n### 1. The message arrives and is passed to the AI agent.\n### 2. The assistant first executes the node that helps it think — the \"Thinker\".\n### 3. Then it runs the Google Sheets node to search for the supplier,\n### in case the user only mentions the name and doesn't provide the email.\n### 4. It executes the MCP Server and sends the email as requested.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "fda2fd56-fb9b-4074-9a4f-ae14e94d95de",
      "name": "エントリーポイント: エージェントとチャット",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -300,
        40
      ],
      "webhookId": "0a1b3beb-fe6e-4a05-9150-944517f0a65b",
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "de8be0e7-2eea-43d5-9f8c-a6232986c524",
      "name": "個人メールアシスタント",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        60,
        40
      ],
      "parameters": {
        "options": {
          "systemMessage": "=Eres mi asistente personal. Tienes acceso a diferentes herramientas (como Think y Google Sheets). Sigue estas instrucciones paso a paso para responder correctamente:\n\n1. Ejecuta la herramienta **Think** para analizar si tienes toda la información necesaria para completar la solicitud del usuario.\n2. La fecha y hora actual es: {{ $now.setZone('America/Mexico_City').toFormat('yyyy-MM-dd HH:mm') }}.\n3. Si para cumplir la solicitud del usuario necesitas el **correo de un proveedor**, búscalo usando la herramienta **Google Sheets** con el nombre del proveedor como referencia.\n4. Una vez tengas toda la información, **realiza la acción solicitada por el usuario** y responde de forma clara y directa.\n5. Si falta información o no puedes encontrarla, pide al usuario que complete lo que falta o reporta que no la encontraste.\n"
        }
      },
      "typeVersion": 1.9
    },
    {
      "id": "05ab000e-3d2c-4429-a75e-7b4db94baa03",
      "name": "AIモデル Open AI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -160,
        260
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "QDynOcTL9yRJIEpN",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "cd649882-bd30-4589-ac73-e23da4f4d16e",
      "name": "チャットメモリ",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -20,
        240
      ],
      "parameters": {
        "contextWindowLength": 20
      },
      "typeVersion": 1.3
    },
    {
      "id": "804571d9-95b1-427e-90ad-a6562c246310",
      "name": "MCPサーバーに接続するノード",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        120,
        260
      ],
      "parameters": {
        "sseEndpoint": "https://lucychats-n8n.jpe85q.easypanel.host/mcp/cbbbcf9a-2105-4289-9874-45d3ca20dd2e/sse"
      },
      "typeVersion": 1
    },
    {
      "id": "df1ba763-2ab5-4cc9-adf0-47f39bf6e0ec",
      "name": "シンカー: 実行前に思考",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        260,
        220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e2721ce5-6283-4c20-945f-e0e88b25514f",
      "name": "仕入先データベース",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        400,
        260
      ],
      "parameters": {
        "options": {},
        "filtersUI": {
          "values": [
            {
              "lookupValue": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('values0_Value', ``, 'string') }}",
              "lookupColumn": "Nombre del Proveedor"
            }
          ]
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1vFkApkyOU1npZJvl90sIZ4x8xnSXylfTjvCGhWTeOB8/edit#gid=0",
          "cachedResultName": "Hoja 1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1vFkApkyOU1npZJvl90sIZ4x8xnSXylfTjvCGhWTeOB8",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1vFkApkyOU1npZJvl90sIZ4x8xnSXylfTjvCGhWTeOB8/edit?usp=drivesdk",
          "cachedResultName": "Proveedores"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "kbToWpEBxTdKlK78",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.5
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "517b84f6-a704-4934-87a9-d550677b7bee",
  "connections": {
    "Gmail": {
      "ai_tool": [
        [
          {
            "node": "f1ecb3d0-eca9-4055-966f-9afbd2ccffca",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "cd649882-bd30-4589-ac73-e23da4f4d16e": {
      "ai_memory": [
        [
          {
            "node": "de8be0e7-2eea-43d5-9f8c-a6232986c524",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "05ab000e-3d2c-4429-a75e-7b4db94baa03": {
      "ai_languageModel": [
        [
          {
            "node": "de8be0e7-2eea-43d5-9f8c-a6232986c524",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "e2721ce5-6283-4c20-945f-e0e88b25514f": {
      "ai_tool": [
        [
          {
            "node": "de8be0e7-2eea-43d5-9f8c-a6232986c524",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "de8be0e7-2eea-43d5-9f8c-a6232986c524": {
      "main": [
        []
      ]
    },
    "fda2fd56-fb9b-4074-9a4f-ae14e94d95de": {
      "main": [
        [
          {
            "node": "de8be0e7-2eea-43d5-9f8c-a6232986c524",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "df1ba763-2ab5-4cc9-adf0-47f39bf6e0ec": {
      "ai_tool": [
        [
          {
            "node": "de8be0e7-2eea-43d5-9f8c-a6232986c524",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "804571d9-95b1-427e-90ad-a6562c246310": {
      "ai_tool": [
        [
          {
            "node": "de8be0e7-2eea-43d5-9f8c-a6232986c524",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

中級 - サポート, 人工知能

有料ですか?

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

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

経験者向け、6-15ノードの中程度の複雑さのワークフロー

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34