This Python script enables you to interact with Bard, an AI language model developed by Google, using WhatsApp by utilizing the pyautogui library. Video Demonstration Link - https://www.youtube.com/watch?v=ZPSo-tpU96s
-
Clone the project on your local system using:
git clone https://github.com/adhirajpandey/Bard-in-Whatsapp
-
Install the dependencies:
pip install -r requirements.txt
-
Open Whatsapp and Bard inside Browser side by side.
-
Open python interpreter and write the following commands
import pyautogui
thenpyautogui.mouseInfo()
. -
Customize these coordinates as per your need in the first few lines of
main.py
file using above utility. -
Run the script using :
python main.py
- The script relies on GUI automation and the positioning of elements on the screen. It may not work properly if the WhatsApp interface or Bard's responses Interface change
- The accuracy of the script depends on the reliability and stability of the pyautogui library and the underlying operating system.