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.
https://www.youtube.com/watch?v=xFyYUg928h8
- Access to Google Sheets.
- Basic familiarity with Google Apps Script.
-
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 bePhone
Column B
: Header should beWA ID
- In
-
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.
- This is the main script file that contains all the Google Apps Script code.
- Copy and paste the content from the
Code.gs
provided in this repository.
- This HTML file contains the form used to send WhatsApp messages.
- Copy and paste the content from the
Form.html
provided in this repository.
- This HTML file is used for setting the API token and endpoint.
- Copy and paste the content from the
SettingsForm.html
provided in this repository.
-
Set API Token and Endpoint:
- Use the
Set Settings
menu item to open the settings form and enter your WhatsApp API token and endpoint.
- Use the
-
Sending Messages:
- Use the
Send Messages
menu 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
Contributions are welcome. Please fork this repository and submit a pull request if you have something to add.
Distributed under the MIT License. See LICENSE
for more information.