{
  "name": "Jev 예시 - 스마트스토어 리뷰 평가·라우팅",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        200
      ],
      "id": "2e56c479-d824-4372-bfae-18259a036e90",
      "name": "실행 버튼"
    },
    {
      "parameters": {
        "jsCode": "// 스마트스토어 리뷰 샘플 4건 (실제 운영에선 리뷰 수집 노드로 교체)\nreturn [\n  { review_id: \"R-001\", product: \"NFC 성경 키링\", review: \"키링 디자인 너무 예뻐요! 선물했는데 친구가 엄청 좋아했어요. 재구매 의사 있습니다.\" },\n  { review_id: \"R-002\", product: \"3D 프린팅 피규어\", review: \"주문한 지 일주일이 넘었는데 아직도 배송 준비중이에요. 언제 받을 수 있나요?\" },\n  { review_id: \"R-003\", product: \"NFC 성경 키링\", review: \"NFC 태그가 폰에 인식이 안 돼요. 몇 번을 대봐도 반응이 없네요. 불량인 것 같아요.\" },\n  { review_id: \"R-004\", product: \"3D 프린팅 피규어\", review: \"그냥 그래요. 사진이랑 색이 좀 다른 것 같기도 하고요.\" }\n].map(json => ({ json }));"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        220,
        200
      ],
      "id": "bfa6d583-186a-4c3a-be1c-ec37a7ef82da",
      "name": "샘플 리뷰 4건"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "jev-latest",
          "cachedResultName": "jev-latest"
        },
        "stateFormat": "text",
        "stateText": "=상품: {{ $json.product }}\n리뷰: {{ $json.review }}",
        "questions": {
          "question": [
            {
              "type": "score",
              "id": "satisfaction",
              "instructions": "이 리뷰를 쓴 고객은 얼마나 만족했나요?",
              "scoreLevels": {
                "level": [
                  {
                    "level": "매우 불만족"
                  },
                  {
                    "level": "불만족"
                  },
                  {
                    "level": "보통"
                  },
                  {
                    "level": "만족"
                  },
                  {
                    "level": "매우 만족"
                  }
                ]
              }
            },
            {
              "id": "needs_reply",
              "instructions": "판매자가 이 리뷰에 직접 답변하거나 조치해야 하나요?",
              "trueMeans": "판매자 답변/조치 필요",
              "falseMeans": "감사 인사 정도면 충분"
            }
          ]
        },
        "options": {}
      },
      "type": "@typesafe-ai/n8n-nodes-typesafe-ai.typeSafeAi",
      "typeVersion": 1,
      "position": [
        440,
        200
      ],
      "id": "a4d9ba5d-388f-47dc-bbdf-65459eee3955",
      "name": "Jev 평가 (만족도·답변 필요)"
    },
    {
      "parameters": {
        "operation": "route",
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "jev-latest",
          "cachedResultName": "jev-latest"
        },
        "stateFormat": "text",
        "stateText": "=상품: {{ $json.product }}\n리뷰: {{ $json.review }}",
        "routeInstructions": "이 리뷰를 어느 담당자에게 보내야 하나요?",
        "routes": {
          "route": [
            {
              "name": "praise",
              "description": "칭찬·만족 리뷰. 감사 답글만 달면 됨"
            },
            {
              "name": "shipping_issue",
              "description": "배송 지연·누락·파손 등 배송 문제"
            },
            {
              "name": "quality_issue",
              "description": "제품 불량·작동 안 됨·사진과 다름 등 품질 문제"
            }
          ]
        },
        "confidenceHandling": "separateOutput",
        "confidenceThreshold": 0.7,
        "options": {}
      },
      "type": "@typesafe-ai/n8n-nodes-typesafe-ai.typeSafeAi",
      "typeVersion": 1,
      "position": [
        680,
        200
      ],
      "id": "634bfc9b-3e32-49eb-830f-7200870df201",
      "name": "Jev 라우팅 (담당 분기)"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "cbc18382-e0b7-4d7d-98ca-9677c6ca45e5",
              "name": "next_action",
              "value": "감사 답글 작성",
              "type": "string"
            },
            {
              "id": "e220fc44-4862-4fac-9381-71c497bdf19d",
              "name": "owner",
              "value": "마케팅",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        960,
        0
      ],
      "id": "26e73df6-fa68-4df7-82a1-bfc01357f94d",
      "name": "칭찬 → 감사 답글"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "bcd08dfc-7635-498f-aff0-97dee70871ca",
              "name": "next_action",
              "value": "배송 조회 후 고객 안내",
              "type": "string"
            },
            {
              "id": "aa99b065-67c3-4d60-bf22-abab19cf55c2",
              "name": "owner",
              "value": "CS",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        960,
        140
      ],
      "id": "35f94f9f-372d-4ab0-92b2-7ac92b159cf7",
      "name": "배송 문제 → CS"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "8c81c789-6ad7-45b6-91bf-4d11aa50c223",
              "name": "next_action",
              "value": "교환/환불 및 불량 원인 확인",
              "type": "string"
            },
            {
              "id": "b7ec3b40-6954-40a9-9643-f8e4df3fd24c",
              "name": "owner",
              "value": "제품팀",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        960,
        280
      ],
      "id": "384739d0-b79c-4813-a59f-d6688074c25f",
      "name": "품질 문제 → 제품팀"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "a9f52ccd-1d86-48d9-9b49-bba3e97f923f",
              "name": "next_action",
              "value": "확신도 낮음: 사람이 직접 읽고 분류",
              "type": "string"
            },
            {
              "id": "9022471e-7cba-4f1b-8768-a5791d7e02f8",
              "name": "owner",
              "value": "대표",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        960,
        420
      ],
      "id": "e454eb61-ca7b-4da8-afe7-7bd64f557af1",
      "name": "애매함 → 사람 검토"
    }
  ],
  "connections": {
    "실행 버튼": {
      "main": [
        [
          {
            "node": "샘플 리뷰 4건",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "샘플 리뷰 4건": {
      "main": [
        [
          {
            "node": "Jev 평가 (만족도·답변 필요)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Jev 평가 (만족도·답변 필요)": {
      "main": [
        [
          {
            "node": "Jev 라우팅 (담당 분기)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Jev 라우팅 (담당 분기)": {
      "main": [
        [
          {
            "node": "칭찬 → 감사 답글",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "배송 문제 → CS",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "품질 문제 → 제품팀",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "애매함 → 사람 검토",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "note": "TypeSafe AI 노드 2개에 본인 TypeSafe AI 크리덴셜을 연결한 뒤 실행하세요"
  }
}