(Internal) AI sourcing: How to write filters