Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Filter Notifications by Keyword or Phrase

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can filter notifications to only show alerts that contain a specific word or phrase, but the exact method depends on your device and app. On most smartphones, you can use Focus modes (iPhone) or Notification settings (Android) with keyword-based filters, while many apps like Gmail, Slack, and Twitter have built-in filters or mute options. This guide covers the most common ways to set up keyword filtering on iPhone, Android, and popular apps.

What You'll Need

  • Your smartphone (iPhone or Android) with the latest OS version installed
  • The app in which you want to filter notifications (e.g., Gmail, Slack, Twitter)
  • Admin or owner access to the app's settings (for team apps like Slack)

Step-by-Step

On iPhone (iOS): Using Focus Modes with Keyword Filters

  1. Open Settings > Focus.
  2. Tap the + icon to create a new Focus, or choose an existing one (e.g., "Do Not Disturb").
  3. Tap Custom and give it a name like "Work Alerts".
  4. Tap Add Filter > Notifications.
  5. Select the app you want to filter (e.g., Mail, Messages, or any third-party app that supports notification filters).
  6. Choose Filter by Keyword and type the word or phrase you want to allow (e.g., "urgent" or "project Alpha").
  7. Tap Add to save the filter.
  8. Now, when this Focus is active, only notifications containing that keyword will appear from that app. You can schedule the Focus or toggle it manually from Control Center.

On Android: Using Notification Settings and App-Specific Filters

  1. Open Settings > Apps > select the app you want to filter (e.g., Gmail).
  2. Tap Notifications.
  3. Look for an option like Categories or Notification types. Some apps allow you to enable or disable specific categories (e.g., "Mentions" or "Direct messages").
  4. If the app supports keyword filtering, you'll see a field like Keyword filter or Notification filter. Enter your word or phrase.
  5. If the app doesn't have a built-in keyword filter, you can use a third-party app like Tasker or MacroDroid to intercept notifications and only show those matching your keyword. (These apps require setup and may have a learning curve.)

In Gmail (Web and Mobile)

  1. Open Gmail and go to Settings (gear icon) > See all settings.
  2. Go to the Filters and Blocked Addresses tab.
  3. Click Create a new filter.
  4. In the Has the words field, enter your keyword or phrase (e.g., "invoice" or "meeting notes").
  5. Click Create filter.
  6. Check the box for Never send it to Spam or Skip the Inbox (Archive it) – but for notification filtering, you likely want to check Apply the label and choose a label like "Important".
  7. Click Create filter to save. Now, emails with that keyword will be labeled, and you can set up mobile notifications for that label only (see next step).
  8. On the Gmail mobile app, open the app, tap the hamburger menu, scroll down to Settings > your account > Manage labels > select the label you created > enable Sync and Notifications.

In Slack (Desktop and Mobile)

  1. Open Slack and click on your workspace name (top left) > Preferences.
  2. Go to Notifications.
  3. Under Notify me about, choose Direct messages, mentions, and keywords.
  4. In the Keywords field, type the word or phrase you want to be notified about (e.g., "bug" or "client name").
  5. Click Save. Now you'll only get notifications for messages that contain those keywords, plus DMs and mentions.

In Twitter (X) – Muting Keywords

  1. Open the Twitter app or web, go to Settings and privacy > Notifications.
  2. Select Muted words.
  3. Click the + icon to add a new muted word or phrase.
  4. Enter the word or phrase, choose where to mute it (Home timeline, Notifications, or both), and set the duration (Forever or a specific time).
  5. Save. This will hide notifications containing that word from your notifications tab.

Note: Menu labels may differ slightly depending on your device version, app version, or region. If you don't see an exact option, look for similar wording in the app's settings.

Common Mistakes

  • Typing the keyword incorrectly – Make sure the spelling matches exactly what you want to filter. Some filters are case-sensitive.
  • Forgetting to enable the Focus or filter – On iPhone, you must have the Focus active for the filter to apply. On Android, ensure the app's notification category is enabled.
  • Using a phrase that's too broad – Filtering for "meeting" might catch too many notifications. Use a more specific phrase like "project X meeting".
  • Not saving changes – In Gmail and Slack, you must click Save or Create Filter. Double-check that your filter is listed in the settings.
  • Filtering on the wrong platform – Some filters are per-app, not system-wide. For example, muting a word on Twitter only affects Twitter notifications, not your entire phone.

Tips

  • Use unique keywords that are unlikely to appear in unrelated notifications. For example, use "#urgent" instead of "urgent".
  • Combine multiple filters: create several keyword filters in Slack or Gmail to cover different topics.
  • Test your filter after setting it up: send yourself a test notification containing the keyword to see if it comes through.
  • On iPhone, you can schedule a Focus to turn on automatically during work hours, so the keyword filter is always active when you need it.
  • If you're using a third-party automation app on Android, make sure it has notification access enabled in system settings.

Troubleshooting

If the filter doesn't work:

  1. Restart your device – this can refresh notification services.
  2. Check that the app is updated to the latest version.
  3. Verify the keyword is spelled correctly and matches the case (if the filter is case-sensitive).
  4. Make sure the filter is actually saved – go back to the settings and confirm it's listed.
  5. On iPhone, ensure the Focus is active (check Control Center) and that the app is included in the Focus's allowed apps.
  6. If using a third-party automation app on Android, check that it has notification access enabled (Settings > Apps > Special access > Notification access).
  7. If nothing works, try removing and re-adding the filter.

Frequently Asked Questions

Can I filter notifications by keyword on any app?

No, not all apps support keyword filtering. Many system-level filters (like iPhone Focus) only work with apps that have integrated the notification filter API. For apps that don't, you may need to use the app's own settings (like Gmail filters) or a third-party automation tool.

Will filtering notifications by keyword hide the notification completely?

It depends. On iPhone Focus, notifications that don't match the keyword are silenced and go to the Notification Center, not completely hidden. On Twitter, muted words hide notifications from your notifications tab. On Gmail, filtered emails are labeled but still appear in your inbox unless you choose to archive them.

Can I filter notifications for multiple keywords at once?

Yes, in most apps you can add multiple keywords. For example, in Slack you can list several keywords separated by commas. On iPhone Focus, you can create multiple filters for the same app, each with a different keyword.

Do keyword filters work for SMS or phone call notifications?

On iPhone, Focus can filter notifications from the Messages app by keyword, but it won't filter phone calls. On Android, you can use third-party apps to filter SMS based on keywords, but it's not a built-in feature.

Will filtering notifications affect my battery life?

Generally no, keyword filtering is a software-level feature and shouldn't significantly impact battery life. However, if you use a third-party automation app that constantly monitors notifications, it may use more battery.

Can I filter notifications on my computer as well?

Yes, many apps like Slack and Gmail have web versions with the same filtering options. For system-wide filtering on Windows or macOS, you can use built-in Focus or Do Not Disturb features, but they don't support keyword filtering natively.