{
  "name": "\u3010\u7b2c49\u5f3e\u3011\u30bb\u30df\u30ca\u30fc\u53c2\u52a0\u8005\u306e\u300c\u71b1\u91cf\u5206\u6790\uff06\u500b\u5225\u63d0\u6848\u30e1\u30fc\u30eb\u300d\u81ea\u52d5\u751f\u6210\u30dc\u30c3\u30c8",
  "nodes": [
    {
      "parameters": {},
      "id": "manual-trigger-node",
      "name": "\u30c6\u30b9\u30c8\u5b9f\u884c",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "1",
              "name": "company_name",
              "value": "\u682a\u5f0f\u4f1a\u793e\u30b5\u30f3\u30d7\u30eb\u5546\u4e8b",
              "type": "string"
            },
            {
              "id": "2",
              "name": "attendee_name",
              "value": "\u7530\u4e2d \u592a\u90ce",
              "type": "string"
            },
            {
              "id": "3",
              "name": "survey_feedback",
              "value": "\u672c\u65e5\u306f\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002AI\u3067\u696d\u52d9\u304c\u52b9\u7387\u5316\u3067\u304d\u308b\u30a4\u30e1\u30fc\u30b8\u306f\u6e67\u304d\u307e\u3057\u305f\u304c\u3001\u5f0a\u793e\u306b\u306fIT\u306b\u5f37\u3044\u4eba\u6750\u304c\u5168\u304f\u304a\u3089\u305a\u3001\u4f55\u304b\u3089\u624b\u3092\u3064\u3051\u3066\u3044\u3044\u304b\u5206\u304b\u308a\u307e\u305b\u3093\u3002\u307e\u305a\u306f\u3042\u307e\u308a\u30b3\u30b9\u30c8\u3092\u304b\u3051\u305a\u306b\u3001\u73fe\u5834\u306e\u4e8b\u52d9\u4f5c\u696d\uff08\u30c7\u30fc\u30bf\u5165\u529b\u306a\u3069\uff09\u3092\u81ea\u52d5\u5316\u3059\u308b\u5c0f\u3055\u306a\u6210\u529f\u4f53\u9a13\u3092\u4f5c\u308a\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "mock-survey-node",
      "name": "\u30c0\u30df\u30fc\u30a2\u30f3\u30b1\u30fc\u30c8\u56de\u7b54 (\u203b\u5b9f\u88c5\u6642\u306fWebhook\u7b49\u306b\u7f6e\u63db)",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "models/gemini-2.5-flash",
          "mode": "list",
          "cachedResultName": "models/gemini-2.5-flash"
        },
        "messages": {
          "values": [
            {
              "content": "=\u3042\u306a\u305f\u306f\u512a\u79c0\u306a\u300c\u30a4\u30f3\u30b5\u30a4\u30c9\u30bb\u30fc\u30eb\u30b9\uff08\u55b6\u696d\u30b3\u30f3\u30b5\u30eb\u30bf\u30f3\u30c8\uff09\u300d\u3067\u3059\u3002\n\u4ee5\u4e0b\u306eAI\u6d3b\u7528\u30fbDX\u63a8\u9032\u30bb\u30df\u30ca\u30fc\u306e\u53c2\u52a0\u8005\u30a2\u30f3\u30b1\u30fc\u30c8\u3092\u8aad\u307f\u8fbc\u307f\u3001\u3053\u306e\u898b\u8fbc\u307f\u5ba2\u306e\u300c\u71b1\u91cf\uff08\u53d7\u6ce8\u78ba\u5ea6\uff09\u300d\u3092100\u70b9\u6e80\u70b9\u3067\u30b9\u30b3\u30a2\u30ea\u30f3\u30b0\u3057\u3001\u8ab2\u984c\u306e\u5206\u6790\u3068\u3001\u305d\u306e\u307e\u307e\u9001\u4fe1\u3067\u304d\u308b\u30d1\u30fc\u30bd\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30d5\u30a9\u30ed\u30fc\u30a2\u30c3\u30d7\u30e1\u30fc\u30eb\u306e\u30c9\u30e9\u30d5\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\n\u3010\u56de\u7b54\u8005\u60c5\u5831\u3011\n\u4f01\u696d\u540d: {{ $json.company_name }}\n\u6c0f\u540d: {{ $json.attendee_name }}\n\n\u3010\u30a2\u30f3\u30b1\u30fc\u30c8\u81ea\u7531\u8a18\u8ff0\u3011\n{{ $json.survey_feedback }}\n\n\u3010\u51fa\u529bJSON\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3011\n{\n  \"score\": \"\u71b1\u91cf\u30b9\u30b3\u30a2\uff08\u4f8b: 85\uff09\",\n  \"analysis\": \"\u3053\u306e\u9867\u5ba2\u306e\u73fe\u72b6\u8ab2\u984c\u3068\u3001\u30b3\u30f3\u30b5\u30eb\u30bf\u30f3\u30c8\u3068\u3057\u3066\u63d0\u6848\u3059\u3079\u304dDX\u306e\u65b9\u5411\u6027\u306e\u5206\u6790\",\n  \"email_draft\": \"\u76f8\u624b\u306e\u8ab2\u984c\u306b\u5bc4\u308a\u6dfb\u3044\u3001\u7121\u6599\u76f8\u8ac7\u3084\u6b21\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3078\u81ea\u7136\u306b\u8a98\u5c0e\u3059\u308b\u8aa0\u5b9f\u306a\u30d5\u30a9\u30ed\u30fc\u30a2\u30c3\u30d7\u30e1\u30fc\u30eb\u306e\u6587\u9762\uff08\u4ef6\u540d\u542b\u3080\uff09\",\n  \"next_action\": \"\u55b6\u696d\u62c5\u5f53\u8005\uff08\u3042\u306a\u305f\uff09\u304c\u6b21\u306b\u53d6\u308b\u3079\u304d\u793e\u5185\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u52a9\u8a00\"\n}"
            }
          ]
        },
        "options": {}
      },
      "id": "gemini-sales-node",
      "name": "Gemini (\u71b1\u91cf\u5206\u6790\uff06\u30e1\u30fc\u30eb\u751f\u6210)",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "typeVersion": 1.1,
      "position": [
        440,
        0
      ]
    },
    {
      "parameters": {
        "jsCode": "const text = $input.item.json.text || $input.item.json.content || $input.item.json.message?.content || \"\";\nlet cleanText = text.trim();\nconst startIndex = cleanText.indexOf('{');\nconst endIndex = cleanText.lastIndexOf('}');\nif (startIndex !== -1 && endIndex !== -1) {\n  cleanText = cleanText.substring(startIndex, endIndex + 1);\n}\nreturn JSON.parse(cleanText || \"{}\");"
      },
      "id": "code-parse-node",
      "name": "JSON\u30d1\u30fc\u30b9 (Code)",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        660,
        0
      ]
    },
    {
      "parameters": {
        "channel": "YOUR_CHANNEL_ID",
        "text": "=*\ud83c\udfaf \u65b0\u898f\u30ea\u30fc\u30c9\u5206\u6790\uff1a{{ $('\u30c0\u30df\u30fc\u30a2\u30f3\u30b1\u30fc\u30c8\u56de\u7b54 (\u203b\u5b9f\u88c5\u6642\u306fWebhook\u7b49\u306b\u7f6e\u63db)').item.json.company_name }} \u69d8*\n\u30bb\u30df\u30ca\u30fc\u306e\u30a2\u30f3\u30b1\u30fc\u30c8\u56de\u7b54\u3092\u53d7\u4fe1\u3057\u3001AI\u304c\u5206\u6790\u3092\u884c\u3044\u307e\u3057\u305f\uff01\n\n*\ud83d\udd25 \u71b1\u91cf\u30b9\u30b3\u30a2: \u3010 {{ $json.score }} \u70b9 \u3011*\n\n*\u3010\u8ab2\u984c\u3068\u63d0\u6848\u306e\u65b9\u5411\u6027\u3011*\n> {{ $json.analysis }}\n\n[hr]\n*\u3010\u2709\ufe0f \u9001\u4fe1\u7528\u30e1\u30fc\u30eb\u30c9\u30e9\u30d5\u30c8\u3011*\n```\n{{ $json.email_draft }}\n```\n\n\ud83d\udca1 *\u6b21\u306e\u304a\u3059\u3059\u3081\u30a2\u30af\u30b7\u30e7\u30f3\uff1a*\n_{{ $json.next_action }}_",
        "otherOptions": {}
      },
      "id": "slack-notify-node",
      "name": "Slack (\u55b6\u696d\u30c1\u30fc\u30e0\u3078\u901a\u77e5)",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.2,
      "position": [
        880,
        0
      ]
    }
  ],
  "connections": {
    "\u30c6\u30b9\u30c8\u5b9f\u884c": {
      "main": [
        [
          {
            "node": "\u30c0\u30df\u30fc\u30a2\u30f3\u30b1\u30fc\u30c8\u56de\u7b54 (\u203b\u5b9f\u88c5\u6642\u306fWebhook\u7b49\u306b\u7f6e\u63db)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u30c0\u30df\u30fc\u30a2\u30f3\u30b1\u30fc\u30c8\u56de\u7b54 (\u203b\u5b9f\u88c5\u6642\u306fWebhook\u7b49\u306b\u7f6e\u63db)": {
      "main": [
        [
          {
            "node": "Gemini (\u71b1\u91cf\u5206\u6790\uff06\u30e1\u30fc\u30eb\u751f\u6210)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini (\u71b1\u91cf\u5206\u6790\uff06\u30e1\u30fc\u30eb\u751f\u6210)": {
      "main": [
        [
          {
            "node": "JSON\u30d1\u30fc\u30b9 (Code)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "JSON\u30d1\u30fc\u30b9 (Code)": {
      "main": [
        [
          {
            "node": "Slack (\u55b6\u696d\u30c1\u30fc\u30e0\u3078\u901a\u77e5)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}