├── actions ├── actions.py ├── __init__.py └── __pycache__ │ ├── actions.cpython-37.pyc │ ├── __init__.cpython-310.pyc │ ├── __init__.cpython-37.pyc │ └── actions.cpython-310.pyc ├── bot.png ├── rasa.gif ├── rules.yml ├── data ├── rules.yml ├── nlu.yml └── stories.yml ├── endpoints.yml ├── README.md ├── stories.yml ├── nlu.yml └── domain.yml /actions/actions.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actions/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjay-ar/MedAppointBot/HEAD/bot.png -------------------------------------------------------------------------------- /rasa.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjay-ar/MedAppointBot/HEAD/rasa.gif -------------------------------------------------------------------------------- /actions/__pycache__/actions.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjay-ar/MedAppointBot/HEAD/actions/__pycache__/actions.cpython-37.pyc -------------------------------------------------------------------------------- /actions/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjay-ar/MedAppointBot/HEAD/actions/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /actions/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjay-ar/MedAppointBot/HEAD/actions/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /actions/__pycache__/actions.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjay-ar/MedAppointBot/HEAD/actions/__pycache__/actions.cpython-310.pyc -------------------------------------------------------------------------------- /rules.yml: -------------------------------------------------------------------------------- 1 | version: "3.0" 2 | 3 | rules: 4 | 5 | - rule: Say goodbye anytime the user says goodbye 6 | steps: 7 | - intent: goodbye 8 | - action: utter_goodbye 9 | 10 | - rule: Say 'I am a bot' anytime the user challenges 11 | steps: 12 | - intent: bot_challenge 13 | - action: utter_iamabot 14 | -------------------------------------------------------------------------------- /data/rules.yml: -------------------------------------------------------------------------------- 1 | version: "2.0" 2 | 3 | rules: 4 | 5 | - rule: Say goodbye anytime the user says goodbye 6 | steps: 7 | - intent: goodbye 8 | - action: utter_goodbye 9 | 10 | - rule: Say 'I am a bot' anytime the user challenges 11 | steps: 12 | - intent: bot_challenge 13 | - action: utter_iamabot 14 | -------------------------------------------------------------------------------- /endpoints.yml: -------------------------------------------------------------------------------- 1 | # This file contains the different endpoints your bot can use. 2 | 3 | # Server where the models are pulled from. 4 | # https://rasa.com/docs/rasa/model-storage#fetching-models-from-a-server 5 | 6 | #models: 7 | # url: http://my-server.com/models/default_core@latest 8 | # wait_time_between_pulls: 10 # [optional](default: 100) 9 | 10 | # Server which runs your custom actions. 11 | # https://rasa.com/docs/rasa/custom-actions 12 | 13 | action_endpoint: 14 | url: "http://localhost:5055/webhook" 15 | # Tracker store which is used to store the conversations. 16 | # By default the conversations are stored in memory. 17 | # https://rasa.com/docs/rasa/tracker-stores 18 | 19 | #tracker_store: 20 | # type: redis 21 | # url: 22 | # port: 23 | # db: 24 | # password: 25 | # use_ssl: 26 | 27 | #tracker_store: 28 | # type: mongod 29 | # url: 30 | # db: 31 | # username: 32 | # password: 33 | 34 | # Event broker which all conversation events should be streamed to. 35 | # https://rasa.com/docs/rasa/event-brokers 36 | 37 | #event_broker: 38 | # url: localhost 39 | # username: username 40 | # password: password 41 | # queue: queue 42 | 43 | #action_endpoint: 44 | #url: 'http://localhost:5005/webhook' 45 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # ChatBot Response Generator 3 | 4 | This is an open-source project aimed at creating a response generator for chatbots. It allows developers to define various types of responses and integrate them into their chatbot applications. 5 | 6 | ## Tech/Framework Used 7 | 8 | Built with Python, Flask, and NLTK library for natural language processing. 9 | 10 | ## Screenshots and Demo 11 | 12 |
13 | Demo 14 |
15 | 16 | --- 17 | 18 | ## Tech/Framework Used 19 | 20 | - Python 21 | - Rasa Framework 22 | 23 | ## Getting Started 24 | 25 | To get started with this project, follow these steps: 26 | 27 | 1. Clone the repository: 28 | 29 | ``` 30 | git clone https://github.com/your-username/rasa-response-generator.git 31 | ``` 32 | 33 | 2. Install dependencies: 34 | 35 | ``` 36 | pip install -r requirements.txt 37 | ``` 38 | 39 | 3. Define Responses: Edit the `responses.py` file to define your custom responses. 40 | 41 | 4. Integrate with Rasa: Integrate the generated responses into your Rasa chatbot by importing the `responses.py` module. 42 | 43 | 5. Train and Run: Train your Rasa chatbot using the integrated responses and run it to start interacting with users. 44 | 45 | ## Contributing 46 | 47 | Contributions are welcome! If you'd like to contribute to this project, please follow these steps: 48 | 49 | 1. Fork the repository. 50 | 2. Create a new branch (`git checkout -b feature/new-feature`). 51 | 3. Make your changes and commit them (`git commit -am 'Add new feature'`). 52 | 4. Push to the branch (`git push origin feature/new-feature`). 53 | 5. Create a new Pull Request. 54 | --- 55 | 56 | ### 🚀 Maintained by [Sanjay A R](https://github.com/sanjay-ar) 57 | 58 | [![Portfolio](https://img.shields.io/badge/Portfolio-Visit-blue?style=flat-square&logo=vercel)](https://portfolio-ar.vercel.app/) 59 | [![LinkedIn](https://img.shields.io/badge/LinkedIn-Sanjay%20A%20R-blue?style=flat-square&logo=linkedin)](https://www.linkedin.com/in/sanjay-ar/) 60 | [![GitHub](https://img.shields.io/badge/GitHub-sanjay--ar-black?style=flat-square&logo=github)](https://github.com/sanjay-ar) 61 | 62 | > 💡 *Like this project? Leave a ⭐ and connect with me!* 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /data/nlu.yml: -------------------------------------------------------------------------------- 1 | version: "2.0" 2 | 3 | nlu: 4 | - intent: greet 5 | examples: | 6 | - hey 7 | - hello 8 | - hi 9 | - hello there 10 | - good morning 11 | - good evening 12 | - hey there 13 | - let's go 14 | - hey dude 15 | - goodmorning 16 | - goodevening 17 | - good afternoon 18 | 19 | - intent: goodbye 20 | examples: | 21 | - good bye 22 | - bye 23 | - see you 24 | - good night 25 | - goodbye 26 | - have a nice day 27 | - exit 28 | 29 | - intent: affirm 30 | examples: | 31 | - yes 32 | - s 33 | - ok 34 | - okay 35 | - indeed 36 | - of course 37 | - yaa 38 | - yeah 39 | - y 40 | - correct 41 | 42 | - intent: deny 43 | examples: | 44 | - no 45 | - never 46 | - n 47 | - I don't think so 48 | - don't like that 49 | - no way 50 | - not really 51 | - nope 52 | 53 | - intent: day 54 | examples: | 55 | - less than 24 hours 56 | - more than 24 hours 57 | - less 58 | - more 59 | - l 60 | - m 61 | 62 | - intent: head_symptom 63 | examples: | 64 | - headache 65 | - pain in head 66 | - head ache 67 | - head 68 | - h 69 | 70 | - intent: head_whole 71 | examples: | 72 | - whole 73 | - w 74 | - hole 75 | 76 | - intent: head_sides 77 | examples: | 78 | - sides 79 | - side 80 | - s 81 | 82 | - intent: head_crown 83 | examples: | 84 | - crown 85 | - crowns 86 | - c 87 | 88 | - intent: head_eyes 89 | examples: | 90 | - eyes 91 | - eye 92 | - e 93 | 94 | - intent: flu_symptom 95 | examples: | 96 | - flu 97 | - cough 98 | - cold 99 | - fever 100 | - f 101 | - runny rose 102 | - vomitting 103 | - body ache 104 | 105 | - intent: vision_symptom 106 | examples: | 107 | - vision 108 | - v 109 | - intent: stomach_symptom 110 | examples: | 111 | - stomachache 112 | - pain in stomach 113 | - stomach ache 114 | - stomach 115 | - intent: bot_challenge 116 | examples: | 117 | - are you a bot? 118 | - are you a human? 119 | - am I talking to a bot? 120 | - am I talking to a human? -------------------------------------------------------------------------------- /stories.yml: -------------------------------------------------------------------------------- 1 | version: "2.0" 2 | 3 | stories: 4 | 5 | - story: user greet 6 | steps: 7 | - intent: greet 8 | - action: utter_greet 9 | 10 | - story: user bye 11 | steps: 12 | - action: utter_goodbye 13 | 14 | - story: stomach ache 15 | steps: 16 | - intent: stomach_symptom 17 | - action: utter_day1 18 | - intent: day1 19 | - action: utter_stomach_types 20 | - intent: deny1 21 | - action: utter_poison_response_stomach 22 | - intent: bookstmch 23 | - action: utter_link1 24 | 25 | 26 | - story: heat_burn 27 | steps: 28 | - intent: heart_burn_symptom 29 | - action: utter_heart_burn_symptom 30 | - intent: deny2 31 | - action: utter_heart_burn_remedies 32 | - action: utter_day2 33 | - intent: day2 34 | - action: utter_poison_response_heart 35 | - intent: bookheart 36 | - action: utter_link2 37 | 38 | - story: rash 39 | steps: 40 | - intent: rash_symptom 41 | - action: utter_day3 42 | - intent: day3 43 | - action: utter_rash_symptom 44 | - intent: deny3 45 | - action: utter_poison_response_rash 46 | - intent: bookrash 47 | - action: utter_link3 48 | 49 | - story: fever 50 | steps: 51 | - intent: fever_symptom 52 | - action: utter_day4 53 | - intent: day4 54 | - action: utter_fever_symptom 55 | - intent: deny4 56 | - action: utter_poison_response_fever 57 | - intent: bookfever 58 | - action: utter_link4 59 | 60 | - story: cold 61 | steps: 62 | - intent: cold_symptom 63 | - action: utter_cold_symptom 64 | - intent: deny5 65 | - action: utter_cold_remedies 66 | - action: utter_day5 67 | - intent: day5 68 | - action: utter_poison_response_cold 69 | - intent: bookcold 70 | - action: utter_link5 71 | 72 | - story: Diarrhea 73 | steps: 74 | - intent: Diarrhea_symptom 75 | - action: utter_Diarrhea_symptom 76 | - intent: deny6 77 | - action: utter_Diarrhea_remedies 78 | - action: utter_day6 79 | - intent: day6 80 | - action: utter_poison_response_Diarrhea 81 | - intent: bookdiarr 82 | - action: utter_link6 83 | 84 | - story: sorethroat 85 | steps: 86 | - intent: sorethroat_symptom 87 | - action: utter_sorethroat_symptom 88 | - intent: deny7 89 | - action: utter_sorethroat_remedies 90 | - action: utter_day7 91 | - intent: day7 92 | - action: utter_poison_response_sorethroat 93 | - intent: bookthroat 94 | - action: utter_link7 95 | 96 | - story: earpain 97 | steps: 98 | - intent: earpain_symptom 99 | - action: utter_earpain_symptom 100 | - intent: deny8 101 | - action: utter_earpain_remedies 102 | - action: utter_day8 103 | - intent: day8 104 | - action: utter_poison_response_earpainn 105 | - intent: bookear 106 | - action: utter_link8 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | -------------------------------------------------------------------------------- /nlu.yml: -------------------------------------------------------------------------------- 1 | version: "2.0" 2 | 3 | nlu: 4 | - intent: greet 5 | examples: | 6 | - hey 7 | - hello 8 | - hi 9 | - intent: goodbye 10 | examples: | 11 | - good bye 12 | - bye 13 | - see you 14 | - intent: affirm 15 | examples: | 16 | - yes 17 | - s 18 | - ok 19 | - intent: deny1 20 | examples: | 21 | - deny1 22 | - never 23 | - n 24 | - intent: deny2 25 | examples: | 26 | - deny2 27 | - never 28 | - n 29 | - intent: deny3 30 | examples: | 31 | - deny3 32 | - never 33 | - n 34 | - intent: deny4 35 | examples: | 36 | - deny4 37 | - never 38 | - n 39 | - intent: deny5 40 | examples: | 41 | - deny5 42 | - never 43 | - n 44 | - intent: deny6 45 | examples: | 46 | - deny6 47 | - never 48 | - n 49 | - intent: deny7 50 | examples: | 51 | - deny7 52 | - never 53 | - n 54 | - intent: deny8 55 | examples: | 56 | - deny8 57 | - never 58 | - n 59 | - intent: stomach_symptom 60 | examples: | 61 | - stomachache 62 | - stomachpain 63 | - pain in stomach 64 | - stomach ache 65 | - stomach 66 | - i have stomach pain 67 | - i have mild stomach ache 68 | - stomach pain for past 2 days 69 | - stomachache 70 | - upper stomach pain 71 | - stomachpain for 2days 72 | - intent: bot_challenge 73 | examples: | 74 | - are you a bot? 75 | - are you a human? 76 | - am I talking to a bot? 77 | - am I talking to a human? 78 | - intent: heart_burn_symptom 79 | examples: | 80 | - heart pain 81 | - discomfort from heat 82 | - overheating 83 | - heat exhaustion 84 | - intent: rash_symptom 85 | examples: | 86 | - rash 87 | - skin irritation 88 | - red spots on skin 89 | - itchy skin 90 | - intent: book 91 | examples: | 92 | - b 93 | - book 94 | - booking 95 | - book now 96 | - intent: fever_symptom 97 | examples: | 98 | - fever 99 | - viral fever 100 | - high fever 101 | - intent: cold_symptom 102 | examples: | 103 | - cold 104 | - cough 105 | - high cold 106 | - intent: Diarrhea_symptom 107 | examples: | 108 | - lose motion 109 | - diarrhea 110 | - losetools 111 | - intent: sorethroat_symptom 112 | examples: | 113 | - sore throat 114 | - throat pain 115 | - sore 116 | - intent: earpain_symptom 117 | examples: | 118 | - earpain 119 | - ear pain 120 | - ear 121 | - intent: bookstmch 122 | examples: | 123 | - bookstmch 124 | - books 125 | - bookstmch 126 | - intent: bookheart 127 | examples: | 128 | - bookheart 129 | - booksh 130 | - bookshea 131 | - intent: bookrash 132 | examples: | 133 | - bookrash 134 | - bookrs 135 | - booksrashes 136 | - intent: bookfever 137 | examples: | 138 | - bookfever 139 | - bookfev 140 | - bookviral 141 | - intent: bookcold 142 | examples: | 143 | - bookcold 144 | - bookcolder 145 | - bookhighcold 146 | - intent: bookdiarr 147 | examples: | 148 | - bookdiarr 149 | - bookdiarrs 150 | - bookdiarre 151 | - intent: bookthroat 152 | examples: | 153 | - bookthroat 154 | - bookthro 155 | - booksthr 156 | - intent: bookear 157 | examples: | 158 | - bookear 159 | - bookears 160 | - booksearg 161 | - intent: day1 162 | examples: | 163 | - less than 24 hours 164 | - more than 24 hours 165 | - less 166 | - day1 167 | - intent: day2 168 | examples: | 169 | - less than 24 hours 170 | - more than 24 hours 171 | - less 172 | - day2 173 | - intent: day3 174 | examples: | 175 | - less than 24 hours 176 | - more than 24 hours 177 | - less 178 | - day3 179 | - intent: day4 180 | examples: | 181 | - less than 24 hours 182 | - more than 24 hours 183 | - less 184 | - day4 185 | - intent: day5 186 | examples: | 187 | - less than 24 hours 188 | - more than 24 hours 189 | - less 190 | - day5 191 | - intent: day6 192 | examples: | 193 | - less than 24 hours 194 | - more than 24 hours 195 | - less 196 | - day6 197 | - intent: day7 198 | examples: | 199 | - less than 24 hours 200 | - more than 24 hours 201 | - less 202 | - day7 203 | - intent: day8 204 | examples: | 205 | - less than 24 hours 206 | - more than 24 hours 207 | - less 208 | - day8 -------------------------------------------------------------------------------- /data/stories.yml: -------------------------------------------------------------------------------- 1 | version: "2.0" 2 | 3 | stories: 4 | 5 | - story: user greet 6 | steps: 7 | - intent: greet 8 | - action: utter_greet 9 | 10 | - story: user bye 11 | steps: 12 | - action: utter_goodbye 13 | 14 | - story: head main 15 | steps: 16 | - intent: head_symptom 17 | - action: utter_day 18 | - intent: day 19 | - action: utter_head_stomach_symptom 20 | 21 | - story: head stomach ache 22 | steps: 23 | - action: utter_head_stomach_symptom 24 | - intent: affirm 25 | - action: utter_head_stomach_response 26 | - action: utter_did_that_help 27 | 28 | - story: headache area 29 | steps: 30 | - action: utter_head_stomach_symptom 31 | - intent: deny 32 | - action: utter_head_symptom 33 | 34 | - story: headache whole 35 | steps: 36 | - intent: head_whole 37 | - action: utter_head_whole_response 38 | - action: utter_did_that_help 39 | 40 | - story: headache side 41 | steps: 42 | - intent: head_sides 43 | - action: utter_head_sides_response 44 | - action: utter_did_that_help 45 | 46 | - story: headache crown 47 | steps: 48 | - intent: head_crown 49 | - action: utter_head_crown_response 50 | - action: utter_did_that_help 51 | 52 | - story: headache eyes 53 | steps: 54 | - intent: head_eyes 55 | - action: utter_head_eyes_response 56 | - action: utter_did_that_help 57 | 58 | - story: flu 59 | steps: 60 | - intent: flu_symptom 61 | - action: utter_day 62 | - intent: day 63 | - action: utter_flu_response 64 | - action: utter_did_that_help 65 | 66 | - story: dry vision 67 | steps: 68 | - intent: vision_symptom 69 | - action: utter_day 70 | - intent: day 71 | - action: utter_vision_types 72 | - intent: affirm 73 | - action: utter_dry_eyes_response 74 | - action: utter_did_that_help 75 | 76 | - story: allergy vision 77 | steps: 78 | - intent: vision_symptom 79 | - action: utter_day 80 | - intent: day 81 | - action: utter_vision_types 82 | - intent: deny 83 | - action: utter_allergy_eyes_response 84 | - action: utter_did_that_help 85 | 86 | - story: gas stomach 87 | steps: 88 | - intent: stomach_symptom 89 | - action: utter_day 90 | - intent: day 91 | - action: utter_stomach_types 92 | - intent: affirm 93 | - action: utter_gas_response 94 | - action: utter_did_that_help 95 | 96 | - story: poison stomach 97 | steps: 98 | - intent: stomach_symptom 99 | - action: utter_day 100 | - intent: day 101 | - action: utter_stomach_types 102 | - intent: deny 103 | - action: utter_poison_response 104 | - action: utter_did_that_help 105 | 106 | - story: back pain 107 | steps: 108 | - intent: back_pain_symptom 109 | - action: utter_back_pain_response 110 | 111 | 112 | - story: fever 113 | steps: 114 | - intent: fever_symptom 115 | - action: utter_fever_response 116 | 117 | - story: cough 118 | steps: 119 | - intent: cough_symptom 120 | - action: utter_cough_response 121 | 122 | - story: sore throat 123 | steps: 124 | - intent: sore_throat_symptom 125 | - action: utter_sore_throat_response 126 | 127 | - story: fatigue 128 | steps: 129 | - intent: fatigue_symptom 130 | - action: utter_fatigue_response 131 | 132 | - story: skin rash 133 | steps: 134 | - intent: skin_rash_symptom 135 | - action: utter_skin_rash_response 136 | - story: anxiety 137 | steps: 138 | - intent: anxiety_symptom 139 | - action: utter_anxiety_response 140 | 141 | - story: depression 142 | steps: 143 | - intent: depression_symptom 144 | - action: utter_depression_response 145 | 146 | - story: allergies 147 | steps: 148 | - intent: allergy_symptom 149 | - action: utter_allergy_response 150 | 151 | - story: hypertension 152 | steps: 153 | - intent: hypertension_symptom 154 | - action: utter_hypertension_response 155 | 156 | - story: joint pain 157 | steps: 158 | - intent: joint_pain_symptom 159 | - action: utter_joint_pain_response 160 | 161 | - story: insomnia 162 | steps: 163 | - intent: insomnia_symptom 164 | - action: utter_insomnia_response 165 | 166 | - story: shortness of breath 167 | steps: 168 | - intent: shortness_of_breath_symptom 169 | - action: utter_shortness_of_breath_response 170 | 171 | - story: nausea 172 | steps: 173 | - intent: nausea_symptom 174 | - action: utter_nausea_response 175 | 176 | - story: diarrhea 177 | steps: 178 | - intent: diarrhea_symptom 179 | - action: utter_diarrhea_response 180 | 181 | - story: migraine 182 | steps: 183 | - intent: migraine_symptom 184 | - action: utter_migraine_response 185 | 186 | - story: hearing loss 187 | steps: 188 | - intent: hearing_loss_symptom 189 | - action: utter_hearing_loss_response 190 | -------------------------------------------------------------------------------- /domain.yml: -------------------------------------------------------------------------------- 1 | version: "2.0" 2 | 3 | intents: 4 | - greet 5 | - goodbye 6 | - affirm 7 | - deny 8 | - day 9 | - head_symptom 10 | - head_whole 11 | - head_sides 12 | - head_crown 13 | - head_eyes 14 | - flu_symptom 15 | - vision_symptom 16 | - stomach_symptom 17 | - bot_challenge 18 | - back_pain_symptom 19 | - fever_symptom 20 | - cough_symptom 21 | - sore_throat_symptom 22 | - fatigue_symptom 23 | - skin_rash_symptom 24 | - anxiety_symptom 25 | - depression_symptom 26 | - allergy_symptom 27 | - hypertension_symptom 28 | - joint_pain_symptom 29 | - insomnia_symptom 30 | - shortness_of_breath_symptom 31 | - nausea_symptom 32 | - diarrhea_symptom 33 | - migraine_symptom 34 | - hearing_loss_symptom 35 | - heart_burn_symptom 36 | - rash_symptom 37 | - cold_symptom 38 | - Diarrhea_symptom 39 | - sorethroat_symptom 40 | - earpain_symptom 41 | - bookstmch 42 | - bookheart 43 | - bookrash 44 | - bookfever 45 | - bookcold 46 | - bookdiarr 47 | - bookthroat 48 | - bookear 49 | - day1 50 | - day2 51 | - day3 52 | - day4 53 | - day5 54 | - day6 55 | - day7 56 | - day8 57 | - deny1 58 | - deny2 59 | - deny3 60 | - deny4 61 | - deny5 62 | - deny6 63 | - deny7 64 | - deny8 65 | 66 | 67 | responses: 68 | utter_greet: 69 | - text: "Hi! How may I help you? Are you facing any problems,Say me?..." 70 | 71 | utter_did_that_help: 72 | - text: "I hope that this helps you.\n\ If you wish to continue please select any other problem...\n\ Else you can exit" 73 | utter_happy: 74 | - text: "Great, carry on!" 75 | utter_goodbye: 76 | - text: "\n\ Bye" 77 | utter_day1: 78 | - text: "Since when are you experiencing the pain?" 79 | buttons: 80 | - title: More than 24 hrs 81 | payload: /day1 82 | - title: Less than 24 hrs 83 | payload: /day1 84 | utter_day2: 85 | - text: "Since when are you experiencing the pain?" 86 | buttons: 87 | - title: More than 24 hrs 88 | payload: /day2 89 | - title: Less than 24 hrs 90 | payload: /day2 91 | utter_day3: 92 | - text: "Since when are you experiencing the pain?" 93 | buttons: 94 | - title: More than 24 hrs 95 | payload: /day3 96 | - title: Less than 24 hrs 97 | payload: /day3 98 | utter_day4: 99 | - text: "Since when are you experiencing the pain?" 100 | buttons: 101 | - title: More than 24 hrs 102 | payload: /day4 103 | - title: Less than 24 hrs 104 | payload: /day4 105 | utter_day5: 106 | - text: "Since when are you experiencing the pain?" 107 | buttons: 108 | - title: More than 24 hrs 109 | payload: /day5 110 | - title: Less than 24 hrs 111 | payload: /day5 112 | utter_day6: 113 | - text: "Since when are you experiencing the pain?" 114 | buttons: 115 | - title: More than 24 hrs 116 | payload: /day6 117 | - title: Less than 24 hrs 118 | payload: /day6 119 | utter_day7: 120 | - text: "Since when are you experiencing the pain?" 121 | buttons: 122 | - title: More than 24 hrs 123 | payload: /day7 124 | - title: Less than 24 hrs 125 | payload: /day 126 | utter_day8: 127 | - text: "Since when are you experiencing the pain?" 128 | buttons: 129 | - title: More than 24 hrs 130 | payload: /day8 131 | - title: Less than 24 hrs 132 | payload: /day8 133 | 134 | utter_stomach_types: 135 | - text: "Are you facing any of the following issues: Bloating, Constipation, Gas?" 136 | buttons: 137 | - title: "Yes" 138 | payload: /deny1 139 | - title: "No" 140 | payload: /deny1 141 | utter_iamabot: 142 | - text: "I am a bot, powered by Rasa." 143 | utter_link1: 144 | - text: "Please click this link to book an appointment (http://127.0.0.1/technoverse/patient/schedule.php?id=15)." 145 | utter_link2: 146 | - text: "Please click this link to book an appointment (http://localhost/technoverse/patient/schedule.php?id=16)." 147 | utter_link3: 148 | - text: "Please click this link to book an appointment (http://localhost/technoverse/patient/schedule.php?id=12)." 149 | utter_link4: 150 | - text: "Please click this link to book an appointment (http://localhost/technoverse/patient/schedule.php?id=57)." 151 | utter_link5: 152 | - text: "Please click this link to book an appointment (http://localhost/technoverse/patient/schedule.php?id=57)." 153 | utter_link6: 154 | - text: "Please click this link to book an appointment (http://localhost/technoverse/patient/schedule.php?id=57)." 155 | utter_link7: 156 | - text: "Please click this link to book an appointment (http://localhost/technoverse/patient/schedule.php?id=11)." 157 | utter_link8: 158 | - text: "Please click this link to book an appointment (http://localhost/technoverse/patient/schedule.php?id=11)." 159 | utter_heart_burn_symptom: 160 | - text: "Are you experiencing discomfort due to heat exposure? " 161 | buttons: 162 | - title: "Yes" 163 | payload: /deny2 164 | - title: "No" 165 | payload: /deny2 166 | utter_poison_response_stomach: 167 | - text: "I'm not a doctor, but if your condition worsens, please seek medical advice." 168 | buttons: 169 | - title: book now 170 | payload: /bookstmch 171 | utter_heart_burn_remedies: 172 | - text: "1. Move to a cooler place. 2. Stay hydrated with water or electrolyte drinks. 3. Use fans or air conditioning to cool down." 173 | utter_rash_symptom: 174 | - text: "Are you experiencing a rash or skin irritation? " 175 | buttons: 176 | - title: "Yes" 177 | payload: /deny3 178 | - title: "No" 179 | payload: /deny3 180 | utter_rash_remedies: 181 | - text: "1. Avoid scratching the rash. 2. Apply a mild, fragrance-free moisturizer. 3. If it worsens, consult a dermatologist." 182 | utter_fever_symptom: 183 | - text: "Are you facing any issue other than fever? " 184 | buttons: 185 | - title: "Yes" 186 | payload: /deny4 187 | - title: "No" 188 | payload: /deny4 189 | utter_fever_remedies: 190 | - text: "If you have a fever, here are some remedies you can try:\n1. Get plenty of rest and stay hydrated.\n2. Take over-the-counter fever-reducing medication like acetaminophen or ibuprofen, following the recommended dosage.\n3. Sponge yourself with lukewarm water to help lower your body temperature.\n4. If the fever persists or worsens, consult a healthcare professional." 191 | utter_poison_response_heart: 192 | - text: "I'm not a doctor, but if your condition worsens, please seek medical advice." 193 | buttons: 194 | - title: book now 195 | payload: /bookheart 196 | utter_poison_response_fever: 197 | - text: "I'm not a doctor, but if your condition worsens, please seek medical advice." 198 | buttons: 199 | - title: book now 200 | payload: /bookfever 201 | utter_poison_response_rash: 202 | - text: "I'm not a doctor, but if your condition worsens, please seek medical advice." 203 | buttons: 204 | - title: book now 205 | payload: /bookrash 206 | utter_cold_symptom: 207 | - text: "Are you currently experiencing symptoms of a cold?" 208 | buttons: 209 | - title: "Yes" 210 | payload: /deny5 211 | - title: "No" 212 | payload: /deny5 213 | utter_cold_remedies: 214 | - text: "If you have a cold, here are some remedies you can try:\n1. Rest and get plenty of sleep to help your body recover.\n2. Stay hydrated by drinking water, clear broths, or warm herbal teas.\n3. Use over-the-counter cold medications for symptom relief, such as decongestants or throat lozenges.\n4. Gargle with warm saltwater to soothe a sore throat.\n5. Use a humidifier to add moisture to the air, which can help ease congestion.\n6. If your symptoms worsen or persist for an extended period, consult a healthcare professional." 215 | utter_poison_response_cold: 216 | - text: "I'm not a doctor, but if your condition worsens, please seek medical advice." 217 | buttons: 218 | - title: book now 219 | payload: /bookcold 220 | utter_Diarrhea_symptom: 221 | - text: "Are you currently experiencing symptoms of diarrhea?" 222 | buttons: 223 | - title: "Yes" 224 | payload: /deny6 225 | - title: "No" 226 | payload: /deny6 227 | utter_Diarrhea_remedies: 228 | - text: "If you have diarrhea, here are some remedies you can try:\n1. Stay hydrated by drinking clear fluids, such as water, clear broths, or oral rehydration solutions.\n2. Avoid spicy, fatty, or greasy foods that can irritate your stomach.\n3. Eat bland, easy-to-digest foods like rice, bananas, applesauce, and toast (the BRAT diet).\n4. Get plenty of rest to help your body recover.\n5. If diarrhea is severe, persistent, or accompanied by other concerning symptoms, consult a healthcare professional." 229 | utter_poison_response_Diarrhea: 230 | - text: "I'm not a doctor, but if your condition worsens, please seek medical advice." 231 | buttons: 232 | - title: book now 233 | payload: /bookdiarr 234 | utter_sorethroat_symptom: 235 | - text: "Are you currently experiencing a sore throat?" 236 | buttons: 237 | - title: "Yes" 238 | payload: /deny7 239 | - title: "No" 240 | payload: /deny7 241 | utter_sorethroat_remedies: 242 | - text: "If you have a sore throat, here are some remedies you can try:\n1. Gargle with warm saltwater to soothe the throat.\n2. Stay hydrated by drinking plenty of fluids." 243 | utter_poison_response_sorethroat: 244 | - text: "I'm not a doctor, but if your condition worsens, please seek medical advice." 245 | buttons: 246 | - title: book now 247 | payload: /bookthroat 248 | utter_earpain_symptom: 249 | - text: "Are you currently experiencing symptoms of ear pain?" 250 | buttons: 251 | - title: "Yes" 252 | payload: /deny8 253 | - title: "No" 254 | payload: /deny8 255 | utter_earpain_remedies: 256 | - text: "If you have ear pain, here are some remedies you can try:\n1. Rest and avoid putting any objects into your ear, including cotton swabs.\n2. Apply a warm compress to the outside of the ear for comfort.\n3. Over-the-counter pain relievers, such as ibuprofen or acetaminophen, can help reduce pain and inflammation when used as directed.\n4. If you suspect an ear infection, consult a healthcare professional for appropriate treatment, which may include antibiotics.\n5. If the ear pain is severe, persistent, or accompanied by other concerning symptoms, seek medical attention promptly." 257 | utter_poison_response_earpainn: 258 | - text: "I'm not a doctor, but if your condition worsens, please seek medical advice." 259 | buttons: 260 | - title: book now 261 | payload: /bookear 262 | session_expiration_time: 60 263 | carry_over_slots_to_new_session: true --------------------------------------------------------------------------------