- Created Using GEMINI AI,pyperclip & pyautogui
- Must Have Python Installed Latest Version
- Must Need To Have An API Key From GEMINI API By Google
https://ai.google.dev/
grab an API key from this URL simply just by log into your google account
-
Fork/Clone/Download this repo
git clone https://github.com/PRITAMSLEARNINGACCOUNT/Auto-Reply-CHATBOT
-
Install uv
pip install uv
-
Create a virtual environment for this project
uv venv
-
Load the virtual environment
- On Windows Terminal:
.venv\Scripts\activate
- On Linux and Git Bash:
source .venv/bin/activate
- On Windows Terminal:
-
Run
uv pip install -r requirements.txt
-
Add Your GEMINI API Key To The System Environmental Varriables
-
-
Open the Start Menu:
- Click on the Windows icon in the bottom-left corner of the screen or press the
Windows
key on your keyboard.
- Click on the Windows icon in the bottom-left corner of the screen or press the
-
Search for "Environment Variables":
- Type "environment variables" into the search bar and select "Edit the system environment variables" from the results.
-
Open Environment Variables Window:
- In the System Properties window, click on the "Environment Variables..." button.
-
Add a New System Variable:
- In the Environment Variables window, you will see two sections: User variables and System variables.
- Click the "New..." button in the System variables section.
-
Enter Variable Name and Value:
- In the New System Variable dialog, enter the variable name (e.g.,
GEMINI_API_KEY
) in the "Variable name" field. - Enter the variable value (e.g.,
YOURAPIKEY
) in the "Variable value" field. - Click "OK" to save the new variable.
- In the New System Variable dialog, enter the variable name (e.g.,
-
Apply Changes:
- Click "OK" in the Environment Variables window.
- Click "OK" in the System Properties window to apply the changes.
-
Open Terminal:
- You can open Terminal from the Applications folder or by pressing
Ctrl
+Alt
+T
(Linux) orCmd
+Space
and typingTerminal
(macOS).
- You can open Terminal from the Applications folder or by pressing
-
Edit the Profile File:
- Depending on the shell you are using (e.g.,
bash
,zsh
), you will need to edit the corresponding profile file: - For
bash
, use.bashrc
or.bash_profile
. - For
zsh
, use.zshrc
. - Open the profile file in a text editor:
nano ~/.bashrc # For bash nano ~/.zshrc # For zsh
- Depending on the shell you are using (e.g.,
-
Add the Environment Variable:
- Add the following line to the end of the file:
export GEMINI_API_KEY="YOURAPIKEY"
-
Apply the Changes:
- Save the file and exit the editor (
Ctrl
+X
, thenY
, thenEnter
for nano). - Source the profile file to apply the changes:
source ~/.bashrc # For bash source ~/.zshrc # For zsh
- Save the file and exit the editor (
-
Verify the Addition:
- Type
echo $MY_KEY
to verify that the new environment variable has been added correctly.
- Type
-
-
-
Run
CHATBOT.py