Skip to main content
Defined in: flows/inventory.ts:81 Serializable description of a Trigger, mirroring the dispatcher’s matching rules.

Properties

label

Defined in: flows/inventory.ts:83 Human-readable form, e.g. "hola", "a", "b", /\d+/i, contains "factura" (dm only), (predicate).

patterns

Defined in: flows/inventory.ts:85 Text/regex patterns; empty for predicates and for never-matching [] triggers.

match

Defined in: flows/inventory.ts:87 String match strategy (default equals — normalized equality).

scope

Defined in: flows/inventory.ts:89 Chat scope the trigger is restricted to (default all).

predicate

Defined in: flows/inventory.ts:94 true for a trigger that is opaque to static text analysis: a predicate function, and the special WELCOME / type triggers (IMAGE, MEDIA, CALL, …; see special).

special?

Defined in: flows/inventory.ts:96 Set for the special triggers of core/triggers.ts: first contact, or the accepted ctx.type kinds.