Skip to main content

Send direct message

Open a direct conversation with a person (by member id or email) and post a message there.

Command in the Slack toolkit · id ooa.slack/send_direct_message · 10 inputs (3 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Bot tokenCredentialYesSlack bot token (xoxb-...) from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token.
UserStringYesMember id (U...) or the person's email address; several separated by , or ; open a group conversation.
TextStringYesMessage text (Slack markdown).
Thread tsStringNoReply in the thread of this message.
BlocksAnyNoBlock Kit layout: a List of blocks or its JSON text; the text is then the notification fallback.
Unfurl linksBooleanNoShow previews of linked pages; Slack decides when empty.
Unfurl mediaBooleanNoShow previews of linked images and videos; Slack decides when empty.
MrkdwnBooleanNotrueFormat the text as Slack markdown; false sends it as typed.
FilesListNoLocal files to share in the conversation, right after the message.
Endpoint addressStringNohttps://slack.com/apiAPI endpoint; change only for testing.

Outputs​

OutputTypeWhat it is
tsStringMessage timestamp id.
channelStringDirect conversation id.