?
sendSlackDirectMessage
Send a direct message to a Slack user via a connected bot.
mindstudio.sendSlackDirectMessage({ slackUserId, messageType, message }) → Result
Sends a direct message to a specific Slack user via a connected bot — a one-to-one notification rather than a channel post.
Parameters
slackUserId
string
RequiredSlack user ID of the recipient
messageType
string
RequiredMessage format: "string" for plain text/markdown, "blocks" for Slack Block Kit JSON
stringblocks
message
string
RequiredMessage content (plain text/markdown for "string" type, or JSON for "blocks" type)
connectionId
string
Slack OAuth connection ID (leave empty to allow user to select)
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.sendSlackDirectMessage({ slackUserId: /* ... */, messageType: /* ... */, message: /* ... */ });