Skip to content

Mayank-Chaubey/Terminal_AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”₯ 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!

About

πŸš€ AI Chatbot Installer A Bash script to set up an AI-powered chatbot supporting OpenAI GPT-4 and Google Gemini AI models. Automates installation, API setup, and chatbot creation for seamless AI interaction in the Linux terminal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages