SendWhatsappCloud
send unlimited whatsapp cloud api messages using google sheet and appscript
Install / Use
/learn @drhema/SendWhatsappCloudREADME
Google Sheets WhatsApp Integration
This repository contains scripts and HTML forms for sending WhatsApp messages via Google Sheets and Google Apps Script. It allows for managing API tokens and endpoints directly within Google Sheets.
Please check the video tutorial:
https://www.youtube.com/watch?v=xFyYUg928h8
Prerequisites
- Access to Google Sheets.
- Basic familiarity with Google Apps Script.
Setup Instructions
Step 1: Create a Google Spreadsheet
-
Create a new Google Spreadsheet.
- Ensure the spreadsheet is set to English language.
- Rename the first sheet to
Sheet1.
-
Setup the columns:
- In
Sheet1, create the following columns:Column A: Header should bePhoneColumn B: Header should beWA ID
- In
Step 2: Create AppScript
-
Open the Apps Script environment:
- Go to
Extensions>Apps Script.
- Go to
-
Create the files:
- You will need to create three files in the Apps Script editor. Make sure the file names are case-sensitive.
File 1: Code.gs
- This is the main script file that contains all the Google Apps Script code.
- Copy and paste the content from the
Code.gsprovided in this repository.
File 2: Form.html
- This HTML file contains the form used to send WhatsApp messages.
- Copy and paste the content from the
Form.htmlprovided in this repository.
File 3: SettingsForm.html
- This HTML file is used for setting the API token and endpoint.
- Copy and paste the content from the
SettingsForm.htmlprovided in this repository.
Usage
-
Set API Token and Endpoint:
- Use the
Set Settingsmenu item to open the settings form and enter your WhatsApp API token and endpoint.
- Use the
-
Sending Messages:
- Use the
Send Messagesmenu to open the message sending form. Enter the necessary details and click send to dispatch messages to the numbers listed in your Google Sheet.
- Use the
Contributing
Contributions are welcome. Please fork this repository and submit a pull request if you have something to add.
License
Distributed under the MIT License. See LICENSE for more information.
