![]() For example, if a user invokes one of your app's slash commands that performs some action on a third-party service, an ephemeral message might be the most suitable way to inform that user of the success of the action.Įphemeral messages should only ever be sent in response to some user action, they must never be unexpected or unsolicited. Use ephemeral messages when you want to send someone a context-sensitive message that isn't suitable for the wider conversation. The only differences are that only one user within that conversation will see them, and that they do not persist across reloads, between desktop and mobile apps, or across sessions. These are called ephemeral messages, and in most other respects they're like any other message - composed in the same way, published in much the same way, and viewed within the same types of conversations in Slack. While most messages will be visible to everyone within the conversation they're published in, apps also have the ability to show a message temporarily to one specific user. With the right permissions, you can retrieve a conversation's message history, or individual messages within that history, which we'll cover in our retrieving messages guide. Slack apps can publish messages to all these types conversations, and can even create a direct message conversation between a user and the app itself.ĭifferent conversations will have varying levels of visibility and publishing permission, which is important when you're trying to create messages programmatically, we'll cover this more in our sending messages guide. A conversation is a catch all term that covers public channels, private channels, direct message conversations, and group (or multi-party) direct message conversations. ![]() In Slack, messages inhabit conversations. You can read the overview guides for those topics to get a better sense of what is possible, but for now let's learn about the environment that messages exist in. Slack apps can publish new messages, and retrieve or modify existing ones.Īpps also have access to a range of composition and interactivity options for controlling the look and feel of messages. For example, this is a message:Īt a basic level, messages are simply a series of attributes which describe and contain content. There can be a huge variation in how messages appear. For instructions on sending and reading messages within Slack itself, consult this help center article. These instructions pertain to content posted programmatically to Slack. In this overview we're going to give you a quick trip through the basics of doing these things, and an introduction to all the terminology that surrounds messaging. The core functionality of most Slack apps will involve the publication or consumption of messages. They can exist merely to notify, or they can invite and await response. They have many shapes and sizes, varying levels of complexity. Messages are the oxygen that keeps conversations alive.
0 Comments
Leave a Reply. |