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 "康健知識庫".
- python 3.10.9
- Deploy by Heroku
- 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.
- 健康百科 (for example)
- You can select a category, and then linebot will list all options ( use several images )
- 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.
- 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.
- All pictures are super pretty. ( Of course, I made them. XD )
- 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.