Procedures

Automation procedures in the Slack BDK Book.

to read the (item's messages)

FILTER - CAPABLE

Read messages from a channel.

Input Concepts

Concept
Description
Type
Required
Default Value

item

The channel or user to read messages from

slack channel or slack user

Yes

Output Concepts

Concept
Description
Type

List of messages retrieved successfully

slack message

Examples

Read messages from Slack

retrieve a channel from slack
    the channel name is "general"
read the channel's messages whose timestamp is lower than "2023-01-01"

to retrieve a (channel) from slack

Retrieve a channel from Slack.

Input Concepts

Concept
Description
Type
Required
Default Value

channel name

The name of the channel to retrieve

text

Yes

Output Concepts

Concept
Description
Type

Details of the channel retrieved successfully

slack channel

Examples

Retrieve the channel from Slack

retrieve the channel from slack
    the channel name is "general"

to retrieve a (user) from slack

Retrieve a user from Slack.

Input Concepts

Concept
Description
Type
Required
Default Value

user name

The name of the user to retrieve

text

Yes

Output Concepts

Concept
Description
Type

Details of the user retrieved successfully

slack user

Examples

Retrieve the user from Slack

retrieve the user from slack
    the user name is "John Doe"

to send message to an item

Send a message to a channel or user.

Input Concepts

Concept
Description
Type
Required
Default Value

item

The channel or user to send the message to

slack channel or slack user

Yes

message

The message to send

text

Yes

blocks

The blocks to send

slack action block or slack context block or slack divider block or slack header block or slack image block or slack markdown block or slack section block

No

The attachments to send

slack attachment

No

Output Concepts

Concept
Description
Type

Details of the message sent successfully

slack message

Examples

Send a message to Slack

retrieve the channel from slack
    the channel name is "general"
use the above as the channel
send message to the channel
    the message is "Hello, world!"
    the attachments are "image.png"

Last updated

Was this helpful?