C

chatbot_for_PsychologicalTest

f06fb1b9 update · by Ubuntu

심리테스트 챗봇


line_chatbot_pro

커리어넷의 진로심리검사 중 직업가치관검사를 쉽고 간단하게 할 수 있게
LINE 챗봇을 통해 구현함

line_qr_revised

상단의 QR코드를 폰으로 스캔하여, 친구추가 후 사용가능

사용 방법


1. Line앱을 켠 후, QR코드 스캔을 통해
심리테스트 챗봇을 친구추가해주세요.

using_example3_resized

2. "시작"을 입력하시고, 질문에 성실히 응답해주세요.
using_example1_revised

3. 모든 질의응답이 끝나면, 발급된 주소를 통해 결과를 확인해주세요.
using_exampel2_resized

사용 api 목록


 https://www.career.go.kr/cnet/front/openapi/openApiTestCenter.do
 https://developers.line.biz/en/

설치

사전에 api사용을 위한 key를 발급받아야 합니다

repository를 clone 합니다

git clone http://khuhub.khu.ac.kr/2019102203/chatbot_for_PsychologicalTest.git


필요한 패키지들을 다운받습니다

npm install

참고용 package.json 내용

{
   "name": "reply",
   "version": "1.0.0",
   "description": "",
   "main": "app.js",
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1"
   },
   "author": "",
   "license": "ISC",
   "dependencies": {
     "body-parser": "^1.19.0",
     "express": "^4.17.1",
     "request": "^2.88.2"
   }
 }



app.js를 수정합니다.

const TOKEN = 'femdVK...cDnyilFU=' // Line4: 위에 Line develop에서 받은 본인의 키로 바꿉니다.
const domain = "www.skdhkfkdy.tk" // Line10: 본인의 domain 주소로 바꿉니다.



app.js를 실행합니다.

License


The MIT License (MIT)

Copyright (c) 2020 Sungbae Yoon, Inseo Lee, Seunghwan Jang

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.