text.keyword

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

ForwardRef('Spec')

null

Override the original spec for this element

bot

BotRef

null

Bot used to evaluate this trigger

action

TriggerActionEntry
ActionComponentSpec

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: '?'
bot: element.name
action: COMPONENT
when: ANY
confidence: 123
keyword: STRING
ignorecase: false