image

Match when an image is uploaded by a user.

When the trigger matches, the image file's URL is saved in the
(@ flow.result ) flow scope
variable.

This trigger also has a BFML alias that allows you to reference the
trigger using the image word.

triggers:
  - image
steps:
  - say: "Uploaded image file: (@ flow.result )"

Element details

type: meya.image.trigger
class: ImageTrigger
path: /meya/image/trigger/trigger.py
signature: -

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

Usage reference

Basic

triggers:
  - type: meya.image.trigger
    when: ANY
steps:
  - say: STRING

Full

type: meya.image.trigger
spec:
  type: STRING
  data:
    STRING: ANY
  timeout: 123
  trigger_when: ANY
bot: element.name
action: COMPONENT
when: ANY
confidence: 123