I am interested in writing a Slack bot that will periodically send "ephemeral" messages to users. Ephemeral messages are messages that appear within a channel, but can only be seen by a particular user, like the responses to bot "slash commands" (e.g. "/who").
The goals here, however, are to have ephemeral messages sent periodically by the bot and:
How do I use the APIs to create ephemeral messages like this?
This method posts an ephemeral message, which is visible only to the assigned user in a specific public channel, private channel, or private conversation. Ephemeral message delivery is not guaranteed — the user must be currently active in Slack and a member of the specified channel .
You may see Slackbot in channels throughout your workspace, delivering reminders and automated messages for you and your teammates. When there's a reminder or a message just for you, Slackbot will send you a DM. You can access your DM with Slackbot the same way you would find a DM with anyone else in your workspace.
Ephemeral messaging is the mobile-to-mobile transmission of multimedia messages that automatically disappear from the recipient's screen after the message has been viewed. The word "ephemeral" describes something that only lasts for a short period of time.
Yes. The contents of every private message sent between team members are visible to administrators for a Slack team.
Sending private messages with the "Only visible to you" tag is called "ephemeral" and seems to now be possible through the Slack API.
https://api.slack.com/methods/chat.postEphemeral
(I'm not sure since when, and why it still says "Mid Term" on their roadmap)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With