Meta MessengerExecution

Meta MessengerExecution

Certified

Send execution summary via Messenger

Sends a Facebook Messenger notification with the execution link, ID, namespace, flow name, start time, duration, and status. Defaults to the current execution; set executionId to {{ trigger.executionId }} in Flow triggers to reference the original run.

yaml
type: io.kestra.plugin.meta.messenger.MessengerExecution

Send a Messenger notification on a failed flow execution.

yaml
id: failure_alert
namespace: company.team

tasks:
  - id: send_messenger_alert
    type: io.kestra.plugin.meta.messenger.MessengerExecution
    pageId: "9876543214587"
    accessToken: "{{ secret('MESSENGER_ACCESS_TOKEN') }}"
    recipientIds:
      - "24745216345137108"
    executionId: "{{trigger.executionId}}"
    customMessage: "Production workflow failed!"

triggers:
  - id: failed_prod_workflows
    type: io.kestra.plugin.core.trigger.Flow
    conditions:
      - type: io.kestra.plugin.core.condition.ExecutionStatus
        in:
          - FAILED
          - WARNING
      - type: io.kestra.plugin.core.condition.ExecutionNamespace
        namespace: prod
        prefix: true
Properties

Page Access Token

Page access token with pages_messaging permission for the sender Page.

Facebook Page ID

Page that sends the messages; must match the access token permissions.

SubTypestring

Recipient PSIDs

Page-scoped recipient IDs; at least one is required or the task fails.

Defaulthttps://graph.facebook.com

Base API URL

Base Graph API URL. Defaults to https://graph.facebook.com.

Defaultv23.0

API Version

Graph API version to call. Defaults to v23.0.

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

Custom fields added to the template

Key/value pairs injected into the Pebble template as customFields.

Extra message body

Additional text appended after the generated execution summary.

Default{{ execution.id }}

Execution ID

Execution to describe in the notification. Defaults to the current run; set to {{ trigger.executionId }} inside Flow triggers to report on the triggering execution.

DefaultUPDATE
Possible Values
RESPONSEUPDATEMESSAGE_TAG

Messaging type

Messaging type passed to the Graph API (RESPONSE, UPDATE, MESSAGE_TAG). Defaults to UPDATE.

Options

The options to set to customize the HTTP client

Definitions
connectTimeoutstring

The time allowed to establish a connection to the server before failing.

connectionPoolIdleTimeoutstring
DefaultPT0S

The time an idle connection can remain in the client's connection pool before being closed.

defaultCharsetstring
DefaultUTF-8

The default charset for the request.

headersobject

HTTP headers

HTTP headers to include in the request

maxContentLengthintegerstring
Default10485760

The maximum content length of the response.

readIdleTimeoutstring
DefaultPT5M

The time allowed for a read connection to remain idle before closing it.

readTimeoutstring
DefaultPT10S

The maximum time allowed for reading data from the server before failing.

Template variables

Values injected into the Pebble template before sending.

Message text body

Direct message text; bypasses the template when provided.

Override URL for testing

Optional Graph API endpoint override; defaults to https://graph.facebook.com/v23.0/{pageId}/messages. When set, or when options is set, the request is posted directly instead of through the SDK.