Monday, January 3, 2022

How to connect your Gmail to WhatsApp

Yes! Now you can redirect the emails received in Gmail to your WhatsApp account. You will never ever miss an important message again. You can get WhatsApp messages every time that you receive an important email. Find below the step-by-step instructions to implement it using Google Scripts

How to connect your Gmail to WhatsApp

Setup:

You need to get the API key from the bot before using the API:

  1. Add the phone number +34 644 94 58 67 into your Phone Contacts. (Name it as you wish)
  2. Send this message I allow callmebot to send me messages to the new Contact created (using WhatsApp of course)
  3. Wait until you receive the message “API Activated for your phone number. Your APIKEY is 123123” from the bot.
    Note: If you don’t receive the ApiKey in 2 minutes, please try again after 24hs.
  4. The WhatsApp message from the bot will contain the API key needed to send messages using the API.

You can send text messages using the API after receiving the confirmation.

Example:
allow callmebot e1590102959978

  5. Enjoy

How to Create the Automation (Gmail -> WhatsApp)

Note about Google Script Permissions: This solution is based on a Google Script program that will run on your own Google Cloud. That means that the script is running in your own account so CallMeBot has no access to your Gmail or other Google services. All the permissions that Google Script will ask you are for yourself and based on your own account. Example: You will give permission to your google account to check your emails in Gmail. You will have a copy of the script and you will own it (you are the developer)

Step by Step Instructions:

1) Open this Google Sheet: https://docs.google.com/spreadsheets/d/17u-qdpwp9cEzefy_1NGbcnvFAhTAxSue7ilOct06N34/edit?usp=sharing

2) Go to File -> Create a copy
This will create your own copy in your Google Sheets account. You will own your own version of the Sheet and Script (macro) attached to it
gmail2wa1

3) Name the new Google Sheet as you wish. For example Copy of an Email to WhatsApp

gmail2wa2

4) Wait a few seconds until you see “Email to WhatsApp” in the Menu
gmail2wa3

5) Complete the email Search Criteria, WhatsApp Phone number and APIKey in the sheet
gmail2wa4
The email Search Criteria is by default all the “unread” emails that are sent to you. You can customize the email search in order to receive notifications about those urgent emails that you would like to receive in your WhatsApp Account. Use your Gmail Search to find and test the right Email Search Criteria. You can use the advance search form to get the right filter.
gmail2wa5

6) Click “WhatsApp to Email” -> “Start email monitoring”
This will start running the email monitoring script in the Google Cloud (after you grant the permissions). The script will check for new emails every 15minutes and send you a Whatsapp when new emails are received in your Gmail account.
gmail2wa6

7) You need to authorize your script to run in your Google Cloud Account and also to access your Gmail emails. Click “Continue” to go ahead with the Authorization process.
gmail2wa7

8) Select your Google Account. This should be your Gmail account and also the account that will run the Google Script.
gmail2wa8

9) You created a copy of the script and now the Google Sheet and Script belongs to you. You are the developer of the script now. And you are the executor. So you are giving your Google account access to your Gmail. Click “Advanced” to continue.
gmail2wa9

10) Click “Go to Email to WhatsApp Script” to allow access to yourself. You trust yourself.
gmail2wa10

11) Allow yourself to get access to your Gmail account to get and monitor the emails from the Script. Click “Allow”.
gmail2wa11

12) That’s all. The script is ready to be started in your Google Cloud.  Start the script again doing click in “Emal to WhatsApp” -> “Start email monitoring”
gmail2wa6

13) You will see the message below in the bottom-right corner of Google Sheets.
gmail2wa12

How to test and troubleshoot in case of problems

Tip1: The Script will mark the emails processed with a “WhatsApp” Label. This Label will be created in your Gmail. If you want to make a test with an email that has been already processed by the script, just remove the “WhatsApp” Label from it.

Tip2: You can test the WhatsApp functionality to confirm that the WhatsApp messaging is working fine. Just click on the menu: “Email to WhatsApp” -> “Test WhatsApp Message”. You should receive a text message in WhatsApp after a minute.

Tip3: You can manually trigger the email check function without waiting 15min. Just click on the menu: “Email to WhatsApp” -> “Check emails now”. It will manually start the function that checks for new emails.

Tip4: Check the “Script Logs (for troubleshooting)” section for more details about the callmebot APIKey.
gamil2wa log

Problems?

If you have problems, like not receiving the Call on Telegram, or not receiving the WhatsApp messages,  try to test the CallMeBot API using your Web Browser:

  • Telegram Phone Calls using Web Browser: here
  • Telegram Text Messages using Web Browsers: here
  • WhatsApp Text Messages using Web Browser: here

You might get some errors on the screen that will help you to identify the problem. (Ex: Calls disabled in the Telegram Security Settings, WhatsApp not activated, etc.)

CLICK HERE TO JOIN JBKLUTSE WHATSAPP GROUP FOR MORE NEWS UPDATES

To add to this or start a conversation, join our forum to share your opinions with other readers. For stories of this sort and more, do well to log on to www.jbklutse.com or visit us on Facebook



source https://www.jbklutse.com/connect-your-gmail-to-whatsapp/

No comments:

Post a Comment

Latest TECNO phones and their prices in Ghana [2022]

If not the first, TECNO Phones are among the earliest Chinese phone brands to enter the Ghanaian market. It is a brand of TRANSSION Holding...