> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# TriggerInfo

> Interface exported by @botmesh/core.

Defined in: [flows/inventory.ts:81](https://github.com/andresayac/botmesh/blob/main/packages/core/src/flows/inventory.ts#L81)

Serializable description of a [Trigger](https://botmesh.afaya.com.co/api/core/type-aliases/Trigger.md), mirroring the dispatcher's matching rules.

## Properties

### label

```ts theme={null}
label: string;
```

Defined in: [flows/inventory.ts:83](https://github.com/andresayac/botmesh/blob/main/packages/core/src/flows/inventory.ts#L83)

Human-readable form, e.g. `"hola"`, `"a", "b"`, `/\d+/i`, `contains "factura" (dm only)`, `(predicate)`.

***

### patterns

```ts theme={null}
patterns: TriggerPatternInfo[];
```

Defined in: [flows/inventory.ts:85](https://github.com/andresayac/botmesh/blob/main/packages/core/src/flows/inventory.ts#L85)

Text/regex patterns; empty for predicates and for never-matching `[]` triggers.

***

### match

```ts theme={null}
match: MatchStrategy;
```

Defined in: [flows/inventory.ts:87](https://github.com/andresayac/botmesh/blob/main/packages/core/src/flows/inventory.ts#L87)

String match strategy (default `equals` — normalized equality).

***

### scope

```ts theme={null}
scope: TriggerScope;
```

Defined in: [flows/inventory.ts:89](https://github.com/andresayac/botmesh/blob/main/packages/core/src/flows/inventory.ts#L89)

Chat scope the trigger is restricted to (default `all`).

***

### predicate

```ts theme={null}
predicate: boolean;
```

Defined in: [flows/inventory.ts:94](https://github.com/andresayac/botmesh/blob/main/packages/core/src/flows/inventory.ts#L94)

`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?

```ts theme={null}
special?: 
  | {
  kind: "welcome";
}
  | {
  kind: "type";
  types: string[];
};
```

Defined in: [flows/inventory.ts:96](https://github.com/andresayac/botmesh/blob/main/packages/core/src/flows/inventory.ts#L96)

Set for the special triggers of `core/triggers.ts`: first contact, or the accepted `ctx.type` kinds.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.