Should Publish
AI-generatedSummary
Check whether any subscriber to the Katie Speaker channel would receive a message with the specified metadata by evaluating subscriber filter rules.
Inputs
- Metadata (required) — A key-value collection of metadata entries to check against subscriber filters. Each entry consists of a Key (metadata field name) and a Value (metadata field value).
Output shape
A single JSON object indicating if a message should be published, including a boolean 'shouldPublish', a descriptive 'reason' string, and the list of subscriber filters used for evaluation.
The node fetches current aggregated subscriber filters from the Katie Speaker API and evaluates them against the provided metadata. If any unfiltered subscribers exist, it returns shouldPublish=true. Otherwise, it returns true if any filter matches the metadata, false if none match.
Examples
Example 1: Metadata indicating device location "kitchen" and alert type "motion"
Provide metadata entries key='location', value='kitchen' and key='alert', value='motion'. The node evaluates if these match any subscriber filter.