Notifications per company #171
-
Hi MagicBell community, I recently started using Magicbell to build notifications into my webapp. Our first use case was to build a notification feed per logged in user. We followed the standard documentation and used a user's company email address as the key for when we broadcast events. We are now on a new use case. On the dashboard of our product, we want to show the latest activity across the entire company. We were thinking we could create a bot id like bot-for-company-name@email.com and that bot would be posted to all broadcasts for that company. This way we can show the latest 10 or 20 activity for the company. I assume this is a common use case and someone may have seen this use case before. Any suggestions on how best to tackle it. I prefer to reuse Magicbell if it is makes instead of building my own custom solution. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @larry-lunaraspect thanks for checking out MagicBell. We've been thinking of this use-case ourselves. You are right that you can create a bot, though I recommend using external_id instead of email (for everyone, not just the bot). However, beyond showing notifications, would you also like people to mark notifications read etc? Basically, would this be more like a "news-feed" or a list of notifications? |
Beta Was this translation helpful? Give feedback.
Hey @larry-lunaraspect we explain the benefits of external_id on this page - https://www.magicbell.com/docs/quick-start/choosing-an-identifier#background
I am confident creating a new user per company and sending them the activities should work very well. You can use our headless or even the React. SDK to render the feed in the page, on the sidebar, or even a new page!