# Healthcare template Our **Healthcare** template is designed to provide quick and convenient access to information about your healthcare services, appointment scheduling, and patient registration for your users. This article will walk you through the features of our template and help you in enhancing your overall healthcare experience. ## 1. Prebuilt cases The following are the most common use cases (flows) that are prebuilt in this template: 1. **Start:** This flow offers the options for a new patient to register, book a consulation, view clinics closers to their place, collect medical reports and reach out to support for personalised queries. 2. **New patient registeration:** This flow collects the details of a new patient, eg., name, age, contact number, gender and email address and stores it in a database. 3. **Book a consultation:** This flow helps your users to book an appointment with your healthcare centre by collecting date, doctor you'd like to consult, date and time. 4. **Locate Nearby Clinics:** This flow collects the user's location details and shows them the clinics closer to their place. 5. **Collect report:** This flow helps your users collect their health reports by accessing their electronic records. 6. **Connect with support:** This flow provides customer support either by fetching answers from the trained FAQs or by connecting the bot user directly to the support agent to address complex queries. ### 1.1 Start - Display the main menu 1. **Start trigger**: Immediately after displaying the welcome message, **Start** flow is triggered. - It can also be triggered at any point of the conversation when the bot user types a sentence that matches with the [intent](https://docs.yellow.ai/docs/platform_concepts/studio/train/intents)- ```Main menu options```. 2. **Identify the channel**: A logic node ([channel filter](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/logic-nodes#2-channel-filter)) is used to identify the channel in which the bot conversation is happening. Nodes used in the further flow will be based on the channel. 3. **Quick reply buttons to display menu options**: Six menu options (**New Registeration, Book a consultation, Locate nearby clinics, Collect reports, and Connect with support**) are displayed. For WhatsApp, these(**New registeration, Consultation, Nearby clinics, Collect reports, Talk to support**) are shown as Quick reply buttons using the [WhatsApp list](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/prompt-nodes#22-whatsapp-list) node, and for other channels, these are shown as menu options using the [Quick reply](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/prompt-nodes#14-quick-replies) node. ![](https://i.imgur.com/KI8snQG.png) #### :pushpin: Tips - You can add multiple [channels](https://docs.yellow.ai/docs/platform_concepts/channelConfiguration/overview) to your bot to reach out to your users through any mode. - If you have varied menu options, you can add (or delete) the quick reply buttons and customize what can be displayed in the main menu. ### 1.2 Locate nearby clinics ![](https://i.imgur.com/fcnNIEf.png) 1. **Start Trigger:** This flow is triggered when the bot user selects the **Locate nearby clinics** button when menu options are displayed (start flow). - It can also be triggered at any point of the conversation when the bot user types a sentence that matches with the [intent](https://docs.yellow.ai/docs/platform_concepts/studio/train/intents)- ```Locate nearby clinics``` 2. **Collect location:** User location is collected using the [location](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/prompt-nodes#24-location) node. This detail is stored in a variable named **location**. 3. **Flash message:** A flash message 'Please wait while we fetch the nearest branch.' is displayed to the user using [Text](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/message-nodes#1-text) node. 4. **Nearby clinics:** A search happens in the [database node](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/action-nodes#23-database) that contains the location details of all the clinics. - If there is a clinic closer to the user location, the flow moves to the **success** branch. - If there's no clinic in or closer to the user location, the flow moves to the **fallback** and conveys this in a [text node](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/message-nodes#1-text). ![](https://i.imgur.com/r2tHPOX.png) 5. **Clinic details:** The success branch is connected to a [function node](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/action-nodes#24-function) which executes the function **nearbyClinics** and stores the clinic details in the variable **fiveNearbyDealers**. 6. **Display the clinic details:** The [function node](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/action-nodes#24-function) is then connected to a [variable node](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/action-nodes#22-variables) which inturn is connected to a [condition node](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/logic-nodes#1-condition) and [text node](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/message-nodes#1-text). At this step, the list of clinics will be displayed to the end user. ### 1.3 Connect with support [Prompt nodes](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/prompt-nodes) are used to fetch the bot user's information such as ```phone number```, ```name```, and ```query```. These details are stored in the [respective variables](https://docs.yellow.ai/docs/platform_concepts/studio/build/bot-variables#31-create-a-variable-via-nodes) and passed into the [Raise ticket](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/action-nodes#17-raise-ticket) action node, this will connect the user to the support agent. ![](https://i.imgur.com/7yl13Mx.png) > Inbox must be set up to connect the bot user to a live support agent. A support agent must be available (online) when the support request is raised. Click [here](https://docs.yellow.ai/docs/platform_concepts/inbox) to learn about Inbox. ![](https://i.imgur.com/YX5iEHs.png) #### :pushpin: Tips - Add/ Delete the number of FAQs listed on the Quick reply node. - Add [FAQs](https://docs.yellow.ai/docs/platform_concepts/studio/train/add-faqs) based on your industry. ![](https://i.imgur.com/GAmjyQ7.png) - **Name** and **Query** are the mandatory fields to use a **Raise ticket** node. You can reduce the prompt nodes to avoid collecting details from the users prior or you can add more prompt nodes to collect other details before connecting to the agent. - As per requirements, you can fetch user details (name, email address, number) using **Prompt** nodes even if the user selects FAQs. This data can be used later for acquisition or monitoring purposes.