Automate the process of uploading images on WhatsApp using this script. Simplify the image upload workflow, extract essential information from captions, and seamlessly integrate with your backend for efficient data entry. Empower your WhatsApp interactions with streamlined image processing.
- Simplifies image upload process on WhatsApp
- Extracts information from image captions for data entry
- Seamless integration with backend for efficient data handling
- Enhance your workflow and save time on repetitive tasks
# Install dependencies
pnpm install
Before you can start using the WhatsApp Image Upload Automation, follow these steps:
-
Create a
.env
file in the root of your project. -
Open the
.env
file in a text editor and add the following variables:TARGET_WA_MOBILE= # Add your target WhatsApp mobile number (including international code) DATA_ENTRY_API= # Add the URL of your Flask Data Entry API endpoint
pnpm start
After you run the start command, follow these steps to link your device using WhatsApp Web (if running for the first time) or if the directory doesn't contains the tokens
folder:
-
Open WhatsApp on your mobile device.
-
Navigate to the chat list and tap on the three dots in the top-right corner.
-
Select "Linked Devices" from the menu.
-
Choose "Link a device."
-
Scan the QR code displayed on your terminal or screen using your WhatsApp app.
-
Once scanned, your device will be linked, and you can start using the automation script.
pnpm test