type: meya.text.trigger.keyword
class: KeywordTrigger
path: /meya/text/trigger/keyword/keyword.py
signature: keyword
Match exact text from the user.
Fields
field | signature | required | type | default | description |
---|---|---|---|---|---|
spec | ○ | ○ | Spec | null | Override the original spec for this element |
bot | ○ | ○ | BotRef | null | Bot used to evaluate this trigger |
action | ○ | ◉ | TriggerActionEntry | Action executed if this trigger matches | |
when | ○ | ◉ | typing.Any | Custom condition for when to evaluate this trigger | |
confidence | ○ | ○ | Real | null | Custom confidence override value for trigger matches |
keyword | ◉ | ◉ | str | Exact keyword to match with user text | |
ignorecase | ○ | ○ | bool | null | Ignore case when matching text |
Examples
Basic
triggers:
- when: ANY
keyword: STRING
steps:
- say: STRING
Full
type: meya.text.trigger.keyword
spec:
type: STRING
data:
STRING: ANY
timeout: 123
trigger_when: ANY
bot: element.name
action: COMPONENT
when: ANY
confidence: 123
keyword: STRING
ignorecase: false