Skip to content

AdnanMahida/ChatBot

Repository files navigation

ChatBot

An android app built using Jetpack (ViewModel), Material Design and MVVM architecture. consumes BrainShop API for chatbot response.

Jetpack compose support

For more info check out the -b compose branch.

Download

Go to the Releases to download the latest APK.

Tech stack & Open-source libraries

  • Minimum SDK level 24
  • Kotlin based, Coroutines + LiveData for asynchronous.
  • Jetpack
  • Lifecycle: Observe Android lifecycles and handle UI states upon the lifecycle changes.
  • ViewModel: Manages UI-related data holder and lifecycle aware. Allows data to survive configuration changes such as screen rotations.
  • ViewBinding: Binds UI components in your layouts.
  • MVVM Architecture (View - ViewModel - Model)
  • Repository Pattern
  • Retrofit2 & OkHttp3: Construct the REST APIs and paging network data.

Setup Requirements

First, obtain your API key from BrainShop and add it in a file named gradle.properties within the root directory:

BRAIN_ID="****"
API_KEY="****"

Then, replace it in the build.gradle(:app) :

...
buildConfigField("String", "BRAIN_ID", BRAIN_ID)
buildConfigField("String", "API_KEY", API_KEY)

Finally, rebuild the project for changes to take effect

Done <3 Happy Coding

About

ChatBot using BrainShop.ai

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages