Send a Message

Send a message to a channel or user in Slack.

Syntax

Below is a line-by-line overview of the automation syntax. Expand each line to learn more.

send message to an item

What does it do? This is the base syntax for the procedure.

Where does it go? This phrase should be written on a new line.

Is it required? ✅ Yes — This phrase is required in the syntax.

Does it require input data? ✅ Yes — A reference to either slack channel or slack user must be specified in place of {the item}.

the message is

What does it do? Specifies the message to send.

Where does it go? This phrase should be indented beneath send message to an item

Is it required? ✅ Yes — This phrase is required in the syntax.

Does it require input data? ✅ Yes — A text value needs to be specified.

Example: the message is 'some text'

the blocks are

What does it do? Specifies the blocks to send.

Where does it go? This phrase should be indented beneath send message to an item

Is it required? 🌟 No — This phrase is optional in the syntax.

Does it require input data? ✅ Yes — This phrase requires input data.

Example: the blocks are "example1", "example2"

the attachments are

What does it do? Specifies the attachments to send.

Where does it go? This phrase should be indented beneath send message to an item

Is it required? 🌟 No — This phrase is optional in the syntax.

Does it require input data? ✅ Yes — This phrase requires input data.

Example: the attachments are the first file, the second file

Examples

1. 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?