media

Match when a media file is uploaded by a user.

When the trigger matches, the media 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 media word.

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

Element details

type: meya.media.trigger
class: MediaTrigger
path: /meya/media/trigger/trigger.py
signature: -

Fields

field

description

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

required

signature

default

type

spec

Override the original spec for this element.

null

Spec

bot

Bot used to evaluate this trigger.

null

BotRef

action

Action executed if this trigger matches. Check the trigger action guide for more info.

TriggerActionEntry
ActionComponentSpec

when

Custom condition for when to evaluate this trigger. Check the trigger when guide for more info.

typing.Any

confidence

Override the default confidence with a custom value for trigger matches.

null

Real

Usage reference

Basic

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

Full

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