How to customize notification in frappe ?let say I have two store managers (SM1, SM2) - having role “store manager” and two branch manager(BM1, BM2) - having role “branch manager” i want to send notification from store manager to branch manager

let say I have two store managers (SM1, SM2) - having role “store manager” and two branch manager(BM1, BM2) - having role “branch manager” i want to send notification from store manager to branch manager. SM1 should send the notification to only BM1 and SM2 should send the notification to only BM2. but both branch manager have the same role “branch manager”. so how to add additional filter in addition to role ?