Get WhatsApp alerts for emails that match keywords in Gmail


Sometimes there is justification for getting more notifications—like when they help you avoid opening a cluttered inbox.

For example, you can build an automated workflow that alerts you on WhatsApp whenever you receive an email in Gmail matching a specific search term. And not just some messy, noisy alert, either. One that includes the sender’s name and a tappable link to the email, so you can jump right into the message from your phone. For a walkthrough on connecting Gmail to WhatsApp and building this workflow in Zapier, keep scrolling.

Zapier is the most connected AI orchestration platform—integrating with thousands of apps from partners like Google, Salesforce, and Microsoft. Use interfaces, data tables, and logic to build secure, automated, AI-powered systems for your business-critical workflows across your organization’s technology stack. Learn more.

Get WhatsApp notifications for important emails

Zapier lets you create automated workflows called Zaps, which send your information from one app to another. You can create your own Zap from scratch without any coding knowledge, but we also offer quick templates to help get you started. 

If you’d like to get a head start on this workflow, click the Zap template below. You’ll need to create a Zapier account if you don’t already have one. After that, just follow the directions in this tutorial to set your Zap up.

Set up your Gmail trigger

First, set up your trigger—the event that starts your Zap. If you’re using the Zap template, the trigger app and event will already be selected for you. Otherwise, search for and select Gmail as the trigger app and New Email Matching Search as the trigger event. Connect your Gmail account, then click Continue.

A window in the Zap editor with "App," "Trigger event," and "Account" fields to set up a Gmail trigger step.

Next, in the Search keywords field, type in the search term that will trigger the automation. We’re going with “New Lead” because it’s simple and a common keyword that many CRMs use when they email you to alert you of new prospects. But you can choose any term you want—like “urgent” or “invoice.” 

Now click Continue.

A zoomed-in image of a window in the Zap editor, with "New Lead" typed into the required field "Search keywords."

Next, click Test to pull in recent emails matching your chosen search term. Choose one of the emails to test with. Don’t have any matches? Just email yourself for testing purposes and include the keyword in the subject line or body. Then click Continue with selected record.

A window in the Zap editor that lists three test records, with the data for one of the records displayed on the left-hand side of the window.

Set up your WhatsApp Notifications action

Now it’s time to set up the action—the event your Zap will perform once it’s triggered. If you’re using the Zap template, these will already be selected for you. Otherwise, search for and select WhatsApp Notifications as your action app and Send Message as your action event. Then, click Sign in to connect your WhatsApp account.

A window with fields for selecting an "App," "Action event," and "Account." WhatsApp Notifications is selected as the app and "Send Message" is selected as the action event.

If you’re doing this for the first time, Zapier will ask for a phone number for authentication. This will work with any WhatsApp account—it doesn’t have to be a business account. Here, enter your phone number, and click Send Pin to receive an OTP code. After you enter the code, click Yes, Continue to WhatsApp Notifications. Your account will be authenticated, and you’ll be returned to the Zap editor.

A modal asking the user to allow Zapier to access their WhatsApp Notifications account, with fields for entering a phone number and OTP code and buttons to cancel or continue.

Next, click Continue to customize your action step.

A window with fields for "App," "Action event," and "Account," showing that Zapier is now connected to a specific WhatsApp Notifications account.

Start by selecting New Message in the Template field.

Now, you’ll map data from your Gmail trigger step. (This is what allows you to customize the contents of your WhatsApp message, so it contains the sender’s name and a tappable link.) To map fields, click the + button or type a forward slash (/), which opens a modal that lets you select and insert values. 

In the Name field, add the From Name. In the Link to reply field, add Message Url. When you’re done, click Continue.

A window in the Zap editor with fields for selecting a "Template," "Name," and "Link to reply," with data mapped from the previous Gmail trigger step.

All that’s left to do is make sure your Zap works as expected. Click Test step. You should receive a notification in your WhatsApp account that looks something like this (but with your data).

A notification in WhatsApp with an alert that a new message has come in from John Smith, plus a tappable link to Gmail to reply

Looks good? Then return to the Zap editor and publish your Zap. Now, from here on out, every time you get an email matching a particular search term, you’ll get a handy WhatsApp alert that lets you skip the process of sorting through your inbox.

Pro tip: If you anticipate ever going on vacation—and I sincerely hope you do!—you can automatically pause this workflow so you don’t get bothered with WhatsApp notifications while you’re relaxing. Just create these two easy-to-build workflows with Zapier Manager, so that when you go out of office, the Zap turns off. When you return, it’ll automatically turn back on. Read our guide to using Zapier Manager.

A visual diagram of two Zaps. The first triggers when an event in Google Calendar that contains "vacation" in the title starts, then turns off a Gmail-to-WhatsApp Zap. The second triggers when an event in Google Calendar the contains the term "vacation" in the title ends, turning the same Zap back on.
This workflow diagram was built using another Zapier tool, Canvas.

Leave a Reply

Your email address will not be published. Required fields are marked *