AidRay is a first aid chatbot application developed for Android. It provides users with emergency first aid information based on their input. The chatbot uses a predefined JSON file containing intents, patterns, and responses to generate relevant answers. The app operates entirely offline, making it accessible in any situation. This tool is especially useful for college and school students, providing them with quick and reliable first aid guidance right at their fingertips. AidRay is designed to assist college and school students by providing easy access to first aid information. It's a practical tool for learning and applying first aid knowledge in emergencies, making it an excellent resource for educational settings.
- First Aid Assistance: Get instant first aid advice based on user input.
- Offline Functionality: Operates completely offline using a local
intents.jsonfile. - Multi-language Support: Includes English, Tamil, and Hindi languages for a more personalized experience.
- Emergency Call: Provides an option to call emergency services directly from the app.
- Android Studio: For building and running the app.
- Java 8 or higher: Ensure you have Java 8 or a newer version installed.
-
Clone the Repository
git clone https://github.com/your-username/aidray-chatbot.git cd aidray-chatbot -
Open the Project
- Open Android Studio.
- Select
File>Openand navigate to the cloned repository.
-
Sync Gradle
- Click on
Sync Project with Gradle Filesto ensure all dependencies are resolved.
- Click on
-
Run the App
- Connect an Android device or start an emulator.
- Click on the
Runbutton in Android Studio.
-
Welcome Screen
- Choose your preferred language from the language selection screen.
- Tap on "Start Chat" to begin interacting with the chatbot.
-
Chat Interface
- Type your query related to first aid into the input field and tap "Send."
- The chatbot will provide responses based on the patterns defined in
intents.json.
-
Emergency Call
- Tap on the "Emergency Call" button to initiate a call to emergency services.
app/src/main/assets/intents.json: Contains the intents, patterns, and responses used by the chatbot.app/src/main/res/layout/activity_chat.xml: Layout for the chat interface.app/src/main/res/layout/activity_main.xml: Layout for the main welcome screen.app/src/main/java/com/example/aidray_bot/ChatActivity.java: Java class handling chat interactions.app/src/main/java/com/example/aidray_bot/MainActivity.java: Java class for the welcome screen and language selection.
- Thanks to Android Developers for providing the tools and resources to build Android apps.



