-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
Chatbot
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/caches | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
/.idea/navEditor.xml | ||
/.idea/assetWizardSettings.xml | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
.cxx | ||
local.properties |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Sat Oct 28 10:25:17 IST 2023 | ||
gradle.version=8.0 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
## Income Tax Chatbot App | ||
|
||
This is an Android application developed using Android Studio and Firebase Authentication for a simple Income Tax Chatbot. Users can sign up, sign in, reset passwords, and communicate with the chatbot to get information about income tax-related queries. | ||
|
||
### Features: | ||
- User Authentication (Sign Up, Sign In, Reset Password) using Firebase Authentication. | ||
- Chat interface with a chatbot powered by OpenAI's GPT-3.5. | ||
- Messages sent by the user and responses from the chatbot are displayed in a RecyclerView. | ||
- Firebase Firestore is used to store user information. | ||
|
||
### How to Use: | ||
1. Clone the repository to your local machine. | ||
2. Open the project in Android Studio. | ||
3. Replace the Firebase configuration file (`google-services.json`) with your own obtained from the Firebase Console. | ||
4. Replace the OpenAI API key in the `MainActivity.java` file (`CallAPI()` method) with your own API key. | ||
5. Build and run the application on an Android device or emulator. | ||
|
||
### OpenAI API Key: | ||
You need to obtain an API key from OpenAI to use the chatbot feature. Visit the [OpenAI website](https://openai.com) to sign up and get your API key. | ||
|
||
### Firebase Account: | ||
You need to set up a project on Firebase and enable Firebase Authentication and Firestore. Refer to the [Firebase documentation](https://firebase.google.com/docs) for detailed instructions on setting up Firebase services. | ||
|
||
### Note: | ||
- This application is provided as a sample and may require further customization according to your requirements. | ||
- Make sure to handle sensitive information such as API keys securely, especially when sharing the code publicly. | ||
|
||
### Contributors: | ||
- Priyanshu Gupta | ||
|
||
### License: | ||
- MIT License | ||
|
||
Feel free to contribute, report issues, or suggest improvements! |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
plugins { | ||
id("com.android.application") | ||
id("com.google.gms.google-services") | ||
} | ||
|
||
android { | ||
namespace = "com.example.income_tax_chatbot" | ||
compileSdk = 34 | ||
|
||
defaultConfig { | ||
applicationId = "com.example.income_tax_chatbot" | ||
minSdk = 24 | ||
targetSdk = 34 | ||
versionCode = 1 | ||
versionName = "1.0" | ||
|
||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = false | ||
proguardFiles( | ||
getDefaultProguardFile("proguard-android-optimize.txt"), | ||
"proguard-rules.pro" | ||
) | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
} | ||
|
||
|
||
|
||
dependencies { | ||
|
||
implementation("androidx.appcompat:appcompat:1.6.1") | ||
implementation("com.google.android.material:material:1.10.0") | ||
implementation("androidx.constraintlayout:constraintlayout:2.1.4") | ||
implementation("com.google.firebase:firebase-auth:22.2.0") | ||
implementation("com.google.firebase:firebase-firestore") | ||
implementation(platform("com.google.firebase:firebase-bom:32.4.0")) | ||
implementation("com.google.firebase:firebase-analytics") | ||
testImplementation("junit:junit:4.13.2") | ||
androidTestImplementation("androidx.test.ext:junit:1.1.5") | ||
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") | ||
implementation("com.squareup.okhttp3:okhttp:4.10.0") | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="gcm_defaultSenderId" translatable="false">870349213065</string> | ||
<string name="google_api_key" translatable="false">AIzaSyCzdYQnSevHPQU-1w1YR0FQ4ebhOmH2XCM</string> | ||
<string name="google_app_id" translatable="false">1:870349213065:android:79c63670003c77024e2558</string> | ||
<string name="google_crash_reporting_api_key" translatable="false">AIzaSyCzdYQnSevHPQU-1w1YR0FQ4ebhOmH2XCM</string> | ||
<string name="google_storage_bucket" translatable="false">chatbot-c0cb1.appspot.com</string> | ||
<string name="project_id" translatable="false">chatbot-c0cb1</string> | ||
</resources> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1:870349213065:android:79c63670003c77024e2558 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": 3, | ||
"artifactType": { | ||
"type": "APK", | ||
"kind": "Directory" | ||
}, | ||
"applicationId": "com.example.income_tax_chatbot", | ||
"variantName": "debug", | ||
"elements": [ | ||
{ | ||
"type": "SINGLE", | ||
"filters": [], | ||
"attributes": [], | ||
"versionCode": 1, | ||
"versionName": "1.0", | ||
"outputFile": "app-debug.apk" | ||
} | ||
], | ||
"elementType": "File" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#- File Locator - | ||
listingFile=../../apk/debug/output-metadata.json |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
appMetadataVersion=1.1 | ||
androidGradlePluginVersion=8.1.1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"version": 3, | ||
"artifactType": { | ||
"type": "COMPATIBLE_SCREEN_MANIFEST", | ||
"kind": "Directory" | ||
}, | ||
"applicationId": "com.example.income_tax_chatbot", | ||
"variantName": "debug", | ||
"elements": [] | ||
} |