Send an ephemeral message (one that only the recipient can see)
Schema.slack.functions.SendEphemeralMessage
slack#/functions/send_ephemeral_message
U111AAA111
C123456
D123ABC456
Sends an ephemeral message to a specific channel. This lets a user see what your workflow has to say without everyone in the conversation having to see it or it becoming part of the conversation's record.
const sendEphemeralMessageStep = ExampleWorkflow.addStep(
Schema.slack.functions.SendEphemeralMessage,
{
channel_id: "C082T4F6S1N",
user_id: "U0J46F228L0",
message: "Someone in this conversation is not accurately representing reality. Converse further with care.",
},
);