Skip to content

How to send text messages#

MS Excel Max Integration version 2.0

To send text messages, follow these steps:

1. Getting started#

  • Open the API Methods window and fill in the Parameters tab according to the instruction

parameters

  • Go to the Send text messages sheet

sendMessage

2. Fill in the columns:#

example
Example of filled cells

When collapsing a table, the entered data may be reset. This is a feature of MS Excel, we recommend that when filling in data, you collapse not the table, but the browser.

Column C - Chat ID (Client number)#

The cells in this column indicate the numbers of the message recipients.

How to quickly export contacts from an account?

To automatically export contacts into a table:
1. Open the API Methods window
2. Open the Sending Text Messages page
3. In the Export contacts cell, select the required option:
- "All contacts" - all account contacts (groups and personal chats) will be unloaded into the table
- "Personal chats" - all account personal chats will be unloaded into the table (groups will not be unloaded)
- "Groups" - all account groups will be unloaded into the table (personal chats will not be unloaded)
- "Previously had a chat" - all contacts with whom there was correspondence will be unloaded into the table
- "Saved" - all contacts saved in the account's contact book will be unloaded into the table
4. Click the Export contacts button

contacts

Column D - Chat ID (personal, group)#

Filled in to determine whether the ID in the cell on the left is personal or group.

  • If personal number is specified on the left, then write personal in the cell
  • If group is specified on the left, then write group in the cell

id

Column E - Message text#

The cells indicate text of the message being sent.

Line breaks in cells are formatted with the symbol \n

Optional columns: A, B
  • Column A - №

Filled in for clarity of the row serial number.

  • Column B - User (Name, Email)

Filled in for identification of the specified numbers by name, email or other data.

names

Enable number verification if necessary#

To check if a number has a WhatsApp account, open the API Methods window and enable the Check number checkbox

check

The function only works to check personal phone numbers and does not check the existence of groups.

For this reason, do not enable the checkbox when sending to groups or when sending to personal numbers and groups on the same sheet.

After sending messages, you will receive the status {"existsWhatsapp":false} or {"existsWhatsapp":true}:

  • false - means that the number does not have a WhatsApp account or there is an error in the number;
  • true - means that the number has a WhatsApp account.

3. Start mailing#

After filling in all the required cells, open the API Methods window on the Sending Text Messages page and click the Start mailing button

start

After the sending starts, the G, H columns will start filling in each row.

If number verification is enabled, the F column will also be filled in.

After the sending is finished, a notification window will appear. Do not turn off the table until this window appears.

done

Example of a mailing summary:
result

Possible errors

error1

Fill in the instance parameters according to the instructions

not-authorized

The instance is not authorized. You need to connect the instance to your WhatsApp account

error400

Check the correctness of the data entered in the table:
- The number shall be specified in international format
- There shall be no spaces or line breaks in column D. Only personal or group
- The text shall be formatted according to rules

How to stop mailing#

To stop mailing, click Stop mailing on the Sending text messages page

stop

  • To clear the queue of messages to send, click Clear queue on the Sending Text Messages page.

    We recommend clicking this button before starting a mailing.

clean

Column F - Availability of WhatsApp account

The cells indicate the presence/absence of a WhatsApp account on the number.

The function only works to check personal phone numbers and does not check the existence of groups.

For this reason, do not enable the checkbox when sending to groups or when sending to personal numbers and groups on the same sheet.

To perform a check when sending, check the checkbox in the API Methods - Sending text messages window

result

Column G - Message Status#

The cells indicate the message status. Possible statuses:

  • Message sent - the message was successfully sent
  • Message NOT sent - the message was not sent

Column H - Response body (message id)#

Contains the message ID if sent successfully and a description of the problem if there was an error.

  • In case of sending: {"idMessage":"your message id"}
  • In case of an error: Whatsapp account not found

Message statistics#

To check the statuses, you need to enable notifications in your console.
It may take up to 5 minutes for the new settings to apply.

webhooks

If the user has disabled the notification of reading messages, you will not be able to find out whether the message has been read.

Open the API Methods window and on the Sending Text Messages page, click the Message status button

status

Possible statuses:
- sent - message sent
- delivered - message sent
- read - message read
- Message not found - message is in the sending queue or was sent to a non-existent account

To update the statuses, click the Refresh statistics button

statusesresult

You can learn more about statuses in our article "What are the statuses of messages in WhatsApp?"

How to delete sent messages#

To delete messages sent from the table:

  1. Open the API Methods window
  2. Open the Sending Text Messages page
  3. Check the box next to the Delete Messages button
  4. Click the Delete Messages button

delete

After deletion, the "Deletion completed" window appears and the message status changes to Message deleted

deleted

How to quickly clear a sheet#

To clear the current sheet:

  1. Open the API Methods window
  2. Open the Sending Text Messages page
  3. Check the box next to the Clear Table button
  4. Click the Clear Table button

clear

After deleting, the "Deletion completed" window appears.

cleared

How to add contacts to a group#

To add numbers to a group

  1. Create a group from a device or via API using the createGroup method
  2. Fill in the C - Chat ID (client number) column

IDs

  1. Open the API Methods window
  2. Open the Sending text messages page
  3. Enter the ID of the created group in the Group ID field
  4. Click the Add to group button

add

After the addition is complete, the "Done" window appears

adding

The H - Response Body column will show the result of the addition:

added