How to Use Google Sheets to Organize Newsletters in Make#
Make allows you to automate manual processes, combining various services.
In this article, we will consider how to use Google Sheets and GREEN-API to automate mailings in WhatsApp.
Recommendations for sending
WhatsApp may block the number when sending mass messages. To reduce the risk of blocking, set a delay in sending messages from the queue for 10-15 seconds during the broadcast. To do this, use the Set Settings method with the delaySendMessagesMilliseconds
parameter (see examples).
Table of Contents#
- Setting up the Green-API application
- Creating a spreadsheet
- Setting up the process of sending messages
- Setting up the process of sending messages with files
- Start and test
Setting Green-API application#
Setting Green-API application is described in detail in the section Integration setup
Creating a spreadsheet#
The first step is to create a spreadsheet that will store all the necessary numbers and messages.
-
Log in or register an account in Google Sheets
-
Create a new empty spreadsheet
-
Create 2 columns in the spreadsheet:
- For a phone or a group number - column
A
- The phone number must be specified in international format without the
+
sign. At the end, add the postfix@c.us
- You don't need to generate the group chat number yourself, you can get it using various methods GREEN-API.
- The phone number must be specified in international format without the
- For the message text - column
B
How to format the message text?
Text formatting occurs by adding symbols before the text and after its end.
For example, bolding can be done using the symbols*
:*bold text*
-> bold text.
You can read more about text formatting methods in the article how to format messages. - For a phone or a group number - column
Setting up the process of sending messages#
Script template
You can create a script according to the instructions or use our ready-made template.
Getting spreadsheet data#
-
Click the
+
sign, find Google Sheets in the list of applications -
Select the Get Range Values module
-
Click on the added module to open its settings
-
Click
Create a connection
to add a connection to your Google Sheets account -
Select the created spreadsheet in the
Spreadsheet ID
parameter -
Select a sheet with filled data in the
Sheet Name
parameter -
Specify the range of values
A2:B
in theRange
field, where the columns are:A
- Phone numbersB
- Message text
-
Click
Save
to save values
Sending messages#
Sending text messages in Green-API is implemented through the "Send Message" module. It accepts the chat ID (personal or group) and the message text.
-
Click on the
+
sign, find GREEN-API for WhatsApp in the list of applications -
Add the Send a Message module from the Green-API application
-
Click
Create a connection
to add a connection to the instance- Specify the values of your instance
idInstance
andapiTokenInstance
- Specify the values of your instance
-
Select the column with phone numbers from the spreadsheet. In our case, this is column
A
-
Select column
B
with the message text
Now you can move on to testing the automation.
Setting up the process of sending messages with files#
Script template
You can create a script according to the instructions or use our ready-made template.
To send messages with files, you will need another module - "Send File By Url". It specifies the recipient, link to the file, its name, text message (optional).
How to send a file from your computer?
To send a file from your computer, use the UploadFile method, using Postman or the "API" page in your account.
The link lifetime is 15 days. The maximum size of files sent is 100 MB. The type of file sent and the method of sending it is determined by the file extension.
Getting spreadsheet data#
-
Create a separate spreadsheet for sending files with the following columns:
ChatID
- contains phone numbers or groups as in the first stepFile description
/Message text
- for the message text that will be sent along with the file. Optional fieldFile link
- contains a link to the file to be sentFile name
- it is necessary to specify the name of the file with its extension, which will be displayed to the user
-
Select the created spreadsheet with files in the Google Sheets module
-
Specify the range of values
A2:D
in theRange
field, where the columns are:A
- Phone numbersB
- Description of the file (text message)C
- Link to the fileD
- File name with extension
Sending messages#
-
Add the Send a File By URL module from the Green-API application
-
Click
Create a connection
to add a connection to the instance- Specify your instance's
idInstance
andapiTokenInstance
(The script will receive messages from the number associated with this instance)
- Specify your instance's
-
In the
Chat Id
field, specify the column with phone numbers -
In the
Link to outgoing file
field, specify the column containing the link to the files -
In the
File Name
field, specify the column with the file name -
In the
File Caption
field specify the column with the text message. If you plan to send only files, without signatures to them, you can skip this step
How to add a text message only to some files
In this case, do not skip this step. In the column for text messages, specify the description only in those rows where the necessary messages are located. Empty cells will be ignored, and there will be no text message.
How to send a file from
Google Drive?
To send a file from Google Drive, you need to modify the link for direct access to the file. To do this, you need to follow these steps:
-
Open Google drive and find the file you want to send
-
Select the file to send, right-click. Then select “Get link” in the menu, set the access menu to “Everyone who has the link” with “Reader” rights. After that, click “Copy link” and “Done”
-
Now we need to get the file ID. To do this, paste the resulting link into a text editor
- Example of a link to a file:
https://drive.google.com/file/d/13sseEurJDYZxb-ueH2VOpVoYY4U5Kvu1/view?usp=sharing
- The file ID is contained between
d/
and/view
(for documents - betweend/
and/edit
). In this case, the file ID will be:13sseEurJDYZxb-ueH2VOpVoYY4U5Kvu1
- Example of a link to a file:
-
To create a direct link to the file, insert the file ID at the end of the following link:
* The final link should look like this:https://drive.google.com/uc?export=download&id=
https://drive.google.com/uc?export=download&id=13sseEurJDYZxb-ueH2VOpVoYY4U5Kvu1
-
Use the final link in the
sendFileByUrl
method
How to send files from other file storages is described in the article "How to send a file using the sendFileByUrl
method, using an external storage?".
Start and test#
Now that the automation is set up, you can set the conditions under which it will be executed.
Make offers the following options for conditions for starting:
Immediately
- immediate sending; set automatically when configuring the module with an incoming webhookAt regular intervals
- sending at regular intervals (the interval is specified in theMinutes
parameter below the selection list)Once
- once according to the schedule (date and time are specified in theDate
parameter below the selection list)Every day
- every day (time is specified in theDate
parameter below the selection list)Days of the week
- certain days of the week at a specified time (days of the week are selected in theDays
parameter, time is specified in theTime
parameter below the selection list)Days of the month
- on certain days of the month at a specified time (dates are selected in theDays
parameter, time is specified in theTime
parameter below the selection list)Specified dates
- on specified dates (months are selected in theMonths
parameter, dates are selected in theDays
parameter, time is specified in theTime
parameter below the selection list)On demand
- automation will only run when the module is called manually (by API request or via the "Run Scenario" module)

For testing, we will run automation once, having previously set the message sending interval to 10000 ms via the personal account to reduce the risk of blocking.

Run automation. The automation will complete its execution after all messages are sent to the queue.


This is not the end of the mailing. Messages will be gradually sent from the outgoing message queue.
You can view the remaining message queue using the ShowMessagesQueue method.
This way, you can set up regular mailings of text messages and messages with files using Make.
You can see other examples of using scripts below.
Green-API Application Usage Examples#
How to Make a Chatbot with Artificial Intelligence from OpenAI in WhatsApp
How to Make a Messaging Experience between WhatsApp and Slack
How to Make a Messaging Experience between WhatsApp and Discord