An AI Chatbot using gemini API.
aichatbot is a conversational AI chatbot that utilizes the Gemini API to provide users with a unique and interactive experience. This chatbot is designed to engage users in a natural-sounding conversation, using context and understanding to respond to user input.
- Conversational Interface: Engage in a conversation with the chatbot, using natural language to ask questions, share thoughts, and receive responses.
- Gemini API Integration: Leverage the power of the Gemini API to provide accurate and informative responses to user queries.
- Contextual Understanding: The chatbot uses context to understand the conversation flow and provide relevant responses.
Follow these steps to build and run the aichatbot app on your local machine:
- Flutter SDK: Ensure you have Flutter installed. You can download it from the official Flutter website.
- Dart SDK: Dart is included with Flutter, so no separate installation is needed.
- Android Studio: For Android development, install Android Studio.
- Xcode: For iOS development, install Xcode from the Mac App Store.
- VS Code: (Optional) Install Visual Studio Code for a lightweight code editor.
-
Clone the repository:
git clone https://github.com/sundaramkumar/aichatbot.git cd aichatbot
-
Install dependencies:
flutter pub get
Register for Gemini API and get your API and replace it in the main.dart file
- Start an Android emulator or connect an Android device.
- Run the app:
flutter run
- Open the iOS project in Xcode:
open ios/Runner.xcworkspace
- Select a simulator or connect an iOS device.
- Run the app:
- In Xcode, click the play button or run:
flutter run
-
Build the APK:
flutter build apk --release
-
The APK will be located in
build/app/outputs/flutter-apk/app-release.apk
.
-
Build the iOS app:
flutter build ios --release
-
The build will be located in
build/ios/iphoneos/
.
- Login
- scroll messages to the bottom of the page
- provision to copy messages
- enter to send message
- option to save the chat as a text file / download