widget.page.button_trigger

Element details

type: meya.widget.trigger.page.button_trigger
class: PageButtonTrigger
path: /meya/widget/trigger/page/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.truetyping.Any
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
textDEPRECATEDnullstr

Usage reference

Basic

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

Full

type: meya.widget.trigger.page.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