Hi, I need to tag a Slack user from a Prefect Slac...
# ask-community
c
Hi, I need to tag a Slack user from a Prefect Slack automation, I tried to do it as it explains here, just with @User in the Body of the Automation action (Slack Block), but it doesn’t work, it just sends the Slack message with @User as a string. Anyone managed to tag a Slack user from an automation? Any help will be appreciated! Thanks in advance!
n
if im not mistaken, i think this is because slack actually wants the ID of the user, not the username
w
yeah i think it might be that as well, and you can get the id of a user from their profile like so
if that works ill go ahead and update that thread online.
thank you 1
n
ope, sorry i didn't actually click on that link - thanks @Will Raphaelson
c
Hi, first of all, thanks @Nate and @Will Raphaelson well, I tried with all these options:
but in Slack i get
In none of the cases I get the user tag, I don’t know what I’m missing…
w
this totally worked at some point, and everything I am seeing online would suggest this would work. im sorry i really dont know what else to try. something must have changed on the slack side.
a hack could be to have a special alert keyword like "carlos-alert" and then have the user configure a keyword alert like so?
c
Yeah that could be a possible workaround. Thanks @Will Raphaelson!