OpenAI GPT-3.5 powered free chatbot android app in Flutter similar to Chat-GPT
- Open-ended conversation with AI Chatbot powered by
gpt-3.5-turbo
model - Bot can respond to many queries e.g. Summarize content, translate to other languages, factual answers, draft emails, help in programming, etc
- Bot remembers the last 2 sets of conversations so context is maintained while chatting
- Users can generate content e.g. poems, quotes, thoughts etc using AI and share on social media
- A settings screen to set the OpenAI API key, word limit, signature for generated content.
- Copy chat messages functionality
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Flutter setup: https://docs.flutter.dev/get-started/install/macos
- To create a new flutter app
flutter create my_app
- To check missing dependencies
flutter doctor -v
- List emulators
$ANDROID_HOME/emulator/emulator -list-avds
- Start an emulator
$ANDROID_HOME/emulator/emulator @1536_1024_device
- Check if devices are runnning
flutter devices
- Run app
flutter run
- To install any package
flutter pub add <package_name>
orflutter pub add -d change_app_package_name
- Run in release mode
flutter run --release
- Build release apk
flutter build apk
- Generate upload key in android/app
keytool -genkey -v -keystore upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload -storetype JKS
- Check fingerprint
keytool -list -v -keystore ./android/app/upload-keystore.jks -alias upload
- Change package name
flutter pub add -d change_app_package_name
&&flutter pub run change_app_package_name:main me.varunon9.pocket_ai
- Update launcher icon
flutter pub add -d flutter_launcher_icons
&&flutter pub run flutter_launcher_icons:main
- Build releas bundle
flutter build appbundle
- Update launcher icon: https://pub.dev/packages/flutter_launcher_icons
- Integrate Firebase: https://firebase.google.com/docs/flutter/setup?platform=ios
- Firebase Analytics: https://firebase.google.com/docs/analytics/get-started?platform=flutter
- Firebase Crashlytics: https://firebase.google.com/docs/crashlytics/get-started?platform=flutter
- Firebase Firestore: https://firebase.google.com/docs/firestore/quickstart#dart
- Release android app: https://docs.flutter.dev/deployment/android
- OpenAI API docs: https://platform.openai.com/docs/introduction/overview
- Chat-GPT APIs: https://openai.com/blog/introducing-chatgpt-and-whisper-apis
- Login to firebase:
firebase login
- Select project:
flutterfire configure
- Signup https://beta.openai.com/signup
- Visit https://beta.openai.com/account/api-keys and create free API key ($18 credit for 3 months)
- Check API key usage: https://platform.openai.com/account/usage
- Setup usage limits: https://platform.openai.com/account/billing/limits