text.keyword

Match exact text from the user.

https://docs.meya.ai/docs/triggers-1#keyword-trigger

Element details

type: meya.text.trigger.keyword
class: KeywordTrigger
path: /meya/text/trigger/keyword/keyword.py
signature: keyword

Fields

fielddescription               requiredsignaturedefaulttype
specOverride the original spec for this element.nullSpec
botBot used to evaluate this trigger.nullBotRef
actionAction executed if this trigger matches. Check the trigger action guide for more info.TriggerActionEntry
ActionComponentSpec
whenCustom condition for when to evaluate this trigger. Check the trigger when guide for more info.typing.Any
confidenceOverride the default confidence with a custom value for trigger matches.nullReal
keywordExact keyword to match with user text.str
ignorecaseIgnore case when matching text.nullbool

Usage reference

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