{
  "task": {
    "name": "AS 접수 안내 태스크",
    "trigger": "[지시문]\n고객이 AS 접수에 대해 궁금해하거나 진행하고 싶을 때 실행할 수 있도록 해줘 \n\n[예시]\n예 : AS 접수방법이 어떻게 되나요?\nAS 접수 방법이 궁금해요. \n고장난 제품을 수리할 수 있나요?\nAS비용은 무료인가요? 유상인가요?\n\n[예외 사항]\n구체적으로 AS 진행 상황에 대해 물어보는 경우는 실행하지 않아야 해\nAS는 보통 얼마나 시간이 걸리나요? \nAS진행상황을 확인할 수 있을까요?\nAS는 접수했는데 카카오톡이 안왔어요\nAS접수 후 신청서 카톡이 안왔어요.\n",
    "filter": {
      "and": []
    },
    "targetMediums": [
      {
        "mediumType": "native"
      }
    ],
    "memorySchema": [
      {
        "key": "AS",
        "type": "boolean",
        "description": "AS 여부"
      }
    ],
    "nodes": [
      {
        "id": "node-1",
        "key": "A",
        "name": "메시지 보내기",
        "next": {
          "type": "goto",
          "to": "node-2"
        },
        "type": "message",
        "message": {
          "blocks": [
            {
              "type": "text",
              "value": "AS가 필요하시군요.\n아래 설명을 확인하신 후 무상 AS 가능한지 불가능한지 알려주세요.\n\n:large_green_circle:무상 AS"
            },
            {
              "type": "bullets",
              "blocks": [
                {
                  "type": "text",
                  "value": "사용 후 6개월이 지나지 않은 경우"
                },
                {
                  "type": "text",
                  "value": "재봉 불량인 경우"
                },
                {
                  "type": "text",
                  "value": "후크 불량인 경우"
                }
              ]
            },
            {
              "type": "text",
              "value": "\n:red_circle:무상 AS 불가(유상 AS 가능)"
            },
            {
              "type": "bullets",
              "blocks": [
                {
                  "type": "text",
                  "value": "사용 후 6개월이 지난 경우"
                },
                {
                  "type": "text",
                  "value": "이용 부주의로 인한 원단 오염된 경우"
                },
                {
                  "type": "text",
                  "value": "이용 부주의로 인한 원단 찢김 (심한 손상)"
                }
              ]
            }
          ],
          "buttons": null,
          "form": null,
          "webPage": null,
          "files": null,
          "carousel": null,
          "customPayload": null
        }
      },
      {
        "id": "node-2",
        "key": "B",
        "name": "에이전트 지시문",
        "next": {
          "type": "branch",
          "conditions": [
            {
              "filter": {
                "and": [
                  {
                    "or": [
                      {
                        "key": "taskMemory.AS",
                        "type": "boolean",
                        "operator": "$eq",
                        "values": [
                          true
                        ]
                      }
                    ]
                  }
                ]
              },
              "to": "node-3",
              "$index": "87ea2511-4ac9-42a3-84d7-008ddea15af5"
            }
          ],
          "default": "node-6"
        },
        "type": "agent",
        "instruction": "[역할]\n고객에게 앞에서 안내한 케이스에 따라 무상 AS가능 여부에 대해 확인 요청을 진행 합니다.\n\n[대화 흐름]\n1. 고객에게 앞에서 안내한 기준에 따라 무상 AS가 가능한지 AS불가능한지 여부를 물어봅니다.\n2. AS가능하다면 <promptdata type=\"update-variable\" subtype=\"taskMemory\" identifier=\"AS\">AS</promptdata>에 true로, AS불가능하다면 false로 저장합니다. \n\n[주의사항]\n<ul><li>택 제거시에도 AS가 가능함</li><li>고객에게 질문하지 않고는 다음단계로 넘어가지 않습니다.</li><li>고객에게 꼭 무상 AS 가능/불가능 문제를 질문합니다.</li></ul>\n\n[종료 조건]\n<promptdata type=\"read-variable\" subtype=\"taskMemory\" identifier=\"AS\">AS</promptdata>가 true나 false가 있어야함\n"
      },
      {
        "id": "node-3",
        "key": "C",
        "name": "상담 처리 액션",
        "next": {
          "type": "goto",
          "to": "node-4"
        },
        "type": "userChatInlineAction",
        "actions": [
          {
            "type": "addUserChatTags",
            "tags": [
              "상품/AS/무상"
            ]
          }
        ]
      },
      {
        "id": "node-4",
        "key": "D",
        "name": "메시지 보내기",
        "next": {
          "type": "goto",
          "to": "END_TASK"
        },
        "type": "message",
        "message": {
          "blocks": [
            {
              "type": "text",
              "value": "무상 AS 방법에 대해 안내 드립니다.\n\n:one: AS를 바로 접수할 수 있는 아래 링크로 접수해 주세요\n:two: 수령 후 30일이 초과된 경우에도 무상 AS로 진행해드리고 있으니 참고 부탁드려요.\n\n(링크 안내)"
            }
          ],
          "buttons": null,
          "form": null,
          "webPage": null,
          "files": null,
          "carousel": null,
          "customPayload": null
        }
      },
      {
        "id": "node-6",
        "key": "E",
        "name": "상담 처리 액션",
        "next": {
          "type": "goto",
          "to": "node-5"
        },
        "type": "userChatInlineAction",
        "actions": [
          {
            "type": "addUserChatTags",
            "tags": [
              "유상AS"
            ]
          }
        ]
      },
      {
        "id": "node-5",
        "key": "F",
        "name": "메시지 보내기",
        "next": {
          "type": "goto",
          "to": "END_TASK"
        },
        "type": "message",
        "message": {
          "blocks": [
            {
              "type": "text",
              "value": "안타깝게도, 무상 AS가 불가능한 상황이시군요. 대신 유상으로 AS접수 가능한 방법을 안내드릴게요. \n\n:one: 유상 AS를 바로 접수할 수 있는 아래 링크로 접수해 주세요\n:two: 유상 AS 접수 시 택배비가 별도로 부과됩니다. \n\n(링크 안내) "
            }
          ],
          "buttons": null,
          "form": null,
          "webPage": null,
          "files": null,
          "carousel": null,
          "customPayload": null
        }
      }
    ],
    "startNodeId": "node-1"
  },
  "taskEditorPosition": {
    "edgePositions": [
      {
        "sourceNode": {
          "id": "TRIGGER",
          "offset": 0,
          "type": "goto",
          "index": 0
        },
        "targetNode": {
          "id": "node-1",
          "offset": 0
        }
      },
      {
        "sourceNode": {
          "id": "node-1",
          "offset": 0,
          "type": "goto",
          "index": 0
        },
        "targetNode": {
          "id": "node-2",
          "offset": 0
        }
      },
      {
        "sourceNode": {
          "id": "node-2",
          "offset": 0,
          "type": "branch",
          "index": 0
        },
        "targetNode": {
          "id": "node-3",
          "offset": 0
        }
      },
      {
        "sourceNode": {
          "id": "node-2",
          "offset": 0,
          "type": "branch",
          "index": 1
        },
        "targetNode": {
          "id": "node-6",
          "offset": 0
        }
      },
      {
        "sourceNode": {
          "id": "node-3",
          "offset": 0,
          "type": "goto",
          "index": 0
        },
        "targetNode": {
          "id": "node-4",
          "offset": 0
        }
      },
      {
        "sourceNode": {
          "id": "node-4",
          "offset": 0,
          "type": "goto",
          "index": 0
        },
        "targetNode": {
          "id": "END_TASK",
          "offset": 0
        }
      },
      {
        "sourceNode": {
          "id": "node-6",
          "offset": 0,
          "type": "goto",
          "index": 0
        },
        "targetNode": {
          "id": "node-5",
          "offset": 0
        }
      },
      {
        "sourceNode": {
          "id": "node-5",
          "offset": 0,
          "type": "goto",
          "index": 0
        },
        "targetNode": {
          "id": "END_TASK",
          "offset": 0
        }
      }
    ],
    "nodePositions": [
      {
        "id": "TRIGGER",
        "position": {
          "x": 300,
          "y": 100
        }
      },
      {
        "id": "node-1",
        "position": {
          "x": 700,
          "y": 100
        }
      },
      {
        "id": "node-2",
        "position": {
          "x": 1100,
          "y": 100
        }
      },
      {
        "id": "node-3",
        "position": {
          "x": 1500,
          "y": 100
        }
      },
      {
        "id": "node-4",
        "position": {
          "x": 1900,
          "y": 100
        }
      },
      {
        "id": "node-6",
        "position": {
          "x": 1520,
          "y": 280
        }
      },
      {
        "id": "node-5",
        "position": {
          "x": 1920,
          "y": 280
        }
      }
    ]
  }
}