chirp
chirp copied to clipboard
Build out a rule-based engine for notifications
Users should have the ability to receive notifications from Chirp. Queries could be built out to look for the presence of specific tags or combinations of metadata in order to generate an in-platform alert or email alert.
Exposed tokens:
- Monitor tag
- Monitor category
- Monitor term
- Article source
- Article tag
- Article text
Evaluation criteria:
- Contains
- Does not contain
- Equals
- Not equals
Actions to support:
- Send email
- Tag monitor
- Post to domain
- Delete or hide
Note to self: Managed to work out the full rule concept at scale using elasticsearch and the percolator concept. Unfortunately, official python ES clients have dropped percolator support making it unclear how to best achieve the rules engine. It may be worth just issuing commands via requests
and moving on versus finding a truly supported method.