π₯ AI Chatbot Installer β Powerful, Lightweight, and Automated π
The AI Chatbot Installer is a Bash script that simplifies the setup and configuration of an AI-powered chatbot supporting OpenAI GPT-4 and Google Gemini AI models. It automates dependency installation, API setup, and chatbot script creation, allowing users to interact with AI instantly from their Linux terminal!
βΈ»
β¨ Key Features & Functionalities
π₯οΈ User Interface (UI) Enhancements
β Color-coded output (green, yellow, red, magenta) for easy readability. β Structured, bordered UI for a professional and clean terminal experience.
βοΈ Automated System Preparation
βοΈ Installs required dependencies in a single command:
sudo apt update -y && sudo apt install -y jq curl
β’ jq β Parses JSON responses from AI APIs. β’ curl β Handles API requests efficiently.
π€ AI Provider Selection
πΉ Choose between OpenAI GPT-4 and Google Gemini AI. πΉ Securely input and store API keys & configuration details. πΉ Displays a confirmation message after successful setup.
π Automatic Chatbot Script Generation
π Generates an AI chatbot script (ai_chatbot_1v.sh) that includes: βοΈ A structured UI for smooth interaction. βοΈ Continuous AI-powered conversation loop. βοΈ Error handling for invalid inputs. βοΈ Logs AI responses for reference.
π Execution & Chat History Logging
πΎ Saves conversation logs with timestamps:
OUTPUT_FILE="chat_history_$(date +%Y%m%d_%H%M%S).txt"
π’ The chatbot script is automatically launched after setup!
βΈ»
π§ How It Works
1οΈβ£ Run the script:
chmod +x install_ai.sh && ./install_ai.sh
2οΈβ£ Follow the prompts: β’ Select AI provider (OpenAI or Google Gemini). β’ Enter API key securely. 3οΈβ£ Start chatting with AI instantly! π
βΈ»
π‘ Use Cases
π» Linux-based AI chatbot for: βοΈ Personal Productivity β AI-powered assistance on the go. βοΈ Automation & Scripting β Use AI responses in scripts. βοΈ Research & Learning β Get real-time AI-powered answers.
π Lightweight, fast, and powerful! π Try it now!