send_ephemeral_message
Facts
DescriptionSend an ephemeral message (one that only the recipient can see)
Schema
Schema.slack.functions.SendEphemeralMessageSchema reference
slack#/functions/send_ephemeral_messageRequired scopes
Input Parameters
Required Input Parameters
channel_idSchema.slack.types.channel_idRequiredThe conversation ID for the channel you are sending the message to
Examples
C123456D123ABC456messageSchema.slack.types.rich_textRequiredThe textual message to send to ephemerally (previously accepted as text)
user_idSchema.slack.types.usergroup_idRequiredThe ID of the user to show the ephemeral message to
Examples
U111AAA111Optional Input Parameters
thread_tsSchema.types.stringOptionalThe ts identifier of an existing message to send this message to as a reply.
Examples
1355517523.000005Output Parameters
Required Output Parameters
message_tsSchema.types.stringRequiredThe channel-specific unique identifier for this message, also serves as a confirmation that the message was sent.
Usage info
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.
Example workflow step
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.",
},
);