Skip to content

kikiru328/ChannelTalKCuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChannelTalk 1:1 Curation Service

채널톡의 서포트봇은 지정해둔 답변이 발송되기 때문에 개인에 맞는 답변이 어렵다.
따라서 ChannelTalk(이하 채널톡)의 Webhook과 API를 사용하여 1:1 자동 응답 서비스를 개발하였다.

모든 답변의 내용은 채널톡 내 고객 설문조사를 기반으로 계산되어 제공된다.
즉, 설문조사가 선행되어야 하며, channeltalk 내 database에서 어느 분야로 저장할지 지정할 수 있다.

저장된 database를 근거로 Flask를 활용하여 답변을 주는 서비스를 구현하였고
24시간 작동을 위하여 AWS LIGHTSAIL background에 실행하였다.
혹시 모를 에러나 문제에 대비하여 nohup에 logging을 출력하여 해결하였다.


Channel Talk's support bot sends designated answers, so it is difficult to answer them individually. Therefore, a 1:1 automatic response service was developed using ChannelTalk's Webhook and API.

The contents of all answers are calculated and provided based on customer surveys in Channel Talk. In other words, a survey must be preceded, and it is possible to specify which field to store in the database in channeltalk.

Based on the stored database, we implemented a service that provides answers using Flask. It was executed in AWS LIGHTSAIL background for 24-hour operation. In preparation for any possible error or problem, logging was output to nohup to solve it.


프로젝트 도식화 : Project schematic



Modularization

해당 git 내용은 Curation 서비스를 모듈화하였다.
따라서 git clone 이후 사용이 가능하다.

This git content 'modularized' the Curation service. Therefore, it can be used after git clone.

Prepare

필요한 것은 두가지다.
There are two things that are needed.

  1. ChannelTalk API Key
  2. ChannelTalk Webhook address
Webhook address
webhook 주소는 서버 URL + app.py 내 route 주소. webhook 주소를 channeltalk webhook 주소에 입력한다.
# server address = https://0.00.00.00

@app.route("/in_userchat", methods=["GET", "POST"])
# route address = "/in_userchat"

# webhook address = https://0.00.00.00/in_userchat

webhook address

open_userchat_option

image

in_userchat_option

image

Webhook?


Use

Flask operator > app.py
MainCuration.main_curation.main_curation > operator main_curation
same as InteractionCuration


Set Message

set message in #_response.py


📦distribution_git
 ┣ 📂InteractionCuration
 ┃ ┣ 📜interaction_curation.py
 ┃ ┣ 📜interaction_functions.py
 ┃ ┗ 📜interaction_response.py
 ┣ 📂MainCuration
 ┃ ┣ 📜main_curation.py
 ┃ ┣ 📜main_function.py
 ┃ ┗ 📜main_response.py
 ┣ 📂templates
 ┃ ┗ 📜index.html
 ┣ 📜API_key.json
 ┣ 📜app.py
 ┣ 📜nohup.out
 ┗ 📜requirements.txt

About

채널톡 1:1 설문조사 기반 Curation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published