Skip to content

Commit

Permalink
Merge pull request #80 from Priyanshu2746/chatbot
Browse files Browse the repository at this point in the history
Chatbot
  • Loading branch information
yagyesh-bobde committed Apr 30, 2024
2 parents 4be36e2 + 0d80643 commit 2ebca9c
Show file tree
Hide file tree
Showing 805 changed files with 87,093 additions and 81 deletions.
15 changes: 15 additions & 0 deletions Chatbots/TAX_GPT/.gitignore
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
2 changes: 2 additions & 0 deletions Chatbots/TAX_GPT/.gradle/buildOutputCleanup/cache.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
Binary file not shown.
Binary file added Chatbots/TAX_GPT/.gradle/file-system.probe
Binary file not shown.
Empty file.
3 changes: 3 additions & 0 deletions Chatbots/TAX_GPT/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions Chatbots/TAX_GPT/.idea/assetWizardSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Chatbots/TAX_GPT/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Chatbots/TAX_GPT/.idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions Chatbots/TAX_GPT/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Chatbots/TAX_GPT/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

155 changes: 155 additions & 0 deletions Chatbots/TAX_GPT/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions Chatbots/TAX_GPT/README.md
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!
1 change: 1 addition & 0 deletions Chatbots/TAX_GPT/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
50 changes: 50 additions & 0 deletions Chatbots/TAX_GPT/app/build.gradle.kts
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>
1 change: 1 addition & 0 deletions Chatbots/TAX_GPT/app/build/gmpAppId.txt
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": []
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 2ebca9c

Please sign in to comment.