slack.send

type: meya.slack.component.send
class: SlackSendComponent
path: /meya/slack/component/send.py
signature: -

Send a message via Slack.

Learn more: https://api.slack.com/messaging/webhooks
Reference: Layout block: https://api.slack.com/reference/block-kit/blocks

Fields

field

signature

required

type

default

description               

spec

ForwardRef('Spec')

null

Override the original spec for this element

context

dict

{}

Send context data with this component's event

sensitive

bool

true

triggers

list

[]

Activate these dynamic triggers when the component runs

text

str

null

blocks

list

null

wait_for_response

bool

true

integration

SlackIntegrationRef

Examples

Basic

triggers:
  - keyword: meya.slack.component.send
steps:
  - type: meya.slack.component.send
    integration: integration.slack

Full

triggers:
  - keyword: meya.slack.component.send
steps:
  - type: meya.slack.component.send
    spec: '?'
    context:
      STRING: ANY
    sensitive: false
    triggers:
      - type: STRING
        data:
          STRING: ANY
        timeout: 123
        trigger_when: ANY
    text: STRING
    blocks:
      - foo: bar
    wait_for_response: false
    integration: integration.slack