Element details
type: meya.event.trigger.type
class: TypeTrigger
path: /meya/event/trigger/type.py
signature: event_type
Fields
| field | description | required | signature | default | type |
|---|---|---|---|---|---|
| spec | Override the original spec for this element. | ○ | ○ | null | Spec |
| bot | Bot used to evaluate this trigger. | ○ | ○ | null | BotRef |
| action | Action executed if this trigger matches. Check the trigger action guide for more info. | ◉ | ○ | TriggerActionEntry ActionComponentSpec | |
| when | ○ | ○ | true | Any | |
| confidence | Override the default confidence with a custom value for trigger matches. | ○ | ○ | null | Real |
| event_type | ◉ | ◉ | str | ||
Usage reference
Basic
triggers:
- event_type: STRING
steps:
- say: STRING
Full
type: meya.event.trigger.type
spec:
type: STRING
data:
STRING: ANY
timeout: 123
trigger_when: ANY
bot: element.name
action: COMPONENT
when: ANY
confidence: 123
event_type: STRING
