Send Direct Message

Send a direct message to a Slack user on your team.

Options

Field Definition Type Required

Unfurl URLs?

Indicates whether Slack should scan links found in messages and create attachments based on the link's contents.

True/False TRUE

Field Type

Indicates which input field is used to identify the user; options are User ID or Username.

Organizations with a large number of users may experience long execution times when selecting Username. Instead, select User ID to reduce execution time.

Dropdown TRUE

Message Type

Format of the message. The options are Plain Text and Blocks; see Layout blocks.

Dropdown FALSE

Input

Input fields are dependent on the field type selection.

Field Definition Type Required

Username

Slack username of the person to send the message to (without the @ symbol).

Text TRUE

User ID

Unique identifier of the user. Text TRUE

Message (if Message Type is Plain Text)

Text

The text of the message. You can include the following in a message:

  • emojis as :owl:

  • channel names as #channelname

  • group names as @slack_owners

  • specific users as <@slack_user_id>

  • commands as /command

Text TRUE

Thread Timestamp

Timestamp of another message's ts value. See Retrieving individual messages.

Note: Never use the ts value from a reply. Use the ts value of the reply's parent instead.

Text FALSE

Message (if Message Type is Blocks)

Blocks

Blocks that comprise the message. Add a block by clicking + click to add item. See Layout blocks.

Text TRUE

Notification Message

A fallback string to display in notifications.

Text TRUE

Thread Timestamp

Timestamp of another message's ts value. See Retrieving individual messages.

Note: Never use the ts value from a reply. Use the ts value of the reply's parent instead.

Text FALSE

Output

Field Definition Type

Timestamp

Timestamp when the message was sent. Text