Skip to main content
slack.openDirectMessage resolves a member’s DM conversation from their Slack user ID.

Example

automations/open-slack-dm.automation.ts

Inputs

Output

Returns { alreadyOpen: boolean; conversation: SlackConversation }. Pass conversation.id to slack.sendMessage. With preventCreation, Slack can reject the request if the two users have no existing DM.