Skip to content

fangyu070899/medical_linebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

medical linebot

TOC Project 111-1

  1. About The Project
  2. Environment
  3. Technics
  4. Getting Started
  5. Features
  6. FSM
  7. State
  8. Demo
  9. Reference

About The Project

This is a line bot you can ask for medical knowledge, including diseases, symptoms, exercises and so on. The information contained in this linebot comes from the web "康健知識庫".

Environment

  • python 3.10.9
  • Deploy by Heroku

Technics

  • line bot : Built by the official LINE Messaging API.
  • Backend: Built the backend with Flask to handle the webhook.
  • FSM: Create FSM with pytransitions for the users state management.
  • web scraping : Use selenium and chrome driver to retrieve medical information from several webpages.

Getting Started

Greeting messages

rich menu & text input

Features

  • 健康百科 (for example)
  1. You can select a category, and then linebot will list all options ( use several images )
  2. There are some quick reply buttons, so you don't have to type the word if what you want to search is included. Just click it.
  3. Quick reply in final state (below three) are different from the keywords. That is, how many options and what kind of options appear is decided by how much information is on the website.
  4. All pictures are super pretty. ( Of course, I made them. XD )

FSM

State

  • user : The entry. In this state, you can send text messages or click the rich menu below to start the conversation.
  • searched_term : When you asks for a disease, symptom description or anything the linebot knows, you will get to this state. In this state, linebot replies the information of specific keyword (which the user want to know), and then it will asks that whether you want to know more information time and again. As a result, this is a final state.
  • suggest_term : if linebot received something doesn't match a single disease or symptom, it will list all possible options for you.
  • disease : List all deseases in a specific category you chose.
  • symptom : List all symptoms in a specific category you chose.
  • _category : The states which you can choose category.

Demo

健康百科


症狀百科


飲食百科


運動百科


營養百科


打字輸入

Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages