Git Product home page Git Product logo

channeltalkcuration's Introduction

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

channeltalkcuration's People

Contributors

kikiru328 avatar

Stargazers

mignon.choi avatar

Watchers

James Cloos avatar  avatar

Forkers

spiner321

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.