Skip to content

hysakhr/flask_chatbot

Repository files navigation

flask_chatbot

chatbot application on local machine 日本語での概要説明→flaskでチャットボットのサンプルアプリ作ってみた【概要編】

screenshot_front

Prerequisites

  • docker
  • docker-compose

Installing and running

git clone [email protected]:hysakhr/flask_chatbot.git
cd flask_chatbot
docker-compose up

access

chatbot settings on admin

configure the following settings.

  1. create bot
    • screen : Bot > Bot追加
  2. create and upload faq list file in tsv format.
    • refer to sample_faq_list.tsv. (only japanese)
    • screen : Bot > Bot詳細 > ファイルからインポート
  3. set faq_list to be used in specific situations.
    • situations : when talk start, faq notfound
    • screen : Bot > Bot詳細 > FAQリスト編集
  4. train bot
    • screen : Bot > Bot詳細 > FAQリストの学習ボタン
    • train processing is asynchronous.
    • if 学習状態 is 学習中, please reload the page after a while.
  5. create site
    • screen : Site Settings > サイト追加
  6. setting bot to use on the site.
    • when site is created, site default setting is created at the same time.
    • if you want to set for each URL, you can add it separately.

chatbot settings on front

  1. site_id
  2. show_faq_info

chatbot/templates/front/index.html

    data: {
      talk: [],
      config: {
        site_id: 1,
        show_faq_info: true
      }
    },

End with an example of getting some data out of the system or using it for a little demo

libraries

front

  • Vue.js (2.6.0)
  • axios (0.19.0)
  • node-sass (4.12.0)

admin

main python libraries

  • flask (1.1.1)
  • flask-SQLAlchemy (2.4.0)
  • SQLAlchemy (1.3.8)
  • celery (4.3.0)
  • numpy (1.17.2)
  • tensorflow (2.0.0)

other libraries

  • AdminLTE (2.4.18)
  • mecab (0.996)

License

This project is licensed under the MIT License - see the LICENSE file for details

Author

  • hysakhr

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •