amari opened issue nhcarrigan/amari#19

amari
Wed, 11 Mar 2026 19:14:24 -0700

19#Prevent duplicate DM notifications for multi-keyword matches#

Description

Currently, when a message contains multiple keywords that trigger DM notifications, the system sends separate DM for each keyword match. This creates a frustrating experience where users receive multiple notifications for a single message.

We'd love to consolidate this so that each message triggers only one DM notification, regardless of how many keywords it contains. This keeps inboxes cleaner and helps users stay focused on what matters.

Why This Matters

Imagine a message that mentions both "urgent" and "review needed" — right now you'd get two separate DMs about the same message. Let's fix that! Users deserve a streamlined notification experience that respects their attention.

Acceptance Criteria

✨ When a message contains multiple keyword matches, only one DM notification is sent per message

✨ The DM should clearly indicate which keywords were matched (so the user knows why they were notified)

✨ The notification is delivered promptly and reliably

✨ Existing single-keyword notifications continue to work as expected

✨ The solution works across all keyword types and matching scenarios

Implementation Notes

Consider deduplicating at the notification-sending stage

You may want to include all matched keywords in the DM content so users have full context

Add logging to help us monitor the change and ensure it's working smoothly