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
You need to get the API key from the bot before using the API:
- Add the phone number +34 644 94 58 67 into your Phone Contacts. (Name it as you wish)
- Send this message “I allow callmebot to send me messages“ to the new Contact created (using WhatsApp of course)
- 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.
- 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.
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
3) Name the new Google Sheet as you wish. For example Copy of an Email to WhatsApp
5) Complete the email Search Criteria, WhatsApp Phone number and APIKey in the sheet
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.
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.
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.
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.
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.)