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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Bot token | Credential | Yes | Slack bot token (xoxb-...) from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| User | String | Yes | Member id (U...) or the person's email address; several separated by , or ; open a group conversation. | |
| Text | String | Yes | Message text (Slack markdown). | |
| Thread ts | String | No | Reply in the thread of this message. | |
| Blocks | Any | No | Block Kit layout: a List of blocks or its JSON text; the text is then the notification fallback. | |
| Unfurl links | Boolean | No | Show previews of linked pages; Slack decides when empty. | |
| Unfurl media | Boolean | No | Show previews of linked images and videos; Slack decides when empty. | |
| Mrkdwn | Boolean | No | true | Format the text as Slack markdown; false sends it as typed. |
| Files | List | No | Local files to share in the conversation, right after the message. | |
| Endpoint address | String | No | https://slack.com/api | API endpoint; change only for testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| ts | String | Message timestamp id. |
| channel | String | Direct conversation id. |