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.

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.

Reference (ref) of the pluginDefaults to apply to this task.

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.