widget.field.button_trigger

Element details

type: meya.widget.trigger.field.button_trigger
class: FieldButtonTrigger
path: /meya/widget/trigger/field/button_trigger.py
signature: button_id

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
whenOptionally set the criteria when this trigger should evaluate. The default is true and will always evaluate.○○trueAny
confidenceOverride the default confidence with a custom value for trigger matches.○○nullReal
button_idThe static button ID to match against. Use this button ID in the button_id field in the relevant quick replies and buttons.◉◉str
textDEPRECATED○○nullstr

Usage reference

Basic

triggers:
  - button_id: STRING
steps:
  - say: STRING

Full

type: meya.widget.trigger.field.button_trigger
spec:
  type: STRING
  data:
    STRING: ANY
  timeout: 123
  trigger_when: ANY
bot: element.name
action: COMPONENT
when: ANY
confidence: 123
button_id: STRING
text: STRING