Send a message via Slack.
Learn more: https://api.slack.com/messaging/webhooks
Reference: Layout block: https://api.slack.com/reference/block-kit/blocks
Element details
type: meya.slack.component.send
class: SlackSendComponent
path: /meya/slack/component/send.py
signature: -
Fields
field | description | required | signature | default | type |
---|---|---|---|---|---|
spec | Override the original spec for this element. | ○ | ○ | null | Spec |
context | Send context data with this component's event. | ○ | ○ | {} | dict |
sensitive | ○ | ○ | true | bool | |
triggers | Activate these dynamic triggers when the component runs. Check the component triggers guide for more info. | ○ | ○ | [] | list |
text | ○ | ○ | null | str | |
blocks | ○ | ○ | null | list | |
wait_for_response | ○ | ○ | true | bool | |
integration | ◉ | ○ | SlackIntegrationRef | ||
Usage reference
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:
type: STRING
data:
STRING: ANY
timeout: 123
trigger_when: ANY
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