'How do we mention or tag someone in using Slack's Block Kit Builder?
I tried creating slack's blcok kit builder, the desired design were actually fine. But I don't know where to find a button so we can tag a someone on it.
Someone knows how to do it? thanks
I have here an attempt to tag a person named john but unfortunately it just generated a plain text, it did not notify the person nor became the same the design as expected (see image result below) view playground
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "@juan \n\nis a mrkdwn section block"
}
},
.....
]
}
Here is the result
Solution 1:[1]
I found the solution from the following link.
https://api.slack.com/reference/surfaces/formatting#mentioning-users
- get the user's id
- wrap it with a left and right arrow with an "@" symbol beside it. syntax
<@userId>
usage:
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Hey <@802AWTP13BZ>, thanks for submitting your report!"
}
}
]
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |